diff options
| author | inmarket <andrewh@inmarket.com.au> | 2014-09-26 18:08:49 +1000 | 
|---|---|---|
| committer | inmarket <andrewh@inmarket.com.au> | 2014-09-26 18:08:49 +1000 | 
| commit | 8926f56babf93c13d18649ade196c1e42b56e77e (patch) | |
| tree | 8d0aafabb43eb53927a144ffa92af28839828a16 | |
| parent | 1298e3d6358f65c677fca8125ee7947501592b39 (diff) | |
| download | uGFX-8926f56babf93c13d18649ade196c1e42b56e77e.tar.gz uGFX-8926f56babf93c13d18649ade196c1e42b56e77e.tar.bz2 uGFX-8926f56babf93c13d18649ade196c1e42b56e77e.zip  | |
More makefile updates
| -rw-r--r-- | boards/base/Linux-Framebuffer/example/Makefile | 10 | ||||
| -rw-r--r-- | boards/base/Linux/example/Makefile | 10 | ||||
| -rw-r--r-- | boards/base/Win32/example/Makefile | 5 | 
3 files changed, 22 insertions, 3 deletions
diff --git a/boards/base/Linux-Framebuffer/example/Makefile b/boards/base/Linux-Framebuffer/example/Makefile index 8be8c839..d5032f57 100644 --- a/boards/base/Linux-Framebuffer/example/Makefile +++ b/boards/base/Linux-Framebuffer/example/Makefile @@ -107,6 +107,10 @@ ifeq ($(MAKECMDGOALS),Debug)    BUILDDIR = bin/Debug  else ifeq ($(MAKECMDGOALS),Release)    BUILDDIR = bin/Release +else ifeq ($(MAKECMDGOALS),cleanDebug) +  BUILDDIR = bin/Debug +else ifeq ($(MAKECMDGOALS),cleanRelease) +  BUILDDIR = bin/Release  else ifeq ($(BUILDDIR),)    BUILDDIR = .build  else ifeq ($(BUILDDIR),.) @@ -158,6 +162,10 @@ CPFLAGS += -MD -MP -MF $(DEPDIR)/$(@F).d  # makefile rules  # +Debug Release: all + +cleanDebug cleanRelease:	clean +  all: $(BUILDDIR) $(OBJS) $(PROJECT)  $(BUILDDIR) $(OBJDIR) $(LSTDIR) $(MAPDIR): @@ -201,7 +209,7 @@ gcov:  	-mv *.gcov ./gcov  clean: -	-rm -f $(BUILDDIR) +	-rm -fR $(BUILDDIR)  	-rm -fR $(DEPDIR)  # diff --git a/boards/base/Linux/example/Makefile b/boards/base/Linux/example/Makefile index 938494cb..21343755 100644 --- a/boards/base/Linux/example/Makefile +++ b/boards/base/Linux/example/Makefile @@ -107,6 +107,10 @@ ifeq ($(MAKECMDGOALS),Debug)    BUILDDIR = bin/Debug  else ifeq ($(MAKECMDGOALS),Release)    BUILDDIR = bin/Release +else ifeq ($(MAKECMDGOALS),cleanDebug) +  BUILDDIR = bin/Debug +else ifeq ($(MAKECMDGOALS),cleanRelease) +  BUILDDIR = bin/Release  else ifeq ($(BUILDDIR),)    BUILDDIR = .build  else ifeq ($(BUILDDIR),.) @@ -158,6 +162,10 @@ CPFLAGS += -MD -MP -MF $(DEPDIR)/$(@F).d  # makefile rules  # +Debug Release: all + +cleanDebug cleanRelease:	clean +  all: $(BUILDDIR) $(OBJS) $(PROJECT)  $(BUILDDIR) $(OBJDIR) $(LSTDIR) $(MAPDIR): @@ -201,7 +209,7 @@ gcov:  	-mv *.gcov ./gcov  clean: -	-rm -f $(BUILDDIR) +	-rm -fR $(BUILDDIR)  	-rm -fR $(DEPDIR)  # diff --git a/boards/base/Win32/example/Makefile b/boards/base/Win32/example/Makefile index 030cfc20..7d54ac02 100644 --- a/boards/base/Win32/example/Makefile +++ b/boards/base/Win32/example/Makefile @@ -132,6 +132,10 @@ ifeq ($(MAKECMDGOALS),Debug)    BUILDDIR = bin/Debug  else ifeq ($(MAKECMDGOALS),Release)    BUILDDIR = bin/Release +else ifeq ($(MAKECMDGOALS),cleanDebug) +  BUILDDIR = bin/Debug +else ifeq ($(MAKECMDGOALS),cleanRelease) +  BUILDDIR = bin/Release  else ifeq ($(BUILDDIR),)    BUILDDIR = .build  else ifeq ($(BUILDDIR),.) @@ -168,7 +172,6 @@ CPFLAGS += -MD -MP -MF $(DEPDIR)/$(@F).d  Debug Release: all  cleanDebug cleanRelease:	clean -	-rm -fR bin  all: $(BUILDDIR) $(OBJS) $(BUILDDIR)/$(PROJECT).exe MAKE_ALL_RULE_HOOK  #all: main.cp  | 
