makefile implicit rule override error -


when building try.img, following makefile works, because uses implicit rule %.o: %.c. if uncomment last 3 lines, not work more. idea why?

thank in advance may provide.

try.img: try.elf     $(objcopy) $< -o binary $@  %.elf: %.o %.ld %.symbols     $(ld) $(ldflags) -t $(@:.elf=.ld) $(@:.elf=.o) -o $@  #%.o: %.c #   echo "abc" #   $(cc) $(cflags) -c $< -o %@ 


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -