aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorN.N <matju@users.sourceforge.net>2009-12-14 19:55:54 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:04:53 +0200
commitc235f09fc5ef83827ac53375015f469cd7e13eec (patch)
tree4639e88e27e105709a2bbd6352cec17808fdc5c9 /Makefile
parent40194041a1efbf98c45185098e3795150a0128a4 (diff)
import version 0.36
svn path=/trunk/externals/august/readanysf~/; revision=12836
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d306b87
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,40 @@
+# Edit these two variables to suit your system.
+# You need both gavl and gmerlin_avdec libs to compile
+#
+GAVLPATH=/usr/local/include
+PDPATH=/usr/local/include
+
+##############################################
+LBITS := $(shell getconf LONG_BIT)
+ifeq ($(LBITS),64)
+ # do 64 bit stuff here, like set some CFLAGS
+CFLAGS = -fPIC -I./ -I$(GAVLPATH) -I$(GAVLPATH)/gavl -I$(GAVLPATH)/gmerlin -I$(PDPATH) -Wall
+else
+ # do 32 bit stuff here
+CFLAGS = -I./ -I$(GAVLPATH) -I$(GAVLPATH)/gavl -I$(GAVLPATH)/gmerlin -I$(PDPATH) -Wall
+endif
+
+LDFLAGS = -L/usr/local/lib -lpthread -lgavl -lgmerlin_avdec
+
+LINUXCFLAGS = -O1 -funroll-loops -fomit-frame-pointer \
+ -Wall -W -Wshadow -Wstrict-prototypes \
+ -Wno-unused -Wno-parentheses -Wno-switch
+
+
+all: pd_linux
+
+pd_linux: readanysf~.cpp Readsf.cpp Readsf.h objs/FifoAudioFrames.o objs/Readsf.o FifoAudioFrames.h FifoAudioFrames.cpp
+ g++ -shared -o readanysf~.pd_linux $(CFLAGS) $(LDFLAGS) \
+ readanysf~.cpp \
+ objs/FifoAudioFrames.o \
+ objs/Readsf.o
+ strip --strip-unneeded readanysf~.pd_linux
+
+objs/Readsf.o: Readsf.cpp Readsf.h FifoAudioFrames.h
+ g++ -c -o objs/Readsf.o Readsf.cpp $(CFLAGS)
+
+objs/FifoAudioFrames.o: FifoAudioFrames.cpp FifoAudioFrames.h
+ g++ -c -o objs/FifoAudioFrames.o FifoAudioFrames.cpp $(CFLAGS)
+
+clean:
+ rm objs/*.o readanysf~.pd_linux readanysf~.pd_darwin