From cfe725ef4bf02a976a311706aa3c59e3818d3285 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 1 Sep 2003 18:40:43 +0000 Subject: added sources from gem2pdp-0.4 for Linux svn path=/trunk/externals/gem2pdp/; revision=923 --- Makefile.in | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Makefile.in (limited to 'Makefile.in') 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 + + -- cgit v1.2.1