aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/nmake.mak
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-12-20 05:06:19 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-12-20 05:06:19 +0000
commit6dacabe813f4ccab33669b5dd3e3b5f61be500af (patch)
tree81abcc117357483b0a0dc0a1a7ba5b118964775f /externals/grill/flext/buildsys/nmake.mak
parent5370cdab3db6ddfa60fef41ca22756284fa700dd (diff)
simplified make system
updated make system for BCC updated make system updated build system svn path=/trunk/; revision=2416
Diffstat (limited to 'externals/grill/flext/buildsys/nmake.mak')
-rw-r--r--externals/grill/flext/buildsys/nmake.mak142
1 files changed, 142 insertions, 0 deletions
diff --git a/externals/grill/flext/buildsys/nmake.mak b/externals/grill/flext/buildsys/nmake.mak
new file mode 100644
index 00000000..40a8d8c4
--- /dev/null
+++ b/externals/grill/flext/buildsys/nmake.mak
@@ -0,0 +1,142 @@
+# required settings:
+#
+# PLATFORM - win/mac/lnx
+# RTSYS - pd/max
+# COMPILER - msvc/gcc/mingw/cygwin
+# BUILDPATH including trailing \
+
+# package info
+USRINFO=package.txt
+
+!include $(USRINFO)
+
+
+SYSCONFIG=$(BUILDPATH)config-$(PLATFORM)-$(RTSYS)-$(COMPILER).txt
+SYSDEFAULT=$(BUILDPATH)$(PLATFORM)\$(RTSYS)\config-$(COMPILER).def
+
+
+OPTIONS=-f $(BUILDPATH)nmake-sub.mak \
+ PLATFORM=$(PLATFORM) RTSYS=$(RTSYS) COMPILER=$(COMPILER) \
+ BUILDPATH=$(BUILDPATH) USRINFO=$(USRINFO)
+
+
+!ifdef BUILDDIR
+USRCONFIG=config.txt
+USRDEFAULT=$(BUILDDIR)\config-$(PLATFORM).def
+
+USRMAKE=$(BUILDDIR)\makefile-$(PLATFORM)-$(COMPILER).inc
+
+OPTIONS=$(OPTIONS) USRCONFIG=$(USRCONFIG) USRMAKE=$(USRMAKE)
+!endif
+
+
+!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_
+
+
+
+config: $(USRMAKE) $(SYSCONFIG) $(USRCONFIG)
+
+
+.precious: $(SYSCONFIG) $(USRCONFIG)
+
+$(SYSCONFIG): $(SYSDEFAULT)
+ @copy $** $@
+ @echo -------------------------------------------------------------------------
+ @echo A default system configuration file has been created.
+ @echo Please edit $(SYSCONFIG)
+ @echo to match your platform and start again.
+ @echo -------------------------------------------------------------------------
+ @exit 1
+
+!ifdef BUILDDIR
+$(USRCONFIG): $(USRDEFAULT)
+ @copy $** $@
+ @echo -------------------------------------------------------------------------
+ @echo A default package configuration file has been created.
+ @echo Please edit $(USRCONFIG) and start again.
+ @echo -------------------------------------------------------------------------
+ @exit 1
+
+$(USRDEFAULT) $(USRMAKE):
+ @echo -------------------------------------------------------------------------
+ @echo Your combination of platform, system and compiler is not supported yet.
+ @echo Required files:
+ @echo $(USRDEFAULT)
+ @echo and
+ @echo $(USRMAKE)
+ @echo -------------------------------------------------------------------------
+ @exit 1
+!endif