diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2007-06-04 10:51:32 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2007-06-04 10:51:32 +0000 |
commit | 0e740d000052dba4fac7d874288d73d2072b4bb3 (patch) | |
tree | 2f8b8152b15fbcea6a35f322aa7e0a2ab87f0dfb /externals/Makefile | |
parent | 397d3c2e124fa586b6a0832af72452eaa7d9f4e9 (diff) |
use iem16's build-system for building iem16 (as externals)
svn path=/trunk/; revision=7747
Diffstat (limited to 'externals/Makefile')
-rw-r--r-- | externals/Makefile | 44 |
1 files changed, 16 insertions, 28 deletions
diff --git a/externals/Makefile b/externals/Makefile index 5ec1f353..2dd9be13 100644 --- a/externals/Makefile +++ b/externals/Makefile @@ -1215,38 +1215,20 @@ iem_bin_ambi_clean: # more externals in one file - so a little bit complicated ... ;) IEM16_NAME=iem16 IEM16_DIR := $(externals_src)/iem16/src -IEM16_SRC := $(wildcard $(externals_src)/iem16/src/iem16_*.c) -IEM16_TAR1 := tab16read.$(EXTENSION) tab16read4.$(EXTENSION) tab16write.$(EXTENSION) -IEM16_TAR2 := tab16write~.$(EXTENSION) tab16play~.$(EXTENSION) \ - tab16read~.$(EXTENSION) tab16read4~.$(EXTENSION) \ - tab16send~.$(EXTENSION) tab16receive~.$(EXTENSION) -IEM16_TAR3 := del16read~.$(EXTENSION) del16write~.$(EXTENSION) vd16~.$(EXTENSION) -IEM16_TAR4 := table16.$(EXTENSION) - -iem16: $(patsubst %,$(externals_src)/iem16/src/%,$(IEM16_TAR1)) $(patsubst %,$(externals_src)/iem16/src/%,$(IEM16_TAR2)) $(patsubst %,$(externals_src)/iem16/src/%,$(IEM16_TAR3)) $(patsubst %,$(externals_src)/iem16/src/%,$(IEM16_TAR4)) - -$(patsubst %,$(externals_src)/iem16/src/%,$(IEM16_TAR1)): %.$(EXTENSION) : $(IEM16_SRC:.c=.o) - $(CC) $(LDFLAGS) -o $*.$(EXTENSION) $(externals_src)/iem16/src/iem16_array.o $(externals_src)/iem16/src/iem16_table.o $(LIBS) - $(STRIP) $*.$(EXTENSION) - chmod 755 $*.$(EXTENSION) +IEM16_SRC := $(wildcard $(externals_src)/iem16/src/*.c) -$(patsubst %,$(externals_src)/iem16/src/%,$(IEM16_TAR2)): %.$(EXTENSION) : $(IEM16_SRC:.c=.o) - $(CC) $(LDFLAGS) -o $*.$(EXTENSION) $(externals_src)/iem16/src/iem16_array_tilde.o $(externals_src)/iem16/src/iem16_table.o $(LIBS) - $(STRIP) $*.$(EXTENSION) - chmod 755 $*.$(EXTENSION) -$(patsubst %,$(externals_src)/iem16/src/%,$(IEM16_TAR3)): %.$(EXTENSION) : $(IEM16_SRC:.c=.o) - $(CC) $(LDFLAGS) -o $*.$(EXTENSION) $(externals_src)/iem16/src/iem16_delay.o $(LIBS) $(externals_src)/iem16/src/iem16_table.o - $(STRIP) $*.$(EXTENSION) - chmod 755 $*.$(EXTENSION) +$(externals_src)/iem16/src/configure: $(externals_src)/iem16/src/configure.ac + cd $(externals_src)/iem16/src && autoconf -$(patsubst %,$(externals_src)/iem16/src/%,$(IEM16_TAR4)): %.$(EXTENSION) : $(IEM16_SRC:.c=.o) - $(CC) $(LDFLAGS) -o $*.$(EXTENSION) $(externals_src)/iem16/src/iem16_table.o $(LIBS) - $(STRIP) $*.$(EXTENSION) - chmod 755 $*.$(EXTENSION) +$(externals_src)/iem16/src/Make.config: $(externals_src)/iem16/src/Make.config.in \ +$(externals_src)/iem16/src/configure + cd $(externals_src)/iem16/src/ && ./configure --disable-library \ + --with-pd=$(pd_src) + +iem16: $(externals_src)/iem16/src/Make.config + $(MAKE) -C $(externals_src)/iem16/src/ -$(IEM16_SRC:.c=.o) : %.o : %.c - $(CC) $(CFLAGS) -o "$*.o" -c "$*.c" iem16_install: iem16 install -d $(objectsdir)/$(IEM16_NAME) @@ -1261,7 +1243,13 @@ iem16_install: iem16 $(helpdir)/$(IEM16_NAME) iem16_clean: + -$(MAKE) -C $(externals_src)/iem16/src clean -rm -f -- $(externals_src)/iem16/src/*.$(EXTENSION) + -rm -f -- $(externals_src)/iem16/src/*.d + -rm -rf -- $(externals_src)/iem16/src/autom4ate + -rm -rf -- $(externals_src)/iem16/src/conf[0-9][0-9][0-9]* + -rm -f -- $(externals_src)/iem16/src/configure + -rm -f -- $(externals_src)/iem16/src/Make.config -rm -f -- $(externals_src)/iem16/src/*.o -rm -f -- $(externals_src)/iem16/src/*.bak -rm -f -- $(externals_src)/iem16/src/*.*~ |