bc.mak
changeset 0 da028ec9cc07
equal deleted inserted replaced
-1:000000000000 0:da028ec9cc07
       
     1 # $Header$
       
     2 #
       
     3 # DO NOT EDIT 
       
     4 # automagically generated from the projectDefinition: jv_statascripteditor.
       
     5 #
       
     6 # Warning: once you modify this file, do not rerun
       
     7 # stmkmp or projectDefinition-build again - otherwise, your changes are lost.
       
     8 #
       
     9 # Historic Note:
       
    10 #  this used to contain only rules to make with borland 
       
    11 #    (called via bmake, by "make.exe -f bc.mak")
       
    12 #  this has changed; it is now also possible to build using microsoft visual c
       
    13 #    (called via vcmake, by "make.exe -f bc.mak -DUSEVC")
       
    14 #
       
    15 
       
    16 TOP=..\..\stx       
       
    17 INCLUDE_TOP=$(TOP)\..
       
    18 
       
    19 # An old file, used as a dummy target for FORCE if we do not want
       
    20 #   re-make libraries. Windows make does not work if we redefine FORCE=   (empty string)
       
    21 # OLD_FILE=bmake.bat
       
    22 OLD_FILE="c:\windows\win.ini"
       
    23 
       
    24 #dummy target to force a build
       
    25 !ifndef FORCE
       
    26 FORCE=$(OLD_FILE)
       
    27 !endif
       
    28 
       
    29 CFLAGS_LOCAL=$(CFLAGS_APPTYPE) \
       
    30  -DSTARTUP_CLASS="\"StataScriptEditorMain\"" \
       
    31  -DSTARTUP_SELECTOR="\"start\"" \
       
    32  -DUSE_MODULE_TABLE
       
    33 
       
    34 #
       
    35 
       
    36 !INCLUDE $(TOP)\rules\stdHeader_bc
       
    37 !INCLUDE Make.spec
       
    38 
       
    39 OBJS= $(COMMON_OBJS) $(WIN32_OBJS)
       
    40 
       
    41 
       
    42 
       
    43 #
       
    44 APPNAME=libjv_statascripteditor
       
    45 LIBNAME=dummy
       
    46 MODULE_PATH=statascripteditor
       
    47 STCOPT="+optinline"
       
    48 LOCALINCLUDES= -I$(INCLUDE_TOP)\stx\libbasic -I$(INCLUDE_TOP)\stx\libbasic2 -I$(INCLUDE_TOP)\stx\libtool -I$(INCLUDE_TOP)\stx\libview2 -I$(INCLUDE_TOP)\stx\libwidg
       
    49 LOCALDEFINES=
       
    50 GLOBALDEFINES=
       
    51 
       
    52 STCLOCALOPT='-package=$(PACKAGE)' $(LOCALDEFINES) $(LOCALINCLUDES)  $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) $(COMMONSYMFLAG) -varPrefix=$(LIBNAME)
       
    53 
       
    54 LFLAGS=$(APP_LFLAGS)
       
    55 
       
    56 PROJECT_NOCONSOLE= statascripteditor.exe
       
    57 PROJECT_CONSOLE= statascripteditor.com
       
    58 ALLOBJFILES= main.$(O)
       
    59 !ifdef USETCC
       
    60 RESFILES=
       
    61 !else
       
    62 RESFILES= statascripteditorWinRC.$(RES)
       
    63 !endif
       
    64 
       
    65 ALLOBJ= $(ALLOBJFILES) $(OBJS)
       
    66 DEFFILE=$(TOP)\rules\bc_exe.def
       
    67 
       
    68 LIBFILES=$(LIBDIR_LIBRUN)\librun.lib
       
    69 ALLLIB=$(LIBFILES) $(APP_IMPORTLIBS) $(APP_RT_LIB)
       
    70 
       
    71 REQUIRED_LIBS=librun.dll  \
       
    72  libstx_libbasic.dll \
       
    73  libstx_goodies_refactoryBrowser_parser.dll \
       
    74  libstx_libbasic2.dll \
       
    75  libstx_libcomp.dll \
       
    76  libstx_libview.dll \
       
    77  libstx_libbasic3.dll \
       
    78  libstx_libui.dll \
       
    79  libstx_libview2.dll \
       
    80  libstx_libwidg.dll \
       
    81  libstx_libwidg2.dll \
       
    82  libstx_libwidg3.dll \
       
    83  libstx_libtool.dll \
       
    84 
       
    85 
       
    86 REQUIRED_FILES=$(RT_DLL) $(X11_DLL) $(XEXT_DLL) symbols.stc $(REQUIRED_LIBS)
       
    87 
       
    88 REQUIRED_SUPPORT_DIRS=RESOURCEFILES
       
    89 
       
    90 target: ALL postBuildCleanup 
       
    91 
       
    92 # the executable, all required files and a self-installing-installer-exe
       
    93 ALL:: prereq ALL_NP
       
    94 
       
    95 # all, but no prereqs
       
    96 ALL_NP:: exe $(REQUIRED_SUPPORT_DIRS) postBuildCleanup setup
       
    97 
       
    98 exe:  newBuildDate $(REQUIRED_LIBS) noConsoleApp consoleApp registerApplication
       
    99 
       
   100 # the executable only
       
   101 # with console
       
   102 consoleApp: $(REQUIRED_LIBS)
       
   103 	-del main.$(O)
       
   104 	$(MAKE) -N -f bc.mak $(USE_ARG) \
       
   105 		MAKE_BAT=$(MAKE_BAT) \
       
   106 		PROJECT=$(PROJECT_CONSOLE) \
       
   107 		CFLAGS_APPTYPE=" -DWIN32GUI $(CFLAGS_CONSOLE)" \
       
   108 		LFLAGS_APPTYPE=" $(LFLAGS_CONSOLE)" \
       
   109 		CRT_STARTUP=" $(CRT_STARTUP_CONSOLE)" theExe
       
   110 
       
   111 # without console
       
   112 noConsoleApp: $(REQUIRED_LIBS)
       
   113 	-del main.$(O)
       
   114 	$(MAKE) -N -f bc.mak $(USE_ARG) \
       
   115 		MAKE_BAT=$(MAKE_BAT) \
       
   116 		PROJECT=$(PROJECT_NOCONSOLE) \
       
   117 		CFLAGS_APPTYPE=" -DWIN32GUI $(CFLAGS_NOCONSOLE) -DWIN_LOGFILE="\\"\"statascripteditor.log\\"\""" \
       
   118 		LFLAGS_APPTYPE=" $(LFLAGS_NOCONSOLE)" \
       
   119 		CRT_STARTUP=" $(CRT_STARTUP_NOCONSOLE)" theExe
       
   120 
       
   121 # the executable only (internal target; needs some defines)
       
   122 theExe: $(OUTDIR) $(OBJS) $(REQUIRED_FILES) show $(PROJECT) 
       
   123 
       
   124 # build all mandatory prerequisite packages (containing superclasses) for this package
       
   125 prereq:
       
   126 	$(MAKE) -N -f bc.mak $(USE_ARG) FORCE=FORCE_BUILD $(REQUIRED_LIBS)
       
   127 
       
   128 FORCE_BUILD:
       
   129 	@rem Dummy target to force a build
       
   130 
       
   131 # a nullsoft installable delivery
       
   132 # This uses the Nullsoft Installer Package and works in Windows only
       
   133 setup: $(PROJECT) postBuildCleanup statascripteditor.nsi
       
   134 	$(MAKENSIS) statascripteditor.nsi
       
   135 
       
   136 newBuildDate:
       
   137 	del buildDate.h
       
   138 
       
   139 new:
       
   140 	$(MAKE_BAT) clean
       
   141 	$(MAKE_BAT)
       
   142 
       
   143 RESOURCEFILES: statascripteditor_RESOURCES statascripteditor_BITMAPS  \
       
   144 	stx_RESOURCES stx_STYLES stx_BITMAPS
       
   145 
       
   146 
       
   147 statascripteditor_RESOURCES: resources\jv\statascripteditor\NUL
       
   148 	-copy ..\resources\*.rs resources\jv\statascripteditor\..
       
   149 	-copy ..\resources\*.style resources\jv\statascripteditor\..
       
   150 
       
   151 statascripteditor_BITMAPS: resources\jv\statascripteditor\bitmaps\NUL
       
   152 	-copy *.ico resources\jv\statascripteditor\bitmaps
       
   153 	-copy *.gif resources\jv\statascripteditor\bitmaps
       
   154 
       
   155 resources\jv\statascripteditor\bitmaps\NUL: resources\jv\statascripteditor\NUL
       
   156 	mkdir resources\jv\statascripteditor\bitmaps
       
   157 
       
   158 resources\jv\statascripteditor\NUL: resources\jv\NUL
       
   159 	mkdir resources\jv\statascripteditor
       
   160 resources\jv\NUL: resources\NUL
       
   161 	mkdir resources\jv
       
   162 
       
   163 
       
   164 
       
   165 stx_RESOURCES: \
       
   166 	keyboard.rc \
       
   167 	keyboardMacros.rc \
       
   168 	host.rc \
       
   169 	h_win32.rc \
       
   170 	display.rc \
       
   171 	d_win32.rc \
       
   172 	libbasic_RESOURCES \
       
   173 	libview_RESOURCES \
       
   174 	libtool_RESOURCES  \
       
   175 	libtool2_RESOURCES
       
   176 
       
   177 keyboard.rc: $(TOP)\projects\smalltalk\keyboard.rc
       
   178 	copy $(TOP)\projects\smalltalk\keyboard.rc *.*
       
   179 
       
   180 keyboardMacros.rc: $(TOP)\projects\smalltalk\keyboardMacros.rc
       
   181 	copy $(TOP)\projects\smalltalk\keyboardMacros.rc *.*
       
   182 
       
   183 host.rc: $(TOP)\projects\smalltalk\host.rc
       
   184 	copy $(TOP)\projects\smalltalk\host.rc *.*
       
   185 
       
   186 h_win32.rc: $(TOP)\projects\smalltalk\h_win32.rc
       
   187 	copy $(TOP)\projects\smalltalk\h_win32.rc *.*
       
   188 
       
   189 display.rc: $(TOP)\projects\smalltalk\display.rc
       
   190 	copy $(TOP)\projects\smalltalk\display.rc *.*
       
   191 
       
   192 d_win32.rc: $(TOP)\projects\smalltalk\d_win32.rc
       
   193 	copy $(TOP)\projects\smalltalk\d_win32.rc *.*
       
   194 
       
   195 stx_STYLES: resources\stx\libview\NUL resources\stx\libview\styles\NUL
       
   196 	-copy $(TOP)\libview\styles\*.style resources\stx\libview\styles\*.*
       
   197 	-copy $(TOP)\libview\styles\*.common resources\stx\libview\styles\*.*
       
   198 
       
   199 stx_BITMAPS: \
       
   200 	libwidg_BITMAPS
       
   201 
       
   202 libwidg_BITMAPS: resources\stx\libwidg\bitmaps\NUL
       
   203 	-copy $(TOP)\libwidg\bitmaps\*.xpm resources\stx\libwidg\bitmaps\*.*
       
   204 
       
   205 libbasic_RESOURCES: resources\stx\libbasic\NUL
       
   206 	copy $(TOP)\libbasic\resources\*.rs resources\stx\libbasic\*.*
       
   207 
       
   208 libtool_RESOURCES: resources\stx\libtool\NUL
       
   209 	-copy $(TOP)\libtool\resources\*.rs resources\stx\libtool\*.*
       
   210 
       
   211 libtool2_RESOURCES: resources\stx\libtool2\NUL
       
   212 	-copy $(TOP)\libtool2\resources\*.rs resources\stx\libtool2\*.*
       
   213 
       
   214 libview_RESOURCES: resources\stx\libview\NUL 
       
   215 	-copy $(TOP)\libview\resources\*.rs resources\stx\libview\*.*
       
   216 
       
   217 libview2_RESOURCES: resources\stx\libview2\NUL
       
   218 	-copy $(TOP)\libview2\resources\*.rs resources\stx\libview2\*.*
       
   219 
       
   220 resources\stx\libbasic\NUL: resources\stx\NUL
       
   221 	mkdir resources\stx\libbasic
       
   222 
       
   223 resources\stx\libtool\NUL: resources\stx\NUL
       
   224 	mkdir resources\stx\libtool
       
   225 
       
   226 resources\stx\libtool2\NUL: resources\stx\NUL
       
   227 	mkdir resources\stx\libtool2
       
   228 
       
   229 resources\stx\libview\NUL: resources\stx\NUL
       
   230 	mkdir resources\stx\libview
       
   231 
       
   232 resources\stx\libview\styles\NUL: resources\stx\libview\NUL
       
   233 	mkdir resources\stx\libview\styles
       
   234 
       
   235 resources\stx\libview2\NUL: resources\stx\NUL
       
   236 	mkdir resources\stx\libview2
       
   237 
       
   238 resources\stx\libwidg\bitmaps\NUL: resources\stx\libwidg\NUL
       
   239 	mkdir resources\stx\libwidg\bitmaps
       
   240 
       
   241 resources\stx\libwidg\NUL: resources\stx\NUL
       
   242 	mkdir resources\stx\libwidg
       
   243 
       
   244 resources\stx\NUL: resources\NUL
       
   245 	mkdir resources\stx
       
   246 
       
   247 resources\NUL:
       
   248 	mkdir resources
       
   249 
       
   250 bitmaps\NUL:
       
   251 	mkdir bitmaps
       
   252 
       
   253 doc\NUL:
       
   254 	mkdir doc
       
   255 
       
   256 
       
   257 
       
   258 
       
   259 
       
   260 
       
   261 libstx_libbasic.dll: ..\..\stx\libbasic\$(OBJDIR)\libstx_libbasic.dll
       
   262 	copy ..\..\stx\libbasic\$(OBJDIR)\libstx_libbasic.dll *.*
       
   263 
       
   264 ..\..\stx\libbasic\$(OBJDIR)\libstx_libbasic.dll: $(FORCE)
       
   265 	pushd ..\..\stx\libbasic & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
       
   266 
       
   267 libstx_goodies_refactoryBrowser_parser.dll: ..\..\stx\goodies\refactoryBrowser\parser\$(OBJDIR)\libstx_goodies_refactoryBrowser_parser.dll
       
   268 	copy ..\..\stx\goodies\refactoryBrowser\parser\$(OBJDIR)\libstx_goodies_refactoryBrowser_parser.dll *.*
       
   269 
       
   270 ..\..\stx\goodies\refactoryBrowser\parser\$(OBJDIR)\libstx_goodies_refactoryBrowser_parser.dll: $(FORCE)
       
   271 	pushd ..\..\stx\goodies\refactoryBrowser\parser & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
       
   272 
       
   273 libstx_libbasic2.dll: ..\..\stx\libbasic2\$(OBJDIR)\libstx_libbasic2.dll
       
   274 	copy ..\..\stx\libbasic2\$(OBJDIR)\libstx_libbasic2.dll *.*
       
   275 
       
   276 ..\..\stx\libbasic2\$(OBJDIR)\libstx_libbasic2.dll: $(FORCE)
       
   277 	pushd ..\..\stx\libbasic2 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
       
   278 
       
   279 libstx_libcomp.dll: ..\..\stx\libcomp\$(OBJDIR)\libstx_libcomp.dll
       
   280 	copy ..\..\stx\libcomp\$(OBJDIR)\libstx_libcomp.dll *.*
       
   281 
       
   282 ..\..\stx\libcomp\$(OBJDIR)\libstx_libcomp.dll: $(FORCE)
       
   283 	pushd ..\..\stx\libcomp & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
       
   284 
       
   285 libstx_libview.dll: ..\..\stx\libview\$(OBJDIR)\libstx_libview.dll
       
   286 	copy ..\..\stx\libview\$(OBJDIR)\libstx_libview.dll *.*
       
   287 
       
   288 ..\..\stx\libview\$(OBJDIR)\libstx_libview.dll: $(FORCE)
       
   289 	pushd ..\..\stx\libview & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
       
   290 
       
   291 libstx_libbasic3.dll: ..\..\stx\libbasic3\$(OBJDIR)\libstx_libbasic3.dll
       
   292 	copy ..\..\stx\libbasic3\$(OBJDIR)\libstx_libbasic3.dll *.*
       
   293 
       
   294 ..\..\stx\libbasic3\$(OBJDIR)\libstx_libbasic3.dll: $(FORCE)
       
   295 	pushd ..\..\stx\libbasic3 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
       
   296 
       
   297 libstx_libui.dll: ..\..\stx\libui\$(OBJDIR)\libstx_libui.dll
       
   298 	copy ..\..\stx\libui\$(OBJDIR)\libstx_libui.dll *.*
       
   299 
       
   300 ..\..\stx\libui\$(OBJDIR)\libstx_libui.dll: $(FORCE)
       
   301 	pushd ..\..\stx\libui & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
       
   302 
       
   303 libstx_libview2.dll: ..\..\stx\libview2\$(OBJDIR)\libstx_libview2.dll
       
   304 	copy ..\..\stx\libview2\$(OBJDIR)\libstx_libview2.dll *.*
       
   305 
       
   306 ..\..\stx\libview2\$(OBJDIR)\libstx_libview2.dll: $(FORCE)
       
   307 	pushd ..\..\stx\libview2 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
       
   308 
       
   309 libstx_libwidg.dll: ..\..\stx\libwidg\$(OBJDIR)\libstx_libwidg.dll
       
   310 	copy ..\..\stx\libwidg\$(OBJDIR)\libstx_libwidg.dll *.*
       
   311 
       
   312 ..\..\stx\libwidg\$(OBJDIR)\libstx_libwidg.dll: $(FORCE)
       
   313 	pushd ..\..\stx\libwidg & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
       
   314 
       
   315 libstx_libwidg2.dll: ..\..\stx\libwidg2\$(OBJDIR)\libstx_libwidg2.dll
       
   316 	copy ..\..\stx\libwidg2\$(OBJDIR)\libstx_libwidg2.dll *.*
       
   317 
       
   318 ..\..\stx\libwidg2\$(OBJDIR)\libstx_libwidg2.dll: $(FORCE)
       
   319 	pushd ..\..\stx\libwidg2 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
       
   320 
       
   321 libstx_libwidg3.dll: ..\..\stx\libwidg3\$(OBJDIR)\libstx_libwidg3.dll
       
   322 	copy ..\..\stx\libwidg3\$(OBJDIR)\libstx_libwidg3.dll *.*
       
   323 
       
   324 ..\..\stx\libwidg3\$(OBJDIR)\libstx_libwidg3.dll: $(FORCE)
       
   325 	pushd ..\..\stx\libwidg3 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
       
   326 
       
   327 libstx_libtool.dll: ..\..\stx\libtool\$(OBJDIR)\libstx_libtool.dll
       
   328 	copy ..\..\stx\libtool\$(OBJDIR)\libstx_libtool.dll *.*
       
   329 
       
   330 ..\..\stx\libtool\$(OBJDIR)\libstx_libtool.dll: $(FORCE)
       
   331 	pushd ..\..\stx\libtool & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
       
   332 
       
   333       
       
   334 
       
   335 
       
   336 sources\NUL: 
       
   337 	mkdir sources
       
   338 
       
   339 show:
       
   340 	@echo LFLAGS= $(LFLAGS)
       
   341 	@echo ALLOBJ= $(ALLOBJ)
       
   342 	@echo PROJECT= $(PROJECT)
       
   343 	@echo APP_IMPORTLIBS= $(APP_IMPORTLIBS)
       
   344 	@echo ALLLIB= $(ALLLIB)
       
   345 	@echo DEFFILE= $(DEFFILE)
       
   346 	@echo ALLRES= $(ALLRES)
       
   347 
       
   348 !ifdef USEBC
       
   349 
       
   350 $(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
       
   351 	$(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ), $(PROJECT_CONSOLE),, $(ALLLIB), $(DEFFILE), $(RESFILES)
       
   352 
       
   353 $(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
       
   354 	$(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ), $(PROJECT_NOCONSOLE),, $(ALLLIB), $(DEFFILE), $(RESFILES)
       
   355 
       
   356 !else
       
   357 ! ifdef USEVC
       
   358 
       
   359 $(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
       
   360 	$(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) /OUT:"$(PROJECT_CONSOLE)" \
       
   361 	    /MANIFEST /MANIFESTFILE:"$(PROJECT_CONSOLE).manifest" \
       
   362 	    /PDB:"$(PROJECT_CONSOLE).pdb" \
       
   363 	    /SUBSYSTEM:CONSOLE $(ALLLIB) $(RESFILES)
       
   364 
       
   365 $(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
       
   366 	$(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) /OUT:"$(PROJECT_NOCONSOLE)" \
       
   367 	    /MANIFEST /MANIFESTFILE:"$(PROJECT_NOCONSOLE).manifest" \
       
   368 	    /PDB:"$(PROJECT_NOCONSOLE).pdb" \
       
   369 	    /SUBSYSTEM:WINDOWS $(ALLLIB) $(RESFILES)
       
   370 
       
   371 ! else
       
   372 !  ifdef USELCC
       
   373 
       
   374 $(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
       
   375 	$(APP_LINKER) -subsystem console $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) -o "$(PROJECT_CONSOLE)" $(ALLLIB) $(RESFILES)
       
   376 
       
   377 $(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
       
   378 	$(APP_LINKER) -subsystem windows $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) -o "$(PROJECT_NOCONSOLE)" $(ALLLIB) $(RESFILES)
       
   379 
       
   380 !  else
       
   381 !   ifdef USETCC
       
   382 
       
   383 $(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
       
   384 	$(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) -o "$(PROJECT_CONSOLE)" $(ALLLIB) $(RESFILES)
       
   385 
       
   386 $(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
       
   387 	$(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) -o "$(PROJECT_NOCONSOLE)" $(ALLLIB) $(RESFILES)
       
   388 
       
   389 !   else
       
   390 !    if defined(USEMINGW32) || defined(USEMINGW64)
       
   391 
       
   392 $(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES) show
       
   393 	$(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) -o "$(PROJECT_CONSOLE)" $(ALLLIB) $(RESFILES)
       
   394 
       
   395 $(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES) show
       
   396 	$(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) -o "$(PROJECT_NOCONSOLE)" $(ALLLIB) $(APP_IMPORTLIBS) $(RESFILES)
       
   397 
       
   398 !    else
       
   399 error error error
       
   400 !    endif
       
   401 !   endif
       
   402 !  endif
       
   403 ! endif
       
   404 !endif
       
   405 
       
   406 !INCLUDE $(TOP)\rules\stdRules_bc
       
   407 
       
   408 #
       
   409 # additional rules
       
   410 #
       
   411 statascripteditorWin.$(RES): statascripteditorWin.rc statascripteditor.ico
       
   412 
       
   413 main.$(O): buildDate.h main.c bc.mak
       
   414 
       
   415 main.c: $(TOP)\librun\main.c
       
   416 	copy $(TOP)\librun\main.c main.c
       
   417 
       
   418 # now in stdRules.
       
   419 #buildDate.h: $(GENDATE_UTILITIY)
       
   420 #        $(GENDATE_UTILITIY)
       
   421 
       
   422 librun.dll: $(TOP)\librun\$(OBJDIR_LIBRUN)\librun.dll
       
   423 	copy $(TOP)\librun\$(OBJDIR_LIBRUN)\librun.dll librun.dll
       
   424 
       
   425 #cs3245.dll
       
   426 $(RT_DLL): $(TOP)\support\win32\borland\$(RT_DLL)
       
   427 	copy $(TOP)\support\win32\borland\$(RT_DLL) $(RT_DLL)
       
   428 
       
   429 X11.dll: $(TOP)\support\win32\X11.dll
       
   430 	copy $(TOP)\support\win32\X11.dll X11.dll
       
   431 
       
   432 Xext.dll: $(TOP)\support\win32\Xext.dll
       
   433 	copy $(TOP)\support\win32\Xext.dll Xext.dll
       
   434 
       
   435 symbols.stc: $(TOP)\include\symbols.stc
       
   436 	copy $(TOP)\include\symbols.stc symbols.stc
       
   437 
       
   438 
       
   439 
       
   440 
       
   441 
       
   442 clean::
       
   443 	-del genDate.exe genDate.com
       
   444 	-del c0x32.dll
       
   445 	-del c0x32.lib
       
   446 	-del buildDate.h
       
   447 	-del $(PROJECT)
       
   448 	-del install_statascripteditor.exe
       
   449 	-del stx.lib
       
   450 	-del stx.dll
       
   451 	-del $(RT_DLL)
       
   452 	-del $(REQUIRED_FILES)
       
   453 	-del main.c
       
   454 	-del *.log
       
   455 	-del *.$(RES)
       
   456 	-rmdir /S /Q resources
       
   457 	-rmdir /S /Q $(OBJDIR)
       
   458 
       
   459 clobber:: clean
       
   460 	-del *.dll *.exe *.com
       
   461 
       
   462 postBuildCleanup::
       
   463 	@rem  stupid win-make does not allow empty
       
   464 
       
   465 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
       
   466 $(OUTDIR)StataScriptEditor.$(O) StataScriptEditor.$(H): StataScriptEditor.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libtool\MultiViewToolApplication.$(H) $(INCLUDE_TOP)\stx\libview2\ApplicationModel.$(H) $(INCLUDE_TOP)\stx\libview2\Model.$(H) $(INCLUDE_TOP)\stx\libview2\ToolApplicationModel.$(H) $(STCHDR)
       
   467 $(OUTDIR)StataScriptEditorMain.$(O) StataScriptEditorMain.$(H): StataScriptEditorMain.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\StandaloneStartup.$(H) $(STCHDR)
       
   468 $(OUTDIR)StataScriptLogImporter.$(O) StataScriptLogImporter.$(H): StataScriptLogImporter.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
       
   469 $(OUTDIR)StataScriptLogParser.$(O) StataScriptLogParser.$(H): StataScriptLogParser.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
       
   470 $(OUTDIR)jv_statascripteditor.$(O) jv_statascripteditor.$(H): jv_statascripteditor.st $(INCLUDE_TOP)\stx\libbasic\ApplicationDefinition.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\ProjectDefinition.$(H) $(STCHDR)
       
   471 
       
   472 # ENDMAKEDEPEND --- do not remove this line
       
   473 
       
   474 # **Must be at end**
       
   475 
       
   476 # Enforce recompilation of package definition class if Mercurial working
       
   477 # copy state changes. Together with --guessVersion it ensures that package
       
   478 # definition class always contains correct binary revision string.
       
   479 !IFDEF HGROOT
       
   480 $(OUTDIR)jv_statascripteditor.$(O): $(HGROOT)\.hg\dirstate
       
   481 !ENDIF