diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2004-12-18 05:04:10 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2004-12-18 05:04:10 +0000 |
commit | 2df5c0c5b5fc38fbc2094efe32e86e8516622d23 (patch) | |
tree | fc4688d51e159202e520f127572a3bc6ecb787ce | |
parent | e9f8fa66c202381780bccc5e5082e8c2487a9433 (diff) |
updated make system for BCC
fixes for Max/MSP
use flext build system
using flext build system
updated build system
additions for Max/MSP build
svn path=/trunk/; revision=2407
30 files changed, 52 insertions, 461 deletions
diff --git a/externals/grill/pool/build-lnx-pd-gcc.sh b/externals/grill/pool/build-lnx-pd-gcc.sh new file mode 100644 index 00000000..e76f5ed1 --- /dev/null +++ b/externals/grill/pool/build-lnx-pd-gcc.sh @@ -0,0 +1 @@ +make -f ../flext/build/gnumake.mak PLATFORM=lnx RTSYS=pd COMPILER=gcc $* diff --git a/externals/grill/pool/build-mac-pd-gcc.sh b/externals/grill/pool/build-mac-pd-gcc.sh new file mode 100644 index 00000000..a88a3dbb --- /dev/null +++ b/externals/grill/pool/build-mac-pd-gcc.sh @@ -0,0 +1 @@ +make -f ../flext/build/gnumake.mak PLATFORM=mac RTSYS=pd COMPILER=gcc $* diff --git a/externals/grill/pool/build-pd-bcc.bat b/externals/grill/pool/build-pd-bcc.bat deleted file mode 100644 index 3dd21329..00000000 --- a/externals/grill/pool/build-pd-bcc.bat +++ /dev/null @@ -1,3 +0,0 @@ -@echo --- Building with BorlandC++ --- - -make -f makefile.pd-bcc diff --git a/externals/grill/pool/build-pd-darwin.sh b/externals/grill/pool/build-pd-darwin.sh deleted file mode 100644 index 8f21ebcb..00000000 --- a/externals/grill/pool/build-pd-darwin.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -. config-pd-darwin.txt - -make -f makefile.pd-darwin && -{ - if [ "${INSTPATH}" != "" ]; then - echo Now install as root - sudo make -f makefile.pd-darwin install - fi -} diff --git a/externals/grill/pool/build-pd-linux.sh b/externals/grill/pool/build-pd-linux.sh deleted file mode 100644 index 413650f7..00000000 --- a/externals/grill/pool/build-pd-linux.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -. config-pd-linux.txt - -make -f makefile.pd-linux && -{ - if [ $INSTPATH != "" ]; then - echo Now install as root - su -c "make -f makefile.pd-linux install" - fi -} diff --git a/externals/grill/pool/build-pd-mingw.bat b/externals/grill/pool/build-pd-mingw.bat deleted file mode 100644 index 1a2f503b..00000000 --- a/externals/grill/pool/build-pd-mingw.bat +++ /dev/null @@ -1,4 +0,0 @@ -@echo --- Building with MinGW --- - -mingw32-make -f makefile.pd-mingw clean -mingw32-make -f makefile.pd-mingw diff --git a/externals/grill/pool/build-win-max-msvc.bat b/externals/grill/pool/build-win-max-msvc.bat index d99ba534..c43e576c 100644 --- a/externals/grill/pool/build-win-max-msvc.bat +++ b/externals/grill/pool/build-win-max-msvc.bat @@ -1,4 +1,3 @@ @echo --- Building with MS Visual C++ --- -nmake -f ..\flext\build\make-win-max-msvc.txt clean -nmake -f ..\flext\build\make-win-max-msvc.txt +nmake -f ..\flext\build\nmake.mak PLATFORM=win RTSYS=max COMPILER=msvc %1 %2 %3 %4 %5 %6 %7 %8 %9 diff --git a/externals/grill/pool/build-win-pd-bcc.bat b/externals/grill/pool/build-win-pd-bcc.bat new file mode 100644 index 00000000..437c3501 --- /dev/null +++ b/externals/grill/pool/build-win-pd-bcc.bat @@ -0,0 +1 @@ +make -f ..\flext\build\bmake.mak PLATFORM=win RTSYS=pd COMPILER=bcc %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/externals/grill/pool/build-win-pd-mingw.bat b/externals/grill/pool/build-win-pd-mingw.bat new file mode 100644 index 00000000..492c157c --- /dev/null +++ b/externals/grill/pool/build-win-pd-mingw.bat @@ -0,0 +1 @@ +mingw32-make -f ..\flext\build\gnumake.mak PLATFORM=win RTSYS=pd COMPILER=mingw %1 %2 %3 %4 %5 %6 %7 %8 %9 diff --git a/externals/grill/pool/build-win-pd-msvc.bat b/externals/grill/pool/build-win-pd-msvc.bat index 942ee174..5a3958b9 100644 --- a/externals/grill/pool/build-win-pd-msvc.bat +++ b/externals/grill/pool/build-win-pd-msvc.bat @@ -1,4 +1,3 @@ @echo --- Building with MS Visual C++ --- -nmake -f ..\flext\build\make-win-pd-msvc.txt clean -nmake -f ..\flext\build\make-win-pd-msvc.txt +nmake -f ..\flext\build\nmake.mak PLATFORM=win RTSYS=pd COMPILER=msvc %1 %2 %3 %4 %5 %6 %7 %8 %9 diff --git a/externals/grill/pool/config-lnx-gcc.txt b/externals/grill/pool/config-lnx-gcc.txt new file mode 100644 index 00000000..93669034 --- /dev/null +++ b/externals/grill/pool/config-lnx-gcc.txt @@ -0,0 +1,6 @@ +# Your settings are defined in the files
+# ../flext/build/config-mac-pd-gcc.txt
+# and
+# ../flext/build/config-mac-max-gcc.txt
+#
+# You can override them here.
diff --git a/externals/grill/pool/config-mac-gcc.txt b/externals/grill/pool/config-mac-gcc.txt new file mode 100644 index 00000000..93669034 --- /dev/null +++ b/externals/grill/pool/config-mac-gcc.txt @@ -0,0 +1,6 @@ +# Your settings are defined in the files
+# ../flext/build/config-mac-pd-gcc.txt
+# and
+# ../flext/build/config-mac-max-gcc.txt
+#
+# You can override them here.
diff --git a/externals/grill/pool/config-pd-bcc.txt b/externals/grill/pool/config-pd-bcc.txt deleted file mode 100644 index 0aabecbb..00000000 --- a/externals/grill/pool/config-pd-bcc.txt +++ /dev/null @@ -1,23 +0,0 @@ -# pool - hierarchical storage object for PD and Max/MSP -# Copyright (c) 2002-2004 Thomas Grill (xovo@gmx.net) -# - -# where is PD? -PDPATH=c:\programme\audio\pd - -# where do the flext libraries reside? -FLEXTPATH=$(PDPATH)\flext - -# where is BorlandC++? -BCCPATH=c:\programme\prog\bcc55 - -# where should the external(s) be built? -OUTPATH=.\pd-bcc - -# where should the external be installed? -# (leave blank to omit installation) -INSTPATH=$(PDPATH)\extra - - -# additional compiler flags -UFLAGS=-6 -O2 -OS -ff diff --git a/externals/grill/pool/config-pd-darwin.txt b/externals/grill/pool/config-pd-darwin.txt deleted file mode 100644 index b0269ea3..00000000 --- a/externals/grill/pool/config-pd-darwin.txt +++ /dev/null @@ -1,33 +0,0 @@ -# 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++ - -# where are the PD header files? -# leave it blank if it is a system directory (like /usr/local/include), -# since gcc 3.2 complains about it -# PDPATH=/usr/local/lib/pd/src - -# where is the PD executable? -PD=/usr/local/bin/pd - -# where do the flext libraries reside? -FLEXTPATH=/usr/local/lib/pd/flext - -# where should flext libraries be built? -TARGDIR=./pd-darwin - -# where should pool be installed? -# (leave blank to omit installation) -INSTPATH=/usr/local/lib/pd/extra - -# additional compiler flags -# (check if they match your system!) -UFLAGS=-malign-power -maltivec -faltivec - -# use shared flext library -FLEXT_SHARED=1 - - diff --git a/externals/grill/pool/config-pd-linux.txt b/externals/grill/pool/config-pd-linux.txt deleted file mode 100644 index bd617602..00000000 --- a/externals/grill/pool/config-pd-linux.txt +++ /dev/null @@ -1,28 +0,0 @@ -# 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++ - -# where are the PD header files? -# leave it blank if it is a system directory (like /usr/local/include), -# since gcc >= 3.2 complains about it -PDPATH= - -# where do the flext libraries reside? -FLEXTPATH=/usr/local/lib/pd/flext - -# where should flext libraries be built? -TARGDIR=./pd-linux - -# where should the external be installed? -# (leave blank to omit installation) -INSTPATH=/usr/local/lib/pd/extra - -# user defined compiler flags -UFLAGS= - -# define for shared build -# FLEXT_SHARED=1 - diff --git a/externals/grill/pool/config-pd-mingw.txt b/externals/grill/pool/config-pd-mingw.txt deleted file mode 100755 index 6f7a519d..00000000 --- a/externals/grill/pool/config-pd-mingw.txt +++ /dev/null @@ -1,25 +0,0 @@ -# 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++ - -# where is PD? -PDPATH=c:\programme\audio\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/config-win-bcc.txt b/externals/grill/pool/config-win-bcc.txt new file mode 100644 index 00000000..e407963c --- /dev/null +++ b/externals/grill/pool/config-win-bcc.txt @@ -0,0 +1,6 @@ +# Your settings are defined in the files
+# ..\flext\build\config-win-pd-bcc.txt
+# and
+# ..\flext\build\config-win-max-bcc.txt
+#
+# You can override them here.
diff --git a/externals/grill/pool/config-win-max-msvc.txt b/externals/grill/pool/config-win-max-msvc.txt deleted file mode 100644 index a59d7704..00000000 --- a/externals/grill/pool/config-win-max-msvc.txt +++ /dev/null @@ -1,7 +0,0 @@ -# pool - hierarchical storage object for PD and Max/MSP -# Copyright (c) 2002-2004 Thomas Grill (gr@grrrr.org) -# -# Your settings are defined in the file -# ..\flext\build\config-win-max-msvc.txt -# -# You can override them here. diff --git a/externals/grill/pool/config-win-mingw.txt b/externals/grill/pool/config-win-mingw.txt new file mode 100644 index 00000000..4c5d0b2b --- /dev/null +++ b/externals/grill/pool/config-win-mingw.txt @@ -0,0 +1,6 @@ +# Your settings are defined in the files
+# ..\flext\build\config-win-pd-mingw.txt
+# and
+# ..\flext\build\config-win-max-mingw.txt
+#
+# You can override them here.
diff --git a/externals/grill/pool/config-win-msvc.txt b/externals/grill/pool/config-win-msvc.txt new file mode 100644 index 00000000..effe3b0f --- /dev/null +++ b/externals/grill/pool/config-win-msvc.txt @@ -0,0 +1,6 @@ +# Your settings are defined in the files +# ..\flext\build\config-win-pd-msvc.txt +# and +# ..\flext\build\config-win-max-msvc.txt +# +# You can override them here. diff --git a/externals/grill/pool/config-win-pd-msvc.txt b/externals/grill/pool/config-win-pd-msvc.txt deleted file mode 100644 index 4f041743..00000000 --- a/externals/grill/pool/config-win-pd-msvc.txt +++ /dev/null @@ -1,7 +0,0 @@ -# pool - hierarchical storage object for PD and Max/MSP -# Copyright (c) 2002-2004 Thomas Grill (gr@grrrr.org) -# -# Your settings are defined in the file -# ..\flext\build\config-win-pd-msvc.txt -# -# You can override them here. diff --git a/externals/grill/pool/makefile-lnx-gcc.txt b/externals/grill/pool/makefile-lnx-gcc.txt new file mode 100644 index 00000000..fed16156 --- /dev/null +++ b/externals/grill/pool/makefile-lnx-gcc.txt @@ -0,0 +1,3 @@ +# usage:
+# to build run "sh build-mac-max-gcc.sh" or "sh build-mac-pd-gcc.sh"
+#
diff --git a/externals/grill/pool/makefile-mac-gcc.txt b/externals/grill/pool/makefile-mac-gcc.txt new file mode 100644 index 00000000..fed16156 --- /dev/null +++ b/externals/grill/pool/makefile-mac-gcc.txt @@ -0,0 +1,3 @@ +# usage:
+# to build run "sh build-mac-max-gcc.sh" or "sh build-mac-pd-gcc.sh"
+#
diff --git a/externals/grill/pool/makefile-win-bcc.txt b/externals/grill/pool/makefile-win-bcc.txt new file mode 100644 index 00000000..8f9cda9c --- /dev/null +++ b/externals/grill/pool/makefile-win-bcc.txt @@ -0,0 +1,5 @@ +# Makefile for BCC
+#
+# usage:
+# to build run "build-win-max-bcc.bat" or "build-win-pd-bcc.bat"
+#
diff --git a/externals/grill/pool/makefile-win-mingw.txt b/externals/grill/pool/makefile-win-mingw.txt new file mode 100644 index 00000000..452c36ec --- /dev/null +++ b/externals/grill/pool/makefile-win-mingw.txt @@ -0,0 +1,5 @@ +# Makefile for MSVC++ 6 and .NET
+#
+# usage:
+# to build run "build-win-max-mingw.bat" or "build-win-pd-mingw.bat"
+#
diff --git a/externals/grill/pool/makefile-win-msvc.txt b/externals/grill/pool/makefile-win-msvc.txt index d4398a9c..0a613fd7 100644 --- a/externals/grill/pool/makefile-win-msvc.txt +++ b/externals/grill/pool/makefile-win-msvc.txt @@ -1,6 +1,3 @@ -# xsample - extended sample objects for Max/MSP and pd (pure data)
-# Copyright (c) 2001-2004 Thomas Grill (gr@grrrr.org)
-#
# Makefile for MSVC++ 6 and .NET
#
# usage:
diff --git a/externals/grill/pool/makefile.pd-bcc b/externals/grill/pool/makefile.pd-bcc deleted file mode 100644 index e12abde0..00000000 --- a/externals/grill/pool/makefile.pd-bcc +++ /dev/null @@ -1,77 +0,0 @@ -# pool - hierarchical storage object for PD and Max/MSP -# Copyright (C) 2002-2004 Thomas Grill -# -# Makefile for BorlandC++ -# -# usage: make -f makefile.pd-bcc -# -# --------------------------------------------- - -!include config-pd-bcc.txt - -# all the source files from the package -!include make-files.txt - -SETUPFUNCTION=$(NAME)_setup - -# flext stuff -TARGET=pdwin - -# includes, libs -INCPATH=-I$(BCCPATH)\include -I$(PDPATH)\src -I$(FLEXTPATH) -LIBPATH=-L$(BCCPATH)\lib -L$(PDPATH)\lib -LIBS=cw32.lib import32.lib C0D32.OBJ - -# compiler definitions and flags -DEFS=-DFLEXT_SYS=2 -CFLAGS=-tWD $(UFLAGS) - - -# the rest can stay untouched -# ---------------------------------------------- - -# default target -all: $(OUTPATH)\$(NAME).dll - -# remove build -clean: - -del /s /q $(OUTPATH) > nul - rmdir $(OUTPATH) - - -install: - cp $(OUTPATH)\$(NAME).dll $(INSTPATH) - -# ---------------------------------------------- - -OBJS= $(SRCS:.cpp=.obj) - -#.PATH.OBJ=$(OUTPATH) - -#$(SRCS): $(HDRS) -# -touch $< - -{$(SRCDIR)}.cpp.obj: - bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $< - -$(OUTPATH): - -@if not exist $< mkdir $< - -$(OUTPATH)\pd.lib: $(PDPATH)\bin\pd.dll - implib -a $< $** - -$(OUTPATH)\$(NAME).def: - @echo EXPORTS $(SETUPFUNCTION) = _$(SETUPFUNCTION) > $< -# this next line fixes a strange problem with implib - lacking underscore?! - @echo IMPORTS _rtext_retext=PD.rtext_retext >> $< - -$(OUTPATH)\$(NAME).dll :: $(OUTPATH) $(OUTPATH)\$(NAME).def $(OUTPATH)\pd.lib - -$(OUTPATH)\$(NAME).dll :: $(OBJS) - cd $(OUTPATH) - ilink32 -C -Tpd $(LIBPATH) $** ,..\$<,,$(LIBS) pd.lib $(FLEXTPATH)\flext-$(TARGET).lib ,$(NAME).def - cd .. -!if $d(INSTPATH) && "$(INSTPATH)" != "" - @-if not exist $(INSTPATH) mkdir $(INSTPATH) - copy $< $(INSTPATH) >nul -!endif diff --git a/externals/grill/pool/makefile.pd-darwin b/externals/grill/pool/makefile.pd-darwin deleted file mode 100644 index 83424e16..00000000 --- a/externals/grill/pool/makefile.pd-darwin +++ /dev/null @@ -1,78 +0,0 @@ -# pool - hierarchical storage object for PD and Max/MSP -# Copyright (C) 2002-2004 Thomas Grill (xovo@gmx.net) -# -# Makefile for gcc @ darwin (OSX) -# -# usage: -# to build run "make -f makefile.pd-darwin" -# to install (as root), do "make -f makefile.pd-darwin install" -# - -CONFIG=config-pd-darwin.txt - -include $(CONFIG) - -# compiler+linker stuff -INCLUDES=$(PDPATH) -LIBPATH= -FLAGS=-DFLEXT_SYS=2 -CFLAGS=-O2 ${UFLAGS} -Wno-unused -Wno-parentheses -Wno-switch -Wstrict-prototypes -LIBS=m -FRAMEWORKS=Carbon -LDFLAGS+=-Wl,-x -Wl,-S -bundle -bundle_loader $(PD) - -ifdef FLEXT_SHARED -CFLAGS+=-DFLEXT_SHARED -LDFLAGS+=-L$(FLEXTPATH) -FLEXTLIB=-lflext - -else - -FLEXTLIB=$(FLEXTPATH)/libflext.a - -endif - - -# --------------------------------------------- -# the rest can stay untouched -# ---------------------------------------------- - -include make-files.txt - - -TARGET=$(TARGDIR)/$(NAME).pd_darwin - -# 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) $(LDFLAGS) $^ $(patsubst %,-framework %,$(FRAMEWORKS)) $(patsubst %,-L%,$(LIBPATH)) $(patsubst %,-l%,$(LIBS)) $(FLEXTLIB) -o $@ - chmod 755 $@ - -$(INSTPATH): - -mkdir $(INSTPATH) - -install:: $(INSTPATH) - -install:: $(TARGET) - cp $^ $(INSTPATH) - chmod 755 $(patsubst %,$(INSTPATH)/%,$(notdir $^)) - chown root $(patsubst %,$(INSTPATH)/%,$(notdir $^)) - -.PHONY: clean -clean: - rm -f $(TARGDIR)/*.o $(TARGET) - - - - - diff --git a/externals/grill/pool/makefile.pd-linux b/externals/grill/pool/makefile.pd-linux deleted file mode 100644 index 1d5654a6..00000000 --- a/externals/grill/pool/makefile.pd-linux +++ /dev/null @@ -1,88 +0,0 @@ -# pool - hierarchical storage object for PD and Max/MSP -# Copyright (C) 2002-2004 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 - -include $(CONFIG) - -# compiler+linker stuff -INCLUDES=$(PDPATH) -FLAGS=-DFLEXT_SYS=2 -CFLAGS=-O2 $(UFLAGS) -LDFLAGS=$(UFLAGS) # needed by icc -LIBS= - -ifdef FLEXT_SHARED -CFLAGS+=-shared -DFLEXT_SHARED -LDFLAGS+=-L $(FLEXTPATH) - -ifeq ($(CXX),icc) -LDFLAGS+=-i_dynamic -else -LDFLAGS+=-Wl,-Bdynamic -endif - -FLEXTLIB=-lflext - -else - -FLEXTLIB=$(FLEXTPATH)/libflext.a - -endif - - -# --------------------------------------------- -# the rest can stay untouched -# ---------------------------------------------- - -include make-files.txt - - -TARGET=$(TARGDIR)/$(NAME).pd_linux - -# 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 $@ $^ $(FLEXTLIB) $(patsubst %,-l%,$(LIBS)) - strip --strip-unneeded $@ - chmod 755 $@ - -$(INSTPATH): - mkdir $(INSTPATH) - -install:: $(INSTPATH) - -install:: $(TARGET) - cp $^ $(INSTPATH) - chown root.root $(patsubst %,$(INSTPATH)/%,$(notdir $^)) - chmod 755 $(patsubst %,$(INSTPATH)/%,$(notdir $^)) - -.PHONY: clean -clean: - rm -f $(TARGDIR)/*.o $(TARGET) - - - - - - - - - diff --git a/externals/grill/pool/makefile.pd-mingw b/externals/grill/pool/makefile.pd-mingw deleted file mode 100755 index c8d3a784..00000000 --- a/externals/grill/pool/makefile.pd-mingw +++ /dev/null @@ -1,59 +0,0 @@ -# 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) |