From bd8d77dd8a6fbbc2a8925a2210917bfe0e2d6849 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Tue, 20 Jun 2006 17:20:32 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r5269, which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/input_noticer/; revision=5270 --- Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.1