aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/pool/makefile.pd-mingw
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/pool/makefile.pd-mingw')
-rwxr-xr-xexternals/grill/pool/makefile.pd-mingw68
1 files changed, 68 insertions, 0 deletions
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)
+
+
+
+
+
+
+
+
+