Forum Discussion
Altera_Forum
Honored Contributor
12 years agoCorrection to Makefile
Hello, I have found projects that contain library dependencies always relink to create the final ELF file even if nothing has changed. Although this isn't wrong or bad, it does cause creation ...
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Try adding an 'echo xxx $*' line before the $(CP) $< $@ one. That will show all the dependencies. --- Quote End --- I have
$(LIB) : $(ACTIVE_CONFIG_LIB)
echo xxx $*
echo $(LIB)
echo $(ACTIVE_CONFIG_LIB)
$(CP) $< $@ and get: echo xxx liblwip_altera_tse_FALCON xxx liblwip_altera_tse_FALCON echo liblwip_altera_tse_FALCON.a liblwip_altera_tse_FALCON.a echo obj/Release/liblwip_altera_tse_FALCON.a obj/Release/liblwip_altera_tse_FALCON.a cp -f -p obj/Release/liblwip_altera_tse_FALCON.a liblwip_altera_tse_FALCON.a And the time-stamps of $(LIB ) and $(ACTIVE_CONFIG) are identical. Thanks for your suggestion. I wouldn't mind knowing if I can do this without hand-modifying a makefile. Bill