aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in49
1 files changed, 49 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
new file mode 100644
index 0000000..a16e25d
--- /dev/null
+++ b/Makefile.in
@@ -0,0 +1,49 @@
+PD_DIR = @PD_DIR@
+PDP_DIR = @PDP_DIR@
+GEM_DIR = @GEM_DIR@
+
+LIBS = @LIBS@
+GEM2PDP_VERSION = @GEM2PDP_VERSION@
+
+GEM2PDP_DISTRO = /mnt/c/ydegoyon.free.fr/gem2pdp-$(GEM2PDP_VERSION)
+GEM2PDP_TARBALL = $(GEM2PDP_DISTRO).tar.gz
+# build flags
+
+GEM2PDP_INCLUDE = -I$(PD_DIR)/src -I. -I$(PDP_DIR)/include -I$(GEM_DIR)/src
+GEM2PDP_CPPFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math \
+ -Wall -W -Wno-unused -Wno-parentheses -Wno-switch \
+ -DGEM2PDP_VERSION=\"$(GEM2PDP_VERSION)\" -g
+PDP_PIDIP_CPPFLAGS = -O
+
+all: gem2pdp.pd_linux pdp2gem.pd_linux
+
+pdp2gem.pd_linux: pdp2gem.o yuv.o
+ rm -f pdp2gem.pd_linux
+ gcc -export_dynamic -shared -o pdp2gem.pd_linux pdp2gem.o yuv.o $(LIBS)
+
+gem2pdp.pd_linux: gem2pdp.o yuv.o
+ rm -f gem2pdp.pd_linux
+ gcc -export_dynamic -shared -o gem2pdp.pd_linux gem2pdp.o yuv.o $(LIBS)
+
+clean:
+ rm -f *.o
+ rm -f gem2pdp.pd_linux
+ rm -f pdp2gem.pd_linux
+
+distro: clean all
+ rm *.o
+ strip --strip-unneeded gem2pdp.pd_linux
+ cd .. && cp -rf gem2pdp /tmp/gem2pdp-$(GEM2PDP_VERSION)
+ cd /tmp && tar vczf $(GEM2PDP_TARBALL) gem2pdp-$(GEM2PDP_VERSION)
+ cp /mnt/c/ydegoyon.free.fr/gem2pdp-$(GEM2PDP_VERSION).tar.gz /mnt/c/Yves
+ rm -rf /tmp/gem2pdp-$(GEM2PDP_VERSION)
+
+.cpp.o:
+ cat $(PDP_DIR)/include/pdp.h | grep -v m_pd > pdp-light.h
+ g++ $(GEM2PDP_CPPFLAGS) $(GEM2PDP_INCLUDE) -o $*.o -c $*.cpp
+
+.c.o:
+ cat $(PDP_DIR)/include/pdp.h | grep -v m_pd > pdp-light.h
+ gcc $(GEM2PDP_CPPFLAGS) $(GEM2PDP_INCLUDE) -o $*.o -c $*.c
+
+