aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix
diff options
context:
space:
mode:
Diffstat (limited to 'code/unix')
-rw-r--r--code/unix/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/code/unix/Makefile b/code/unix/Makefile
index d2d6ab1..296253d 100644
--- a/code/unix/Makefile
+++ b/code/unix/Makefile
@@ -361,16 +361,18 @@ default:build_release
debug: build_debug
release: build_release
-build_debug:
+build_debug: B=$(BD)
+build_debug: makedirs
$(MAKE) targets B=$(BD) CFLAGS="$(DEBUG_CFLAGS)"
-build_release:
+build_release: B=$(BR)
+build_release: makedirs
$(MAKE) targets B=$(BR) CFLAGS="$(RELEASE_CFLAGS)"
#Build both debug and release builds
all:build_debug build_release
-targets:makedirs $(TARGETS)
+targets: $(TARGETS)
makedirs:
@if [ ! -d $(B) ];then mkdir $(B);fi