aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/pool
diff options
context:
space:
mode:
authorcarmen rocco <ix9@users.sourceforge.net>2004-06-07 18:10:09 +0000
committercarmen rocco <ix9@users.sourceforge.net>2004-06-07 18:10:09 +0000
commitcea1d2e68f9df8b319d26a6418bdd867d1e19b39 (patch)
tree47ac4d1cefce75b709bfd44244c95e43a9ddb47b /externals/grill/pool
parent3a7075250ec7a3e666859f86d63613f467dbc9be (diff)
.
svn path=/trunk/; revision=1812
Diffstat (limited to 'externals/grill/pool')
-rwxr-xr-xexternals/grill/pool/config-pd-mingw.txt25
-rwxr-xr-xexternals/grill/pool/makefile.pd-mingw68
2 files changed, 93 insertions, 0 deletions
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)
+
+
+
+
+
+
+
+
+