aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/makefile.pd-bcc
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2002-10-22 23:07:10 +0000
committerThomas Grill <xovo@users.sourceforge.net>2002-10-22 23:07:10 +0000
commitd62e56f4df9594f72ce501f5e19c974fd18e7295 (patch)
tree635d4af7a7c2425098e60ca277086ec436b617f7 /externals/grill/flext/makefile.pd-bcc
parentc6f373c281ecb5cd1f4aa7a070e15cc61ab8793c (diff)
This commit was generated by cvs2svn to compensate for changes in r186,
which included commits to RCS files with non-trunk default branches. svn path=/trunk/; revision=187
Diffstat (limited to 'externals/grill/flext/makefile.pd-bcc')
-rw-r--r--externals/grill/flext/makefile.pd-bcc87
1 files changed, 87 insertions, 0 deletions
diff --git a/externals/grill/flext/makefile.pd-bcc b/externals/grill/flext/makefile.pd-bcc
new file mode 100644
index 00000000..f03c6f6b
--- /dev/null
+++ b/externals/grill/flext/makefile.pd-bcc
@@ -0,0 +1,87 @@
+# flext - C++ layer for Max/MSP and pd (pure data) externals
+# Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net)
+#
+# Makefile for BorlandC++
+#
+# usage: make -f makefile.bcc
+#
+# ---------------------------------------------
+#
+# note: no threading support for BorlandC++
+#
+# ---------------------------------------------
+
+!include config-pd-bcc.txt
+
+SOURCE=source
+
+NAME=flext
+TARGET=pdwin # appendix to lib name
+
+# includes
+INCPATH=-I$(BCCPATH)\include -I$(PDPATH)\src -I$(SOURCE)
+
+!ifdef SNDOBJ
+INCPATH=$(INCPATH) -I$(SNDOBJ)
+!endif
+
+# compiler definitions and flags
+DEFS=-DPD -DNT -DNOPTHREAD
+CFLAGS=-6 -O2 -OS -ff -tWD
+
+
+
+# the rest can stay untouched
+# ----------------------------------------------
+
+# all the source files from the package
+!include make-files.txt
+
+!ifdef SNDOBJ
+SRCS=$(SRCS) flsndobj.cpp
+HDRS=$(HDRS) flsndobj.h
+!endif
+
+#default target
+all: $(OUTPATH)\$(NAME)-$(TARGET).lib
+
+# remove build
+clean:
+ -del /s /q $(OUTPATH) > nul
+ rmdir $(OUTPATH)
+
+# -----------------------------------------------
+
+OBJS= $(SRCS:.cpp=.obj)
+
+#.PATH.obj=$(OUTPATH)
+
+{$(SOURCE)}.cpp.obj:
+ bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $<
+
+$(OUTPATH):
+ @if not exist $< mkdir $<
+
+$(OUTPATH)\$(NAME)-$(TARGET).lib:: $(OUTPATH)
+
+$(OUTPATH)\$(NAME)-$(TARGET).lib:: $(OBJS)
+ @-del "$<"
+ cd $(OUTPATH)
+ tlib "..\$<" +$(**: = +)
+ cd ..
+!ifdef INSTALL
+!if "$(INSTALL)" == "yes"
+ @-if not exist $(INSTDIR) mkdir $(INSTDIR)
+ copy $< $(INSTDIR) >nul
+ copy $(SOURCE)\*.h $(INSTDIR) >nul
+!endif
+!endif
+
+
+
+
+
+
+
+
+