aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorN.N. <david_merrill@users.sourceforge.net>2006-06-20 17:20:32 +0000
committerN.N. <david_merrill@users.sourceforge.net>2006-06-20 17:20:32 +0000
commitbd8d77dd8a6fbbc2a8925a2210917bfe0e2d6849 (patch)
treed1e7ec9d2cf141fc6b28d9cf6b800b9242a78608 /Makefile
This commit was generated by cvs2svn to compensate for changes in r5269,svn2git-root
which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/input_noticer/; revision=5270
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..12401f6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,33 @@
+CC=gcc
+
+pd_linux: input_noticer.pd_linux
+
+clean: ; rm -f *.pd_linux *.o *~
+
+# installs all compiled externals.
+# you'll want to change this to match where your externals live
+install: ; sudo cp *.pd_linux /usr/lib/pd/extra
+
+# installs the input_noticer
+# you'll want to change this to match where your externals live
+install_noticer: ; cp input_noticer.pd_linux /usr/lib/pd/extra
+
+# ----------------------- LINUX i386 -----------------------
+
+.SUFFIXES: .pd_linux
+
+LINUXLDFLAGS = `pkg-config --libs glib-2.0 hal dbus-glib-1` -lpthread -lgthread-2.0 -lglib-2.0
+# LINUXLDFLAGS = `pkg-config --libs glib-2.0 hal dbus-glib-1 gthread-2.0`
+
+LINUXCFLAGS = -DUNIX -DPD -O2 -funroll-loops -fomit-frame-pointer \
+ -Wall -W -Wshadow -Wstrict-prototypes -Werror \
+ -Wno-unused -Wno-parentheses -Wno-switch \
+ `pkg-config --cflags --libs glib-2.0 hal dbus-glib-1 gthread-2.0`
+
+LINUXINCLUDE = -I/usr/local/lib/pd/include -I/usr/lib/pd/src -I/usr/local/include
+
+.c.pd_linux:
+ $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
+ ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm $(LINUXLDFLAGS)
+ strip --strip-unneeded $*.pd_linux
+ rm $*.o