diff options
Diffstat (limited to 'externals/build/linux/makefile')
-rw-r--r-- | externals/build/linux/makefile | 26 |
1 files changed, 19 insertions, 7 deletions
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 + + |