aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/win/bmake-bcc-ext.inc
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-01-03 05:00:31 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-01-03 05:00:31 +0000
commit1611d50c03d8f79560ffc3bc63c268894f411abc (patch)
tree33a751fe81ef62e3bb4104f82132d3bc43efcaa7 /externals/grill/flext/buildsys/win/bmake-bcc-ext.inc
parent7873938d18daf4a94ca77eeb970457f89e679374 (diff)
updated make system
build system for OSX simplified make system reconsidered flext::buffer:Update added object construction and destruction flags updated build system svn path=/trunk/; revision=2447
Diffstat (limited to 'externals/grill/flext/buildsys/win/bmake-bcc-ext.inc')
-rw-r--r--externals/grill/flext/buildsys/win/bmake-bcc-ext.inc54
1 files changed, 54 insertions, 0 deletions
diff --git a/externals/grill/flext/buildsys/win/bmake-bcc-ext.inc b/externals/grill/flext/buildsys/win/bmake-bcc-ext.inc
new file mode 100644
index 00000000..3a61d1be
--- /dev/null
+++ b/externals/grill/flext/buildsys/win/bmake-bcc-ext.inc
@@ -0,0 +1,54 @@
+# build class specific settings
+
+INCPATH=$(INCPATH) -I$(FLEXTINC)
+LIBPATH=$(LIBPATH) -L$(FLEXTLIB)
+LIBS=$(LIBS) $(FLEXTNAME).lib
+
+##############################################
+
+# default target
+_build_: $(TARGET)
+
+$(OUTPATH):
+ if not exist $@ mkdir $@ > nul
+
+$(TARGETPATH): $(OUTPATH)
+ if not exist $@ mkdir $@ > nul
+
+SETUPFUNCTION=$(NAME)_setup
+
+$(TARGETPATH)\$(NAME).def: $(TARGETPATH)
+ @echo EXPORTS $(SETUPFUNCTION) = _$(SETUPFUNCTION) > $@
+# this next line fixes a strange problem with implib - lacking underscore?!
+ @echo IMPORTS _rtext_retext=PD.rtext_retext >> $@
+
+$(TARGET) :: $(TARGETPATH)\$(NAME).def
+
+{$(SRCDIR)}.cpp{}.obj:
+ bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(TARGETPATH) $<
+
+{$(SRCDIR)}.c{}.obj:
+ bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(TARGETPATH) $<
+
+$(TARGET) :: $(TARGETPATH)
+
+$(TARGET) :: $(OBJS)
+ @cd $(TARGETPATH)
+ ilink32 $(LDFLAGS) $(LIBPATH) -L. $(OBJS) ,$(<F),,$(LIBS),$(NAME).def
+ @cd ..\..
+
+##############################################
+# remove build
+
+_clean_:
+ -del /q $(TARGET) > nul
+ -cd $(TARGETPATH)
+ -del /q $(OBJS) > nul
+
+##############################################
+
+$(INSTPATH):
+ if not exist $@ mkdir $@ > nul
+
+_install_: $(INSTPATH)
+ copy $(TARGET) $(INSTPATH) > nul