aboutsummaryrefslogtreecommitdiff
path: root/videogrid/Makefile.in
diff options
context:
space:
mode:
authorlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2011-02-13 01:44:51 +0000
committerlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2011-02-13 01:44:51 +0000
commit39e05a43165ebcc82f036d8a77afb4d42ce6ddf4 (patch)
tree5d4b0b0b2511489f2119a62e4292a3bcb30f30c8 /videogrid/Makefile.in
parent00c0411c0a2a68049562e14911adaa86d3bae25f (diff)
First autotools build aproach and removed unneeded libquicktime dependency
: should work for any *nix but probably needs to be well fixed for macos svn path=/trunk/externals/pdvjtools/; revision=14915
Diffstat (limited to 'videogrid/Makefile.in')
-rwxr-xr-xvideogrid/Makefile.in56
1 files changed, 56 insertions, 0 deletions
diff --git a/videogrid/Makefile.in b/videogrid/Makefile.in
new file mode 100755
index 0000000..b87873a
--- /dev/null
+++ b/videogrid/Makefile.in
@@ -0,0 +1,56 @@
+NAME = videogrid
+VERSION = @VIDEOGRID_VERSION@
+
+PD_DIR = @PD_DIR@
+GEM_DIR = @GEM_DIR@
+
+FF_CFLAGS = @FF_PACKAGE_CFLAGS@
+FF_LIBS = @FF_PACKAGE_LIBS@
+
+LIBS = @LIBS@
+CFLAGS = @CFLAGS@
+
+# choose target by OS
+UNAME := $(shell uname)
+ifeq ($(UNAME), Linux)
+TARGET=pd_linux
+else
+TARGET=pd_darwin
+#FF_CFLAGS=-I/sw/include ??
+#PD_DIR=/Applications/Pd-extended.app/Contents/Resources/include ??
+endif
+
+
+current: $(TARGET)
+
+# ----------------------- LINUX -----------------------
+
+pd_linux: $(NAME).pd_linux
+
+.SUFFIXES: .pd_linux
+
+.cc.pd_linux:
+ g++ $(FF_CFLAGS) $(CFLAGS) -I$(PD_DIR)/src -I$(GEM_DIR)/src -fPIC -c -O -o videogrid.o videogrid.cc
+ g++ $(FF_CFLAGS) $(CFLAGS) -Wl --export-dynamic -shared -o videogrid.pd_linux videogrid.o $(FF_LIBS) $(LIBS)
+ rm -f $*.o
+
+# ----------------------------------------------------------
+
+# ----------------------- LINUX -----------------------
+
+pd_darwin: $(NAME).pd_darwin
+
+.SUFFIXES: .pd_darwin
+
+.cc.pd_darwin:
+ g++ $(FF_CFLAGS) -I$(PD_DIR)/src -I$(GEM_DIR)/src -fPIC -c -O -o videogrid.o videogrid.cc
+ g++ $(FF_CFLAGS) $(CFLAGS) -Wl -bundle -undefined dynamic_lookup -o videogrid.pd_darwin videogrid.o $(FF_LIBS) $(LIBS)
+ rm -f $*.o
+
+# ----------------------------------------------------------
+
+install:
+ cp *-help.pd $(PD_DIR)/doc/5.reference
+
+clean:
+ rm -f *.o *.pd_* so_locations