diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2004-12-18 05:04:43 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2004-12-18 05:04:43 +0000 |
commit | 8173cd6fbbe611dcaf5c643f3d3fd4873dde0c19 (patch) | |
tree | ec80a284f0cdcf5a3cc7790eb5685880f344530e /externals/grill/py/makefile.pd-linux | |
parent | 2df5c0c5b5fc38fbc2094efe32e86e8516622d23 (diff) |
use flext build system
using flext build system
updated build system
svn path=/trunk/; revision=2408
Diffstat (limited to 'externals/grill/py/makefile.pd-linux')
-rw-r--r-- | externals/grill/py/makefile.pd-linux | 111 |
1 files changed, 0 insertions, 111 deletions
diff --git a/externals/grill/py/makefile.pd-linux b/externals/grill/py/makefile.pd-linux deleted file mode 100644 index 2b725264..00000000 --- a/externals/grill/py/makefile.pd-linux +++ /dev/null @@ -1,111 +0,0 @@ -# py/pyext - python script object for PD and Max/MSP -# Copyright (C) 2002 Thomas Grill (xovo@gmx.net) -# -# Makefile for gcc @ linux -# -# usage: -# to build run "make -f makefile.pd-linux" -# to install (as root), do "make -f makefile.pd-linux install" -# - -CONFIG=config-pd-linux.txt -MAKEFILE=makefile.pd-linux - -include $(CONFIG) - - -# compiler+linker stuff -INCLUDES=$(PDPATH) $(PYTHONINCLUDE) -LIBPATH=$(PYTHONLIB) -FLAGS=-DFLEXT_SYS=2 -CFLAGS=-pthread $(UFLAGS) -LDFLAGS=$(UFLAGS) # needed by icc -LIBS=util python$(PYTHONVER) - -ifdef DEBUG -CFLAGS+=-g -DFLEXT_DEBUG -else -CFLAGS+=-O2 -endif - -ifdef FLEXT_SHARED -CFLAGS+=-shared -FLAGS+=-DFLEXT_SHARED -LIBPATH+=$(FLEXTPATH) - -ifdef DEBUG -LIBFLEXT=-lflext_d -else -LIBFLEXT=-lflext -endif - -ifeq ($(CXX),icc) -LDFLAGS+=-i_dynamic -else -LDFLAGS+=-Wl,-Bdynamic -endif - -else - -FLAGS+=-DFLEXT_THREADS -ifdef DEBUG -LIBFLEXT=$(FLEXTPATH)/libflext_td.a -else -LIBFLEXT=$(FLEXTPATH)/libflext_t.a -endif - -endif - - -# --------------------------------------------- -# the rest can stay untouched -# ---------------------------------------------- - -NAME=py - -# all the source files from the package -include make-files.txt - -TARGET=$(TARGDIR)/$(NAME).pd_linux - -# default target -all: $(TARGDIR) $(TARGET) - -$(patsubst %,$(SRCDIR)/%,$(SRCS)): $(patsubst %,$(SRCDIR)/%,$(HDRS)) $(MAKEFILE) $(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 $@ $^ $(patsubst %,-L%,$(LIBPATH)) $(LIBFLEXT) $(patsubst %,-l%,$(LIBS)) -ifndef DEBUG - strip --strip-unneeded $@ -endif - chmod 755 $@ - -$(INSTPATH): - -mkdir $(INSTDIR) - -install:: $(INSTDIR) - -install:: $(TARGET) - cp $^ $(INSTPATH) - chown root.root $(patsubst %,$(INSTPATH)/%,$(notdir $^)) - chmod 755 $(patsubst %,$(INSTPATH)/%,$(notdir $^)) - -.PHONY: clean -clean: - rm -f $(TARGDIR)/*.o $(TARGET) - - - - - - - - - |