Makefile: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Solar (talk | contribs)
Added chapter for advanced techniques.
Solar (talk | contribs)
→‎Dependencies, pt. 3: See discussion page.
Line 170: Line 170:
<pre>
<pre>
%.o: %.c Makefile
%.o: %.c Makefile
@$(CC) $(CFLAGS) -DNDEBUG -MMD -MP -MT "$*.d $*.t" -g -std=c99 -I./includes -I./internals -c $< -o $@
@$(CC) $(CFLAGS) -DNDEBUG -MMD -MP -MT "$*.d $*.t $*.o" -g -std=c99 -I./includes -I./internals -c $< -o $@
</pre>
</pre>
Isn't it a beauty? ;-) Note that this needs GCC 3.3.x or newer.
Isn't it a beauty? ;-) Note that this needs GCC 3.3.x or newer.