bc.mak
changeset 991 5a12d601f45c
parent 985 20623c76379a
child 999 016d23347044
equal deleted inserted replaced
990:310df0cbfc29 991:5a12d601f45c
    52 LINKER = ilink32
    52 LINKER = ilink32
    53 
    53 
    54 # LFLAGS = -L$(TOP)\libbc;$(BCB)\lib;$(DEBUGLIBPATH) -H:0x400000 -Hc:0x100000 -S:0x40000 -Sc:0x10000 -ap -Tpe -x -Gn -v -Ao:0x10000
    54 # LFLAGS = -L$(TOP)\libbc;$(BCB)\lib;$(DEBUGLIBPATH) -H:0x400000 -Hc:0x100000 -S:0x40000 -Sc:0x10000 -ap -Tpe -x -Gn -v -Ao:0x10000
    55 LFLAGS = -L$(TOP)\libbc;$(BCB)\lib -S:0x40000 -Sc:0x10000 $(LFLAGS_APPTYPE) -Tpe -x -Gn -v -Ao:0x10000
    55 LFLAGS = -L$(TOP)\libbc;$(BCB)\lib -S:0x40000 -Sc:0x10000 $(LFLAGS_APPTYPE) -Tpe -x -Gn -v -Ao:0x10000
    56 
    56 
    57 # PROJECT_CONSOLE = stx.exe
    57 PROJECT_NOCONSOLE = stx.exe
    58 PROJECT_NOCONSOLE = winstx.exe
    58 PROJECT_CONSOLE = stx.com
    59 PROJECT_CONSOLE = winstx.com
       
    60 ALLOBJFILES = main.obj
    59 ALLOBJFILES = main.obj
    61 RESFILES = smalltalkWinRC.res
    60 RESFILES = smalltalkWinRC.res
    62 ALLOBJ = $(CRT_STARTUP) $(ALLOBJFILES) $(OBJS)
    61 ALLOBJ = $(CRT_STARTUP) $(ALLOBJFILES) $(OBJS)
    63 DEFFILE=$(TOP)\rules\bc_exe.def
    62 DEFFILE=$(TOP)\rules\bc_exe.def
    64 
    63 
    94 
    93 
    95 # the executable, all required files and a self-installing-installer-exe
    94 # the executable, all required files and a self-installing-installer-exe
    96 ALL:: prereq exe setup
    95 ALL:: prereq exe setup
    97 
    96 
    98 # old
    97 # old
    99 # exe:  newBuildDate stx $(REQUIRED_SUPPORT_DIRS) winstx
    98 # exe:  newBuildDate stx.com $(REQUIRED_SUPPORT_DIRS) 
   100 # new: allow for both to be made
    99 # new: allow for both to be made
   101 exe:  newBuildDate winstx  $(REQUIRED_SUPPORT_DIRS) winstx
   100 exe:  newBuildDate stx.exe stx.com $(REQUIRED_SUPPORT_DIRS) 
   102 
   101 
   103 # the executable only
   102 # the executable only
   104 # with console
   103 # with console
   105 stx:
   104 stx.com:
   106 	-del main.obj
   105 	-del main.obj
   107 	$(MAKE) -N -f bc.mak \
   106 	$(MAKE) -N -f bc.mak \
   108 		PROJECT=$(PROJECT_CONSOLE) \
   107 		PROJECT=$(PROJECT_CONSOLE) \
   109 		CFLAGS_APPTYPE="$(CFLAGS_CONSOLE)" \
   108 		CFLAGS_APPTYPE="$(CFLAGS_CONSOLE)" \
   110 		LFLAGS_APPTYPE="$(LFLAGS_CONSOLE)" \
   109 		LFLAGS_APPTYPE="$(LFLAGS_CONSOLE)" \
   111 		CRT_STARTUP="$(CRT_STARTUP_CONSOLE)" theExe
   110 		CRT_STARTUP="$(CRT_STARTUP_CONSOLE)" theExe
   112 
   111 
   113 # without console
   112 # without console
   114 winstx:
   113 stx.exe:
   115 	-del main.obj
   114 	-del main.obj
   116 	$(MAKE) -N -f bc.mak \
   115 	$(MAKE) -N -f bc.mak \
   117 		PROJECT=$(PROJECT_NOCONSOLE) \
   116 		PROJECT=$(PROJECT_NOCONSOLE) \
   118 		CFLAGS_APPTYPE="$(CFLAGS_NOCONSOLE) -DWIN_LOGFILE="\\"\"winstx.log\\"\""" \
   117 		CFLAGS_APPTYPE="$(CFLAGS_NOCONSOLE) -DWIN_LOGFILE="\\"\"smalltalk.log\\"\""" \
   119 		LFLAGS_APPTYPE="$(LFLAGS_NOCONSOLE)" \
   118 		LFLAGS_APPTYPE="$(LFLAGS_NOCONSOLE)" \
   120 		CRT_STARTUP="$(CRT_STARTUP_NOCONSOLE)" theExe
   119 		CRT_STARTUP="$(CRT_STARTUP_NOCONSOLE)" theExe
   121 
   120 
   122 # the executable only (internal target; needs some defines)
   121 # the executable only (internal target; needs some defines)
   123 theExe: $(OUTDIR) $(OBJS) $(REQUIRED_FILES) show $(PROJECT) 
   122 theExe: $(OUTDIR) $(OBJS) $(REQUIRED_FILES) show $(PROJECT)