From 696ea9d301cae1f2a123c37ddaa7490544cd99a0 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 13 Jan 2008 17:05:43 +0000 Subject: Various small patches to the build system by jvprat svn-id: r30473 --- Makefile.common | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Makefile.common') diff --git a/Makefile.common b/Makefile.common index 4852906c02..965f73dd42 100644 --- a/Makefile.common +++ b/Makefile.common @@ -79,7 +79,7 @@ clean: ifndef HAVE_GCC3 # If you use GCC, disable the above and enable this for intelligent # dependency tracking. -.cpp.o: +%.o: %.cpp $(MKDIR) $(*D)/$(DEPDIR) $(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d2" $(CXXFLAGS) $(CPPFLAGS) -c $(<) -o $*.o $(ECHO) "$(*D)/" > $(*D)/$(DEPDIR)/$(*F).d @@ -90,18 +90,16 @@ else # rule can get you into a bad state if you Ctrl-C at the wrong moment. # Also, with this GCC inserts additional dummy rules for the involved headers, # which ensures a smooth compilation even if said headers become obsolete. -.cpp.o: +%.o: %.cpp $(MKDIR) $(*D)/$(DEPDIR) $(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d",-MQ,"$@",-MP $(CXXFLAGS) $(CPPFLAGS) -c $(<) -o $*.o -.m.o: +%.o: %.m $(MKDIR) $(*D)/$(DEPDIR) $(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d",-MQ,"$@",-MP $(OBJCFLAGS) -c $(<) -o $*.o endif ifdef HAVE_NASM -.SUFFIXES: .asm - -.asm.o: +%.o: %.asm $(NASM) -O1 $(NASMFLAGS) -g -o $*.o $(<) endif -- cgit v1.2.3