diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2007-01-20 14:26:02 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2007-01-20 14:26:02 +0000 |
commit | fa5a047a01effcc99b3390804f6c408a73b9ecf8 (patch) | |
tree | e81c05cb122440561a6e08e01bcdac266badd51f /externals/grill/flext/buildsys/gnumake.inc | |
parent | 9303c7e113a5527d58b814c7bb11db5dbdfba5a4 (diff) |
PD: possibility to create DSP objects without main DSP inlet (use FLEXT_DSP0_NEW or similar)
fixing typo
support for multiple archs under OSX
small fix for ppc arch
architecture-specific compiler flags for UB under OSX
fixed severe Altivec bug
changed eol-style
corrections to config build templates
added xcode 2.4 project
fixed atom sorting (now also respect symbol content)
no stripping of local symbols
some fixes, mostly OS X
updated build system for Max with MinGW
better default values
fixed bug in AtomList copying
svn path=/trunk/; revision=7368
Diffstat (limited to 'externals/grill/flext/buildsys/gnumake.inc')
-rw-r--r-- | externals/grill/flext/buildsys/gnumake.inc | 63 |
1 files changed, 44 insertions, 19 deletions
diff --git a/externals/grill/flext/buildsys/gnumake.inc b/externals/grill/flext/buildsys/gnumake.inc index 4d8a9b7f..27052d68 100644 --- a/externals/grill/flext/buildsys/gnumake.inc +++ b/externals/grill/flext/buildsys/gnumake.inc @@ -1,28 +1,53 @@ ############################################## +# cross-compilation +############################################## + +ifndef ARCH +ifeq ("$(shell uname -p)","powerpc") +ARCH := ppc +else +ARCH := $(shell uname -p) +endif +endif + +############################################## # some compiler definitions ############################################## CFLAGS += $(UFLAGS) +$(foreach arch,$(ARCH),$(eval CFLAGS_$(arch) += $$(UFLAGS_$(arch)) ) ) ifdef DEBUG -CFLAGS += -D_DEBUG $(DFLAGS) -else -ifdef PROFILE -CFLAGS += -DNDEBUG $(OFLAGS) -else -CFLAGS += -DNDEBUG $(OFLAGS) -endif + +DEFS += -D_DEBUG +CFLAGS += $(DFLAGS) + +define ARCH_FLAGS +CFLAGS_$(1) += $$(DFLAGS_$(1)) +endef + +else ## profile and release + +DEFS += -DNDEBUG +CFLAGS += $(OFLAGS) + +define ARCH_FLAGS +CFLAGS_$(1) += $$(OFLAGS_$(1)) +endef + endif +$(foreach arch,$(ARCH),$(eval $(call ARCH_FLAGS,$(arch)))) + ifdef SHARED # --- shared --- -DEFS+=-DFLEXT_SHARED +DEFS += -DFLEXT_SHARED else ifdef THREADED # --- static multi-threaded --- -DEFS+=-DFLEXT_THREADS +DEFS += -DFLEXT_THREADS else # --- static single-threaded --- @@ -35,36 +60,36 @@ endif ############################################## ifdef SHARED -TYPEEXT=_ +TYPEEXT := _ else ifdef THREADED -TYPEEXT=_t +TYPEEXT := _t else -TYPEEXT=_s +TYPEEXT := _s endif endif ifdef DEBUG -MODEEXT=d +MODEEXT := d else ifdef PROFILE -MODEEXT=p +MODEEXT := p else -MODEEXT= +MODEEXT := ifdef SHARED -TYPEEXT= +TYPEEXT := endif endif endif -FLEXTNAME=flext-$(RTSYS)$(TYPEEXT)$(MODEEXT) +FLEXTNAME := flext-$(RTSYS)$(TYPEEXT)$(MODEEXT) ############################################## # product name and folder ############################################## ifndef SRCDIR -SRCDIR=. +SRCDIR := . endif -OUTSUB=$(TARGETMODE)-$(TARGETTYPE) +OUTSUB := $(TARGETMODE)-$(TARGETTYPE) |