diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2002-12-03 22:09:13 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2002-12-03 22:09:13 +0000 |
commit | 0af60cd02d714f0ca13bfff9f3e12c84357ba176 (patch) | |
tree | 3c76ebb513a2f5e0a17da32e52ad5e3965c24b3b /externals/grill/prepend/makefile.bcc | |
parent | d25c9bbd00935f2410228710ce87438e2260d91e (diff) |
"version 0.0.2"
svn path=/trunk/; revision=271
Diffstat (limited to 'externals/grill/prepend/makefile.bcc')
-rw-r--r-- | externals/grill/prepend/makefile.bcc | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/externals/grill/prepend/makefile.bcc b/externals/grill/prepend/makefile.bcc new file mode 100644 index 00000000..6a6446ed --- /dev/null +++ b/externals/grill/prepend/makefile.bcc @@ -0,0 +1,75 @@ +# prepend - just like in Max/MSP +# Copyright (c) 2002 Thomas Grill (xovo@gmx.net) +# +# Makefile for BorlandC++ +# +# usage: make -f makefile.bcc +# +# --------------------------------------------- + +NAME=prepend +SETUPFUNCTION=prepend_setup + +# where to put the build +OUTPATH=.\bcc + +# flext stuff +FLEXTPATH=..\flext ### EDIT! ### +TARGET=pdwin + +# paths +BCCPATH=c:\programme\prog\bcc55 ### EDIT! ### +PDPATH=c:\programme\audio\pd ### EDIT! ### + +# includes, libs +INCPATH=-I$(BCCPATH)\include -I$(PDPATH)\src -I$(FLEXTPATH) +LIBPATH=-L$(BCCPATH)\lib -L$(PDPATH)\lib -L$(FLEXTPATH) +LIBS=cw32.lib import32.lib C0D32.OBJ + +# compiler definitions and flags +DEFS=-DPD -DNT +CFLAGS=-6 -O2 -OS -ff -tWD + + +# the rest can stay untouched +# ---------------------------------------------- + +# all the source files from the package +SRCS= main.cpp +HDRS= + +#default target +all: $(OUTPATH)\$(NAME).dll + +# remove build +clean: + -del /s /q $(OUTPATH) > nul + rmdir $(OUTPATH) + +# ----------------------------------------------- + +OBJS= $(SRCS:.cpp=.obj) + +$(SRCS): $(HDRS) + -touch $< + +.PATH.OBJ=$(OUTPATH) + +.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) > $< + +$(OUTPATH)\$(NAME).dll :: $(OUTPATH) $(OUTPATH)\$(NAME).def $(OUTPATH)\pd.lib + +$(OUTPATH)\$(NAME).dll :: $(OBJS) + ilink32 -C -Tpd $(LIBPATH) $** ,$<,,$(LIBS) $(OUTPATH)\pd.lib $(FLEXTPATH)\bcc\flext-$(TARGET).lib ,$(OUTPATH)\$(NAME).def + + |