diff options
author | Bryan Jurish <mukau@users.sourceforge.net> | 2007-08-10 10:30:05 +0000 |
---|---|---|
committer | Bryan Jurish <mukau@users.sourceforge.net> | 2007-08-10 10:30:05 +0000 |
commit | 5053b38f9492e2bf87750cb5a05ce8b5ab176971 (patch) | |
tree | ba6e7eeb578ad4aaed5f7c11af783566a9cbedf6 | |
parent | fa3b0da8bcb13d58101dc99f8dc71458738ea10f (diff) |
+ updated extended/Makefile
- hopefully fixes build failures on mingw32_nt-5.1_windowsxp-i386
+ updated default linux optimization flags in */configure.in
svn path=/trunk/externals/moocow/; revision=8503
-rw-r--r-- | deque/configure.in | 2 | ||||
-rw-r--r-- | extended/Makefile | 118 | ||||
-rw-r--r-- | flite/configure.in | 3 | ||||
-rw-r--r-- | gfsm/configure.in | 2 | ||||
-rw-r--r-- | readdir/configure.in | 2 | ||||
-rw-r--r-- | weightmap/configure.in | 2 |
6 files changed, 69 insertions, 60 deletions
diff --git a/deque/configure.in b/deque/configure.in index ae69a12..df53e9d 100644 --- a/deque/configure.in +++ b/deque/configure.in @@ -157,7 +157,7 @@ then LFLAGS="-export_dynamic -shared" if test "$DEBUG" == "no"; then #OFLAGS="-O6 -funroll-loops -fomit-frame-pointer -finline-limit-10000000" - OFLAGS="-O6 -funroll-loops -fomit-frame-pointer" + OFLAGS="-O3 -funroll-loops -fomit-frame-pointer -pipe" else OFLAGS="-g" fi diff --git a/extended/Makefile b/extended/Makefile index 0d46998..3f9185d 100644 --- a/extended/Makefile +++ b/extended/Makefile @@ -8,16 +8,14 @@ ##====================================================================== ## Variables -SUBDIRS_DONT = \ - ../flite \ - ../gfsm - SUBDIRS = \ - ../deque \ - ../readdir \ - ../weightmap \ - ../pdstring \ - ../../sprinkler + flite \ + gfsm \ + deque \ + readdir \ + weightmap \ + pdstring \ + sprinkler ##-- 'pdstring' and 'sprinkler' are already in 'flatspace' ... should they be moved here? @@ -29,7 +27,8 @@ MOOCOW_MFLAGS ?=DESTDIR="" CONFIGURE_ARGS=\ CFLAGS="$(CFLAGS)" \ --with-pd-include="$(pd_src)/src" \ - --with-pd-dir="$(MOOCOW_BUILD)" + --with-pd-dir="$(MOOCOW_BUILD)" \ + --disable-dependency-tracking # --with-pd-extdir="$(MOOCOW_BUILD)/externs" @@ -42,67 +41,76 @@ pd_src ?= $(CURDIR)/../../../pd ## Rules: default all: build.stamp -autogen: $(SUBDIRS:=-autogen) -configure: $(SUBDIRS:=-configure) - -build.stamp: $(SUBDIRS:=/build.stamp) - touch $@ - -reamde: README.txt -README.txt: README.pod - pod2text README.pod $@ - -clean: - for d in $(SUBDIRS); do $(MAKE) $(MOOCOW_MFLAGS) -C $$d clean || true; rm -f $$d/build.stamp; done; - rm -f build.stamp config.log - rm -rf $(MOOCOW_BUILD) - -realclean: clean - for d in $(SUBDIRS); do $(MAKE) $(MOOCOW_MFLAGS) -C $$d realclean || true; done; - -distclean: clean - for d in $(SUBDIRS); do $(MAKE) $(MOOCOW_MFLAGS) -C $$d distclean || true; done; - -cvsclean: clean - for d in $(SUBDIRS); do $(MAKE) $(MOOCOW_MFLAGS) -C $$d cvsclean || true; done; - - ##====================================================================== ## Templates: subdir -## RULES = $(call subdir_template,$(dir_path),$(configure_args)) +## RULES = $(call subdir_template,$(dir_basename),$(dir_path),$(configure_args)) define subdir_template - $(1)-autogen: $(1)-distclean - (cd $(1); sh ./autogen.sh) || true +$(1).autogen_stamp: + (cd $(2); sh ./autogen.sh) || true + touch $$@ - $(1)-configure: $(1)-autogen - (cd $(1); sh ./configure $(CONFIGURE_ARGS) $(2); make clean) || true +$(1).configure_stamp: $(1).autogen_stamp + (cd $(2); sh ./configure $(CONFIGURE_ARGS) $(3); make clean) || true + touch $$@ - $(1)/build.stamp: $(1)-configure - $(MAKE) $(MOOCOW_MFLAGS) -C $(1) all install || true +$(1).build_stamp: $(1).configure_stamp + $(MAKE) $(MOOCOW_MFLAGS) -C $(2) all install || true touch $$@ - $(1)-clean: - $(MAKE) -C $(1) clean || true +$(1).extclean: + rm -f $(1).autogen_stamp $(1).configure_stamp $(1).build_stamp + +$(1).clean: $(1).extclean + $(MAKE) -C $(2) clean || true + +$(1).distclean: $(1).extclean + $(MAKE) -C $(2) distclean || true + +$(1).cvsclean: $(1).extclean + $(MAKE) -C $(2) cvsclean || true - $(1)-distclean: - $(MAKE) -C $(1) distclean || true endef ##====================================================================== ## Rules: subdirectories ##-- flite, gfsm: simulate failed builds -#$(eval $(call subdir_template,../flite,--with-flite-dir=/NOPE)) -#$(eval $(call subdir_template,../gfsm,--disable-gfsm)) +#$(eval $(call subdir_template,flite,../flite,--with-flite-dir=/NOPE)) +#$(eval $(call subdir_template,gfsm,../gfsm,--disable-gfsm)) ##-- flite, gfsm: build 'em if you got 'em -$(eval $(call subdir_template,../flite,)) -$(eval $(call subdir_template,../gfsm,)) +$(eval $(call subdir_template,flite,../flite,)) +$(eval $(call subdir_template,gfsm,../gfsm,)) ##-- the usual suspects -$(eval $(call subdir_template,../deque,)) -$(eval $(call subdir_template,../pdstring,--enable-object-externals)) -$(eval $(call subdir_template,../readdir,)) -$(eval $(call subdir_template,../../sprinkler,)) -$(eval $(call subdir_template,../weightmap,)) +$(eval $(call subdir_template,deque,../deque,)) +$(eval $(call subdir_template,pdstring,../pdstring,--enable-object-externals)) +$(eval $(call subdir_template,readdir,../readdir,)) +$(eval $(call subdir_template,sprinkler,../../sprinkler,)) +$(eval $(call subdir_template,weightmap,../weightmap,)) + + +##====================================================================== +## Rules: local +autogen: $(SUBDIRS:=.autogen_stamp) +configure: $(SUBDIRS:=.configure_stamp) + +build.stamp: $(SUBDIRS:=.build_stamp) + touch $@ + +readme: README.txt +README.txt: README.pod + pod2text README.pod $@ + +extclean: $(SUBDIRS:=.extclean) + +clean: $(SUBDIRS:=.clean) + rm -f build.stamp config.log + rm -rf $(MOOCOW_BUILD) + +realclean: distclean + +distclean: $(SUBDIRS:=.distclean) clean + +cvsclean: $(SUBDIRS:=.cvsclean) clean diff --git a/flite/configure.in b/flite/configure.in index e7cc7da..dce1cee 100644 --- a/flite/configure.in +++ b/flite/configure.in @@ -186,7 +186,8 @@ if test `uname -s` = Linux; then LFLAGS="$LFLAGS -export_dynamic -shared" if test "$DEBUG" == "no"; then - OFLAGS="-O6 -funroll-loops -fomit-frame-pointer" + #OFLAGS="-O6 -funroll-loops -fomit-frame-pointer" + OFLAGS="-O3 -funroll-loops -fomit-frame-pointer -pipe" else OFLAGS="-g" fi diff --git a/gfsm/configure.in b/gfsm/configure.in index 0578203..c627732 100644 --- a/gfsm/configure.in +++ b/gfsm/configure.in @@ -188,7 +188,7 @@ then if test "$DEBUG" == "no"; then #OFLAGS="-O6 -funroll-loops -fomit-frame-pointer -finline-limit-10000000" #OFLAGS="-O6 -funroll-loops -fomit-frame-pointer" - OFLAGS="-O3" + OFLAGS="-O3 -pipe" else OFLAGS="-g" fi diff --git a/readdir/configure.in b/readdir/configure.in index c5326e1..643df23 100644 --- a/readdir/configure.in +++ b/readdir/configure.in @@ -154,7 +154,7 @@ then LFLAGS="-export_dynamic -shared" if test "$DEBUG" == "no"; then #OFLAGS="-O6 -funroll-loops -fomit-frame-pointer -finline-limit-10000000" - OFLAGS="-O6 -funroll-loops -fomit-frame-pointer" + OFLAGS="-O3 -funroll-loops -fomit-frame-pointer -pipe" else OFLAGS="-g" fi diff --git a/weightmap/configure.in b/weightmap/configure.in index 1f472dc..bb9c086 100644 --- a/weightmap/configure.in +++ b/weightmap/configure.in @@ -153,7 +153,7 @@ then LFLAGS="-export_dynamic -shared" if test "$DEBUG" == "no"; then #OFLAGS="-O6 -funroll-loops -fomit-frame-pointer -finline-limit-10000000" - OFLAGS="-O6 -funroll-loops -fomit-frame-pointer" + OFLAGS="-O3 -funroll-loops -fomit-frame-pointer -pipe" else OFLAGS="-g" fi |