aboutsummaryrefslogtreecommitdiffstats
path: root/boards
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-09-26 18:08:49 +1000
committerinmarket <andrewh@inmarket.com.au>2014-09-26 18:09:05 +1000
commitb2b3859e6265f3841d0205ad64a4d5b654f98959 (patch)
tree7e824aef3ff1ddd21415d8234e5188335baabb6a /boards
parentbe9d35472764523f36ac91891b78aca613467ac1 (diff)
downloaduGFX-b2b3859e6265f3841d0205ad64a4d5b654f98959.tar.gz
uGFX-b2b3859e6265f3841d0205ad64a4d5b654f98959.tar.bz2
uGFX-b2b3859e6265f3841d0205ad64a4d5b654f98959.zip
More makefile updates
Diffstat (limited to 'boards')
-rw-r--r--boards/base/Linux-Framebuffer/example/Makefile10
-rw-r--r--boards/base/Linux/example/Makefile10
-rw-r--r--boards/base/Win32/example/Makefile5
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