ApplicationDefinition.st
changeset 13952 cf03aa21d8b7
parent 13876 db71f66f14ea
child 13957 6a1e255f9fdd
--- a/ApplicationDefinition.st	Fri Jan 20 12:24:54 2012 +0100
+++ b/ApplicationDefinition.st	Fri Jan 20 12:24:57 2012 +0100
@@ -1534,6 +1534,12 @@
 # Warning: once you modify this file, do not rerun
 # stmkmp or projectDefinition-build again - otherwise, your changes are lost.
 #
+# Historic Note:
+#  this used to contain only rules to make with borland 
+#    (called via bmake, by "make.exe -f bc.mak")
+#  this has changed; it is now also possible to build using microsoft visual c
+#    (called via vcmake, by "make.exe -f bc.mak -DUSEVC")
+#
 
 TOP=%(TOP)       
 INCLUDE_TOP=$(TOP)\..
@@ -1583,13 +1589,21 @@
 LINKER=$(BCB)\BIN\ilink32
 # LFLAGS = -L$(TOP)\libbc;$(BCB)\lib;$(DEBUGLIBPATH) -H:0x400000 -Hc:0x100000 -S:0x40000 -Sc:0x10000 -ap -Tpe -x -Gn -v -Ao:0x10000
 LFLAGS = -L$(TOP)\libbc;$(BCB)\lib -S:0x40000 -Sc:0x10000 $(LFLAGS_APPTYPE) -Tpe -x -Gn -v -Ao:0x10000
-!!endif
-
-!!ifdef USEVC
+OBJDIR=objbc
+LIBDIR=libbc
+USE_ARG=-DUSEBC
+!!else
+!! ifdef USEVC
 LINKER = $(LINK32)
 CRT_STARTUP=
 RT_LIB =
 LFLAGS = /nologo /DEBUG /DYNAMICBASE:NO /MACHINE:X86 /ERRORREPORT:PROMPT
+OBJDIR=objvc
+LIBDIR=libvc
+USE_ARG=-DUSEVC
+!! else
+error error
+!! endif
 !!endif
 
 PROJECT_NOCONSOLE = %(NOCONSOLE_APPLICATION)
@@ -1599,18 +1613,14 @@
 ALLOBJ = $(CRT_STARTUP) $(ALLOBJFILES) $(OBJS)
 DEFFILE=$(TOP)\rules\bc_exe.def
 
+LIBFILES=$(TOP)\$(LIBDIR)\librun.lib
+
 !!ifdef USEBC
-LIBFILES=$(TOP)\libbc\librun.lib
 ALLLIB=$(LIBFILES) import32.lib $(RT_LIB)
-USE_ARG=-DUSEBC
-!!else
-!! ifdef USEVC
-LIBFILES=$(TOP)\libvc\librun.lib
+!!endif
+
+!!ifdef USEVC
 ALLLIB=$(LIBFILES) kernel32.lib
-USE_ARG=-DUSEVC
-!! else
-error error
-!! endif
 !!endif
 
 REQUIRED_LIBS=librun.dll %(REQUIRED_LIBS)
@@ -1733,8 +1743,8 @@
 buildDate.h: $(TOP)\librun\genDate.exe
         $(TOP)\librun\genDate.exe
 
-librun.dll: $(TOP)\librun\librun.dll
-        copy $(TOP)\librun\librun.dll librun.dll
+librun.dll: $(TOP)\librun\$(OBJDIR)\librun.dll
+        copy $(TOP)\librun\$(OBJDIR)\librun.dll librun.dll
 
 cs3245.dll: $(TOP)\support\win32\borland\cs3245.dll
         copy $(TOP)\support\win32\borland\cs3245.dll cs3245.dll
@@ -1781,7 +1791,7 @@
 # ENDMAKEDEPEND --- do not remove this line
 '.
 
-    "Modified: / 28-09-2011 / 16:37:33 / cg"
+    "Modified: / 20-01-2012 / 12:22:52 / cg"
 !
 
 bc_dot_mak_app_source_rules
@@ -2829,11 +2839,11 @@
 !ApplicationDefinition class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/ApplicationDefinition.st,v 1.188 2011-12-23 14:09:06 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ApplicationDefinition.st,v 1.189 2012-01-20 11:24:57 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/ApplicationDefinition.st,v 1.188 2011-12-23 14:09:06 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ApplicationDefinition.st,v 1.189 2012-01-20 11:24:57 cg Exp $'
 !
 
 version_SVN