summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-05-05 18:36:57 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-05-05 18:36:57 +0200
commitd1aed08111d9bfa20556716e2ff6c85f11b4fd0e (patch)
tree95cb2b11b330f6f29397825c7f9f4d61a12e22f3
parent74369dc68068f53cba7323bff3d250e1c2704725 (diff)
allow package based overwrite of DEBUG and STATIC builds
-rw-r--r--rules.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/rules.mk b/rules.mk
index eeea20a0e..c0f81f438 100644
--- a/rules.mk
+++ b/rules.mk
@@ -48,10 +48,14 @@ include $(TOPDIR)/target/$(ADK_TARGET_ARCH)/target.mk
endif
endif
-include $(TOPDIR)/mk/vars.mk
+ifneq (${DEBUG},)
+ADK_DEBUG:=y
+endif
+ifneq (${STATIC},)
+ADK_STATIC:=y
+endif
-# needed?
-#export BASH MAKE LANGUAGE LC_ALL OStype PATH
+include $(TOPDIR)/mk/vars.mk
CPPFLAGS_FOR_BUILD?=
CFLAGS_FOR_BUILD?= -O2 -Wall