diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2004-12-20 05:06:19 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2004-12-20 05:06:19 +0000 |
commit | 6dacabe813f4ccab33669b5dd3e3b5f61be500af (patch) | |
tree | 81abcc117357483b0a0dc0a1a7ba5b118964775f /externals/grill/flext/make-inc.pd-bcc | |
parent | 5370cdab3db6ddfa60fef41ca22756284fa700dd (diff) |
simplified make system
updated make system for BCC
updated make system
updated build system
svn path=/trunk/; revision=2416
Diffstat (limited to 'externals/grill/flext/make-inc.pd-bcc')
-rw-r--r-- | externals/grill/flext/make-inc.pd-bcc | 184 |
1 files changed, 92 insertions, 92 deletions
diff --git a/externals/grill/flext/make-inc.pd-bcc b/externals/grill/flext/make-inc.pd-bcc index 8c555073..3e491c5e 100644 --- a/externals/grill/flext/make-inc.pd-bcc +++ b/externals/grill/flext/make-inc.pd-bcc @@ -1,92 +1,92 @@ -# flext - C++ layer for Max/MSP and pd (pure data) externals
-# Copyright (c) 2001-2004 Thomas Grill (gr@grrrr.org)
-#
-# Makefile for BorlandC++
-#
-# usage: make -f makefile.bcc
-
-!include config-pd-bcc.txt
-
-TARGET=pdwin # appendix to lib name
-
-# includes
-INCPATH=-I$(BCCPATH)\include -I$(PDPATH)\src -I$(SRCDIR)
-
-# compiler definitions and flags
-DEFS=-DFLEXT_SYS=2
-CFLAGS=-tWD
-
-!ifdef DEBUG
-CFLAGS=$(CFLAGS) -v
-DEFS=$(DEFS) -DFLEXT_DEBUG
-!else
-CFLAGS=$(CFLAGS) -6 -O2 -OS -ff
-!endif
-
-!ifdef THREADED
-CFLAGS=$(CFLAGS) -tWM
-DEFS=$(DEFS) -DFLEXT_THREADS
-!endif
-
-
-# the rest can stay untouched
-# ----------------------------------------------
-
-# all the source files from the package
-!include make-files.txt
-
-!ifdef SNDOBJ
-INCPATH=$(INCPATH) -I$(SNDOBJ)
-SRCS=$(SRCS) $(SRCS_SNDOBJ)
-HDRS=$(HDRS) $(HDRS_SNDOBJ)
-!endif
-
-!ifdef STK
-INCPATH=$(INCPATH) -I$(STK)
-SRCS=$(SRCS) $(SRCS_STK)
-HDRS=$(HDRS) $(HDRS_STK)
-!endif
-
-TARGET=$(OUTPATH)\$(NAME)-$(TARGET).lib
-
-#default target
-all: $(OUTPATH) $(TARGET) $(OUTPATH)\pd.lib $(OUTPATH)\pthreadVC.lib
-
-# remove build
-clean:
- -del /s /q $(OUTPATH) > nul
- rmdir $(OUTPATH)
-
-# -----------------------------------------------
-
-OBJS= $(SRCS:.cpp=.obj)
-
-#.PATH.obj=$(OUTPATH)
-
-
-DIR="/"
-
-$(OUTPATH)\pd.lib: $(PDPATH)\bin\pd.dll
- implib -a $< $**
-
-$(OUTPATH)\pthreadVC.lib: $(PDPATH)\bin\pthreadVC.dll
- implib -a $< $**
-
-{$(SRCDIR)}.cpp.obj:
- bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $<
-
-$(OUTPATH):
- @-if not exist $< mkdir $<
-
-$(TARGET): $(OBJS)
- @-del "$<"
- cd $(OUTPATH)
- tlib "..\$<" +$(**: = +)
- cd ..
-!if $d(INSTDIR) && "$(INSTDIR)" != ""
- @-if not exist $(INSTDIR) mkdir $(INSTDIR)
- -copy $< $(INSTDIR) >nul
- -copy $(OUTPATH)\pd.lib $(INSTDIR) >nul
- -copy $(OUTPATH)\pthreadVC.lib $(INSTDIR) >nul
- -copy $(SRCDIR)\*.h $(INSTDIR) >nul
-!endif
+# flext - C++ layer for Max/MSP and pd (pure data) externals +# Copyright (c) 2001-2004 Thomas Grill (gr@grrrr.org) +# +# Makefile for BorlandC++ +# +# usage: make -f makefile.bcc + +!include config-pd-bcc.txt + +TARGET=pdwin # appendix to lib name + +# includes +INCPATH=-I$(BCCPATH)\include -I$(PDPATH)\src -I$(SRCDIR) + +# compiler definitions and flags +DEFS=-DFLEXT_SYS=2 +CFLAGS=-tWD + +!ifdef DEBUG +CFLAGS=$(CFLAGS) -v +DEFS=$(DEFS) -DFLEXT_DEBUG +!else +CFLAGS=$(CFLAGS) -6 -O2 -OS -ff +!endif + +!ifdef THREADED +CFLAGS=$(CFLAGS) -tWM +DEFS=$(DEFS) -DFLEXT_THREADS +!endif + + +# the rest can stay untouched +# ---------------------------------------------- + +# all the source files from the package +!include make-files.txt + +!ifdef SNDOBJ +INCPATH=$(INCPATH) -I$(SNDOBJ) +SRCS=$(SRCS) $(SRCS_SNDOBJ) +HDRS=$(HDRS) $(HDRS_SNDOBJ) +!endif + +!ifdef STK +INCPATH=$(INCPATH) -I$(STK) +SRCS=$(SRCS) $(SRCS_STK) +HDRS=$(HDRS) $(HDRS_STK) +!endif + +TARGET=$(OUTPATH)\$(NAME)-$(TARGET).lib + +#default target +all: $(OUTPATH) $(TARGET) $(OUTPATH)\pd.lib $(OUTPATH)\pthreadVC.lib + +# remove build +clean: + -del /s /q $(OUTPATH) > nul + rmdir $(OUTPATH) + +# ----------------------------------------------- + +OBJS= $(SRCS:.cpp=.obj) + +#.PATH.obj=$(OUTPATH) + + +DIR="/" + +$(OUTPATH)\pd.lib: $(PDPATH)\bin\pd.dll + implib -a $< $** + +$(OUTPATH)\pthreadVC.lib: $(PDPATH)\bin\pthreadVC.dll + implib -a $< $** + +{$(SRCDIR)}.cpp.obj: + bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $< + +$(OUTPATH): + @-if not exist $< mkdir $< + +$(TARGET): $(OBJS) + @-del "$<" + cd $(OUTPATH) + tlib "..\$<" +$(**: = +) + cd .. +!if $d(INSTDIR) && "$(INSTDIR)" != "" + @-if not exist $(INSTDIR) mkdir $(INSTDIR) + -copy $< $(INSTDIR) >nul + -copy $(OUTPATH)\pd.lib $(INSTDIR) >nul + -copy $(OUTPATH)\pthreadVC.lib $(INSTDIR) >nul + -copy $(SRCDIR)\*.h $(INSTDIR) >nul +!endif |