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
Post a Comment