From cea1d2e68f9df8b319d26a6418bdd867d1e19b39 Mon Sep 17 00:00:00 2001 From: carmen rocco Date: Mon, 7 Jun 2004 18:10:09 +0000 Subject: . svn path=/trunk/; revision=1812 --- externals/grill/pool/config-pd-mingw.txt | 25 ++++++++++++ externals/grill/pool/makefile.pd-mingw | 68 ++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100755 externals/grill/pool/config-pd-mingw.txt create mode 100755 externals/grill/pool/makefile.pd-mingw (limited to 'externals') diff --git a/externals/grill/pool/config-pd-mingw.txt b/externals/grill/pool/config-pd-mingw.txt new file mode 100755 index 00000000..b15de586 --- /dev/null +++ b/externals/grill/pool/config-pd-mingw.txt @@ -0,0 +1,25 @@ +# pool - hierarchical storage object for PD and Max/MSP +# Copyright (c) 2002-2004 Thomas Grill (xovo@gmx.net) +# + +# your c++ compiler (define only if it's different than g++) +# CXX=g++ + +PDPATH=/c/program/pd + +# where do the flext libraries reside? +FLEXTPATH=$(PDPATH)/flext + +# where should flext libraries be built? +TARGDIR=./pd-mingw + +# where should the external be installed? +# (leave blank to omit installation) +INSTPATH=$(PDPATH)/extra + +# user defined compiler flags +UFLAGS= + +# define for shared build +FLEXT_SHARED=1 + diff --git a/externals/grill/pool/makefile.pd-mingw b/externals/grill/pool/makefile.pd-mingw new file mode 100755 index 00000000..ff2d2e55 --- /dev/null +++ b/externals/grill/pool/makefile.pd-mingw @@ -0,0 +1,68 @@ +# pool - hierarchical storage object for PD and Max/MSP +# Copyright (C) 2002-2004 Thomas Grill (xovo@gmx.net) +# +# Makefile for gcc @ windows +# +# usage: +# to build run "make -f makefile.pd-mingw" +# to install (as root), do "make -f makefile.pd-mingw install" +# + +CONFIG=config-pd-mingw.txt + +include $(CONFIG) + +# compiler+linker stuff +INCLUDES=$(PDPATH)/src +FLAGS=-DFLEXT_SYS=2 +CFLAGS=-O2 $(UFLAGS) +LDFLAGS=$(UFLAGS) # needed by icc +LIBS= $(PDPATH)/bin/pd.dll +FLEXTLIB=$(FLEXTPATH)/flext-pdwin.lib + +# --------------------------------------------- +# the rest can stay untouched +# ---------------------------------------------- + +include make-files.txt + + +TARGET=$(TARGDIR)/$(NAME).dll + +# default target +all: $(TARGDIR) $(TARGET) + +$(patsubst %,$(SRCDIR)/%,$(SRCS)): $(patsubst %,$(SRCDIR)/%,$(HDRS)) $(CONFIG) + touch $@ + +$(TARGDIR): + mkdir $(TARGDIR) + +$(TARGDIR)/%.o : $(SRCDIR)/%.cpp + $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTPATH)) $< -o $@ + +$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) + $(CXX) -shared $(LDFLAGS) -o $@ $^ $(LIBS) $(FLEXTLIB) + strip --strip-unneeded $@ + chmod 755 $@ + +$(INSTPATH): + mkdir $(INSTPATH) + +install:: $(INSTPATH) + +install:: $(TARGET) + cp $^ $(INSTPATH) + +.PHONY: clean +clean: + rm -f $(TARGDIR)/*.o $(TARGET) + + + + + + + + + -- cgit v1.2.1