Kaydet (Commit) ac8b13ee authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Set debug- and dbgutil-related variables here, too

üst a3bad285
...@@ -33,6 +33,51 @@ include $(GBUILDDIR)/Output.mk ...@@ -33,6 +33,51 @@ include $(GBUILDDIR)/Output.mk
# BuildDirs uses the Output functions already # BuildDirs uses the Output functions already
include $(GBUILDDIR)/BuildDirs.mk include $(GBUILDDIR)/BuildDirs.mk
# Presumably the common parts in gbuild.mk and gbuild_simple.mk should
# be factored out into one file instead of duplicating, but... perhaps
# wait until this stabilizes a bit and we know with more certainty
# what is needed in both.
# Or alternatively: Just mark these variables for export in gbuild.mk?
# I think any use of gbuild_simple.mk is in a sub-make under one that
# uses gbuild.mk anyway.
# gb_PRODUCT is used by windows.mk to decide which C/C++ runtime to
# link with.
ifneq ($(strip $(PRODUCT)$(product)),)
gb_PRODUCT := $(true)
else
ifneq ($(strip $(product)),)
gb_PRODUCT := $(true)
else
gb_PRODUCT := $(false)
endif
endif
# These are useful, too, for stuff built in "custom" Makefiles
ifneq ($(strip $(ENABLE_SYMBOLS)$(enable_symbols)),)
gb_SYMBOL := $(true)
else
gb_SYMBOL := $(false)
endif
gb_DEBUGLEVEL := 0
ifneq ($(strip $(DEBUG)$(debug)),)
gb_DEBUGLEVEL := 1
endif
ifneq ($(strip $(DBGLEVEL)$(dbglevel)),)
ifneq ($(strip $(dbglevel)),)
gb_DEBUGLEVEL := $(strip $(dbglevel))
else
gb_DEBUGLEVEL := $(strip $(DBGLEVEL))
endif
endif
ifneq ($(gb_DEBUGLEVEL),0)
gb_SYMBOL := $(true)
endif
include $(GBUILDDIR)/Helper.mk include $(GBUILDDIR)/Helper.mk
ifeq ($(OS),LINUX) ifeq ($(OS),LINUX)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment