diff options
author | carmen rocco <ix9@users.sourceforge.net> | 2004-06-07 18:10:09 +0000 |
---|---|---|
committer | carmen rocco <ix9@users.sourceforge.net> | 2004-06-07 18:10:09 +0000 |
commit | cea1d2e68f9df8b319d26a6418bdd867d1e19b39 (patch) | |
tree | 47ac4d1cefce75b709bfd44244c95e43a9ddb47b /externals/grill/pool/makefile.pd-mingw | |
parent | 3a7075250ec7a3e666859f86d63613f467dbc9be (diff) |
.
svn path=/trunk/; revision=1812
Diffstat (limited to 'externals/grill/pool/makefile.pd-mingw')
-rwxr-xr-x | externals/grill/pool/makefile.pd-mingw | 68 |
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) + + + + + + + + + |