aboutsummaryrefslogtreecommitdiff
path: root/gphoto/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'gphoto/makefile')
-rw-r--r--gphoto/makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/gphoto/makefile b/gphoto/makefile
new file mode 100644
index 0000000..f87381e
--- /dev/null
+++ b/gphoto/makefile
@@ -0,0 +1,25 @@
+current:
+ echo make pd_linux
+
+clean: ; rm -f *.pd_linux *.o
+
+# ----------------------- LINUX i386 -----------------------
+
+pd_linux: gphoto.pd_linux
+
+.SUFFIXES: .pd_linux
+
+LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
+ -Wall -W -Wshadow -Wstrict-prototypes \
+ -Wno-unused -Wno-parentheses -Wno-switch \
+ -lgphoto2 -lpthread
+
+LINUXINCLUDE = -I../../src
+
+.c.pd_linux:
+ cc $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c -ggdb
+ ld -shared -o $*.pd_linux $*.o -lc -lm -lgphoto2
+ strip --strip-unneeded $*.pd_linux
+ rm $*.o
+
+