More makefile updates
This commit is contained in:
parent
be9d354727
commit
b2b3859e62
3 changed files with 22 additions and 3 deletions
|
@ -107,6 +107,10 @@ ifeq ($(MAKECMDGOALS),Debug)
|
||||||
BUILDDIR = bin/Debug
|
BUILDDIR = bin/Debug
|
||||||
else ifeq ($(MAKECMDGOALS),Release)
|
else ifeq ($(MAKECMDGOALS),Release)
|
||||||
BUILDDIR = bin/Release
|
BUILDDIR = bin/Release
|
||||||
|
else ifeq ($(MAKECMDGOALS),cleanDebug)
|
||||||
|
BUILDDIR = bin/Debug
|
||||||
|
else ifeq ($(MAKECMDGOALS),cleanRelease)
|
||||||
|
BUILDDIR = bin/Release
|
||||||
else ifeq ($(BUILDDIR),)
|
else ifeq ($(BUILDDIR),)
|
||||||
BUILDDIR = .build
|
BUILDDIR = .build
|
||||||
else ifeq ($(BUILDDIR),.)
|
else ifeq ($(BUILDDIR),.)
|
||||||
|
@ -158,6 +162,10 @@ CPFLAGS += -MD -MP -MF $(DEPDIR)/$(@F).d
|
||||||
# makefile rules
|
# makefile rules
|
||||||
#
|
#
|
||||||
|
|
||||||
|
Debug Release: all
|
||||||
|
|
||||||
|
cleanDebug cleanRelease: clean
|
||||||
|
|
||||||
all: $(BUILDDIR) $(OBJS) $(PROJECT)
|
all: $(BUILDDIR) $(OBJS) $(PROJECT)
|
||||||
|
|
||||||
$(BUILDDIR) $(OBJDIR) $(LSTDIR) $(MAPDIR):
|
$(BUILDDIR) $(OBJDIR) $(LSTDIR) $(MAPDIR):
|
||||||
|
@ -201,7 +209,7 @@ gcov:
|
||||||
-mv *.gcov ./gcov
|
-mv *.gcov ./gcov
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f $(BUILDDIR)
|
-rm -fR $(BUILDDIR)
|
||||||
-rm -fR $(DEPDIR)
|
-rm -fR $(DEPDIR)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -107,6 +107,10 @@ ifeq ($(MAKECMDGOALS),Debug)
|
||||||
BUILDDIR = bin/Debug
|
BUILDDIR = bin/Debug
|
||||||
else ifeq ($(MAKECMDGOALS),Release)
|
else ifeq ($(MAKECMDGOALS),Release)
|
||||||
BUILDDIR = bin/Release
|
BUILDDIR = bin/Release
|
||||||
|
else ifeq ($(MAKECMDGOALS),cleanDebug)
|
||||||
|
BUILDDIR = bin/Debug
|
||||||
|
else ifeq ($(MAKECMDGOALS),cleanRelease)
|
||||||
|
BUILDDIR = bin/Release
|
||||||
else ifeq ($(BUILDDIR),)
|
else ifeq ($(BUILDDIR),)
|
||||||
BUILDDIR = .build
|
BUILDDIR = .build
|
||||||
else ifeq ($(BUILDDIR),.)
|
else ifeq ($(BUILDDIR),.)
|
||||||
|
@ -158,6 +162,10 @@ CPFLAGS += -MD -MP -MF $(DEPDIR)/$(@F).d
|
||||||
# makefile rules
|
# makefile rules
|
||||||
#
|
#
|
||||||
|
|
||||||
|
Debug Release: all
|
||||||
|
|
||||||
|
cleanDebug cleanRelease: clean
|
||||||
|
|
||||||
all: $(BUILDDIR) $(OBJS) $(PROJECT)
|
all: $(BUILDDIR) $(OBJS) $(PROJECT)
|
||||||
|
|
||||||
$(BUILDDIR) $(OBJDIR) $(LSTDIR) $(MAPDIR):
|
$(BUILDDIR) $(OBJDIR) $(LSTDIR) $(MAPDIR):
|
||||||
|
@ -201,7 +209,7 @@ gcov:
|
||||||
-mv *.gcov ./gcov
|
-mv *.gcov ./gcov
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f $(BUILDDIR)
|
-rm -fR $(BUILDDIR)
|
||||||
-rm -fR $(DEPDIR)
|
-rm -fR $(DEPDIR)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -132,6 +132,10 @@ ifeq ($(MAKECMDGOALS),Debug)
|
||||||
BUILDDIR = bin/Debug
|
BUILDDIR = bin/Debug
|
||||||
else ifeq ($(MAKECMDGOALS),Release)
|
else ifeq ($(MAKECMDGOALS),Release)
|
||||||
BUILDDIR = bin/Release
|
BUILDDIR = bin/Release
|
||||||
|
else ifeq ($(MAKECMDGOALS),cleanDebug)
|
||||||
|
BUILDDIR = bin/Debug
|
||||||
|
else ifeq ($(MAKECMDGOALS),cleanRelease)
|
||||||
|
BUILDDIR = bin/Release
|
||||||
else ifeq ($(BUILDDIR),)
|
else ifeq ($(BUILDDIR),)
|
||||||
BUILDDIR = .build
|
BUILDDIR = .build
|
||||||
else ifeq ($(BUILDDIR),.)
|
else ifeq ($(BUILDDIR),.)
|
||||||
|
@ -168,7 +172,6 @@ CPFLAGS += -MD -MP -MF $(DEPDIR)/$(@F).d
|
||||||
Debug Release: all
|
Debug Release: all
|
||||||
|
|
||||||
cleanDebug cleanRelease: clean
|
cleanDebug cleanRelease: clean
|
||||||
-rm -fR bin
|
|
||||||
|
|
||||||
all: $(BUILDDIR) $(OBJS) $(BUILDDIR)/$(PROJECT).exe MAKE_ALL_RULE_HOOK
|
all: $(BUILDDIR) $(OBJS) $(BUILDDIR)/$(PROJECT).exe MAKE_ALL_RULE_HOOK
|
||||||
#all: main.cp
|
#all: main.cp
|
||||||
|
|
Loading…
Add table
Reference in a new issue