aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/gnumake.mak
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-01-03 05:00:31 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-01-03 05:00:31 +0000
commit1611d50c03d8f79560ffc3bc63c268894f411abc (patch)
tree33a751fe81ef62e3bb4104f82132d3bc43efcaa7 /externals/grill/flext/buildsys/gnumake.mak
parent7873938d18daf4a94ca77eeb970457f89e679374 (diff)
updated make system
build system for OSX simplified make system reconsidered flext::buffer:Update added object construction and destruction flags updated build system svn path=/trunk/; revision=2447
Diffstat (limited to 'externals/grill/flext/buildsys/gnumake.mak')
-rw-r--r--externals/grill/flext/buildsys/gnumake.mak113
1 files changed, 35 insertions, 78 deletions
diff --git a/externals/grill/flext/buildsys/gnumake.mak b/externals/grill/flext/buildsys/gnumake.mak
index 5b191702..af83c019 100644
--- a/externals/grill/flext/buildsys/gnumake.mak
+++ b/externals/grill/flext/buildsys/gnumake.mak
@@ -5,11 +5,39 @@
# COMPILER - msvc/gcc/mingw/cygwin
# BUILDPATH including trailing /
+###############################################
# package info
+
USRINFO=package.txt
include $(USRINFO)
+###############################################
+# check variables
+
+ifndef BUILDCLASS
+ error BUILDCLASS must be specified in $(USRINFO)
+endif
+
+ifndef BUILDMODE
+ error BUILDMODE must be specified in $(USRINFO)
+endif
+
+ifndef BUILDTYPE
+ error BUILDTYPE must be specified in $(USRINFO)
+endif
+
+##############################
+
+ifndef TARGETMODE
+ TARGETMODE=$(BUILDMODE)
+endif
+
+ifndef TARGETTYPE
+ TARGETTYPE=$(BUILDTYPE)
+endif
+
+###############################################
ifeq ($(PLATFORM),win)
# substitute eventual \ by /
@@ -18,15 +46,16 @@ else
UBUILDPATH=$(BUILDPATH)
endif
+###############################################
SYSCONFIG=$(UBUILDPATH)config-$(PLATFORM)-$(RTSYS)-$(COMPILER).txt
SYSDEFAULT=$(UBUILDPATH)$(PLATFORM)/$(RTSYS)/config-$(COMPILER).def
-
OPTIONS=-f $(UBUILDPATH)gnumake-sub.mak \
PLATFORM=$(PLATFORM) RTSYS=$(RTSYS) COMPILER=$(COMPILER) \
BUILDPATH=$(UBUILDPATH) USRINFO=$(USRINFO)
+###############################################
ifdef BUILDDIR
USRCONFIG=config.txt
@@ -37,86 +66,14 @@ USRMAKE=$(BUILDDIR)/makefile-$(PLATFORM)-$(COMPILER).inc
OPTIONS+=USRCONFIG=$(USRCONFIG) USRMAKE=$(USRMAKE)
endif
+###############################################
+# include file describing default target dependencies
-ifdef FLEXTBUILD
-all: flext
-else
-all: build-sr
-
-shared: build-tr
-endif
-
-flext: flext-release flext-debug
-
-flext-release: build-dr build-tr build-sr
-
-flext-debug: build-dd build-td build-sd
-
-install: install-dr install-tr install-sr install-dd install-td install-sd
-
-clean: clean-dr clean-tr clean-sr clean-dd clean-td clean-sd
-
-
-build-sr: config
- $(MAKE) $(OPTIONS) _all_
-
-build-sd: config
- $(MAKE) $(OPTIONS) DEBUG=1 _all_
-
-build-tr: config
- $(MAKE) $(OPTIONS) THREADED=1 _all_
-
-build-td: config
- $(MAKE) $(OPTIONS) THREADED=1 DEBUG=1 _all_
-
-build-dr: config
- $(MAKE) $(OPTIONS) SHARED=1 _all_
-
-build-dd: config
- $(MAKE) $(OPTIONS) SHARED=1 DEBUG=1 _all_
-
-
-install-sr:
- $(MAKE) $(OPTIONS) _install_
-
-install-sd:
- $(MAKE) $(OPTIONS) DEBUG=1 _install_
-
-install-tr:
- $(MAKE) $(OPTIONS) THREADED=1 _install_
-
-install-td:
- $(MAKE) $(OPTIONS) THREADED=1 DEBUG=1 _install_
-
-install-dr:
- $(MAKE) $(OPTIONS) SHARED=1 _install_
-
-install-dd:
- $(MAKE) $(OPTIONS) SHARED=1 DEBUG=1 _install_
-
-
-clean-sr:
- $(MAKE) $(OPTIONS) _clean_
-
-clean-sd:
- $(MAKE) $(OPTIONS) DEBUG=1 _clean_
-
-clean-tr:
- $(MAKE) $(OPTIONS) THREADED=1 _clean_
-
-clean-td:
- $(MAKE) $(OPTIONS) THREADED=1 DEBUG=1 _clean_
-
-clean-dr:
- $(MAKE) $(OPTIONS) SHARED=1 _clean_
-
-clean-dd:
- $(MAKE) $(OPTIONS) SHARED=1 DEBUG=1 _clean_
-
-
+include $(BUILDPATH)targets.inc
-config: $(USRMAKE) $(SYSCONFIG) $(USRCONFIG)
+include $(BUILDPATH)targets-$(BUILDCLASS).inc
+###############################################
.precious: $(SYSCONFIG) $(USRCONFIG)