From 2699a87e6e5c7f6d5c81841ef015d44372c78b55 Mon Sep 17 00:00:00 2001 From: Guenter Geiger Date: Fri, 25 Oct 2002 17:04:52 +0000 Subject: fiddling with build system svn path=/trunk/; revision=197 --- externals/build/README | 2 +- externals/build/linux/makefile | 26 +++++++++++++++++++------- 2 files changed, 20 insertions(+), 8 deletions(-) (limited to 'externals/build') diff --git a/externals/build/README b/externals/build/README index 8fe79687..ccc691d6 100644 --- a/externals/build/README +++ b/externals/build/README @@ -23,7 +23,7 @@ that are in the CVS. Every external (the source code) is linked into the "src" directory. In order to be platform independent this is done via c-includes. -Then the build system just tries to build every exeternal that it +Then the build system just tries to build every external that it finds in "src". Problems with this approach: diff --git a/externals/build/linux/makefile b/externals/build/linux/makefile index f7a60def..b3d5f3c5 100644 --- a/externals/build/linux/makefile +++ b/externals/build/linux/makefile @@ -1,6 +1,7 @@ +prefix=$(DESTDIR)/usr -EXTERNALS = $(shell ls ../src) +EXTERNALS = $(shell ls ) all: $(EXTERNALS:.c=.pd_linux) @@ -10,18 +11,29 @@ LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \ -Wall -W -Wshadow -Wstrict-prototypes \ -Wno-unused -Wno-parentheses -Wno-switch -LINUXINCLUDE = -I.. -I../../../pd/src +LINUXINCLUDE = -I. -I.. -I../../../pd/src %.pd_linux: ../src/%.c - $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c ../src/$*.c - ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm - chmod a-x $*.pd_linux + $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o "$*.o" -c "../src/$*.c" + ld -export_dynamic -shared -o "$*.pd_linux" "$*.o" -lc -lm + chmod a-x "$*.pd_linux" # strip --strip-unneeded $*.pd_linux - rm -f $*.o + rm -f "$*.o" clean: -rm *.pd_linux *~ -install: +install-doc: + cp -r ../doc/* $(prefix)/lib/pd/doc/5.reference + +install: install-doc install -m644 *.pd_linux $(prefix)/lib/pd/extra + +link: link.stamp + +link.stamp: + cp ../src/*.c . + touch link.stamp + + -- cgit v1.2.1