diff options
author | marha <marha@users.sourceforge.net> | 2011-01-19 21:39:23 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-01-19 21:39:23 +0000 |
commit | 9d399c4f837acfd5b98d00a7acac04f2e03e5e3e (patch) | |
tree | 070c1786dfca0457c860420e37183ed1686f9da7 /makefile.after | |
parent | 1d6db05ee9b24b67aa55c631f7763e960b47b68f (diff) | |
download | vcxsrv-9d399c4f837acfd5b98d00a7acac04f2e03e5e3e.tar.gz vcxsrv-9d399c4f837acfd5b98d00a7acac04f2e03e5e3e.tar.bz2 vcxsrv-9d399c4f837acfd5b98d00a7acac04f2e03e5e3e.zip |
Solved problems in makefile (seen when running mhmake_dbg)
Diffstat (limited to 'makefile.after')
-rw-r--r-- | makefile.after | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/makefile.after b/makefile.after index 1ee5c0d2e..2ecf39423 100644 --- a/makefile.after +++ b/makefile.after @@ -79,7 +79,17 @@ COMMONCFLAGS += $(DEFINES:%=-D%) $(INCLUDES:%=-I%) -Fo$(relpath $@) -Fd"$(PDB)" #PDB= # There is no PDB file generated in a release build
endif
-.PHONY: all cleanall clean clean$(OBJDIRPREFIX)
+ifeq ($(OBJDIRPREFIX),)
+ifeq ($(DEBUG),1)
+CLEANRULEPOSTFIX=debug
+else
+CLEANRULEPOSTFIX=release
+endif
+else
+CLEANRULEPOSTFIX=$(OBJDIRPREFIX)
+endif
+
+.PHONY: all cleanall clean clean$(CLEANRULEPOSTFIX)
### Implicit rules ###
CREATEDIR=if not exist $@ mkdir $@
@@ -87,11 +97,9 @@ CREATEDIR=if not exist $@ mkdir $@ $(OBJDIR) :
$(CREATEDIR)
-ifneq ($(OBJDIRPREFIX),)
-clean: clean$(OBJDIRPREFIX)
-endif
+clean: clean$(CLEANRULEPOSTFIX)
-clean$(OBJDIRPREFIX):
+clean$(CLEANRULEPOSTFIX):
del -e $(OBJDIR)
$(OBJDIR)\%$(OBJEXT) : %.c
|