diff options
author | Max Horn | 2002-11-21 20:36:33 +0000 |
---|---|---|
committer | Max Horn | 2002-11-21 20:36:33 +0000 |
commit | 004aacce9dc357ce87c03c65304e0fc6e677c67b (patch) | |
tree | 402e21cf69b147c3d2d78dec8a09d1f7d9e29c54 | |
parent | 1d9ead284ef67010f9a3efb90b20107e2b2c83f8 (diff) | |
download | scummvm-rg350-004aacce9dc357ce87c03c65304e0fc6e677c67b.tar.gz scummvm-rg350-004aacce9dc357ce87c03c65304e0fc6e677c67b.tar.bz2 scummvm-rg350-004aacce9dc357ce87c03c65304e0fc6e677c67b.zip |
argh, revert to gcc 2.x build rules once more <g>
svn-id: r5687
-rw-r--r-- | Makefile.common | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile.common b/Makefile.common index 04df20b435..08d98fabc6 100644 --- a/Makefile.common +++ b/Makefile.common @@ -50,18 +50,18 @@ clean: DEPDIRS = $(patsubst %,%/$(DEPDIR),$(MODULES)) DEPFILES = $(wildcard $(patsubst %,%/*.d,$(DEPDIRS))) -#.cpp.o: -# $(MKDIR) $(*D)/$(DEPDIR) -# $(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d2" $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o -# $(ECHO) "$(*D)/" > $(*D)/$(DEPDIR)/$(*F).d -# $(CAT) "$(*D)/$(DEPDIR)/$(*F).d2" >> "$(*D)/$(DEPDIR)/$(*F).d" -# $(RM) "$(*D)/$(DEPDIR)/$(*F).d2" +.cpp.o: + $(MKDIR) $(*D)/$(DEPDIR) + $(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d2" $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o + $(ECHO) "$(*D)/" > $(*D)/$(DEPDIR)/$(*F).d + $(CAT) "$(*D)/$(DEPDIR)/$(*F).d2" >> "$(*D)/$(DEPDIR)/$(*F).d" + $(RM) "$(*D)/$(DEPDIR)/$(*F).d2" # If you even have GCC 3.x, you can use this build rule, which is safer; the above # rule can get you into a bad state if you Ctrl-C it in the wrong moment. -.cpp.o: - $(MKDIR) $(*D)/$(DEPDIR) - $(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d",-MQ,"$@",-MP $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o +#.cpp.o: +# $(MKDIR) $(*D)/$(DEPDIR) +# $(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d",-MQ,"$@",-MP $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o -include $(DEPFILES) /dev/null |