- Timestamp:
- Jan 26, 2012, 1:00:12 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/makefile
r1620 r1661 3 3 4 4 # Copyright (c) 1993-98 M. Kimes 5 # Copyright (c) 2002, 20 09Steven H. Levine5 # Copyright (c) 2002, 2012 Steven H. Levine 6 6 7 7 # 22 May 03 SHL Correct icon dependencies … … 43 43 # 04 Jul 11 GKY Add eFTE backup files (*~) to clean target 44 44 # 13 Aug 11 GKY Build xqs and sym files as part of dll and all targets 45 46 # Environment: see makefile_pre.mk 45 # 25 Jan 12 SHL Allow NOHIGHMEM set from enviroment 46 47 # Environment: see makefile_pre.mk and makefile_post.mk 47 48 48 49 # DEBUG - debug build if defined, release build if not defined … … 50 51 # FORTIFY - enable FORTIFY heap checking if defined, omit FORITY support if not defined 51 52 # USE_RC - use rc.exe if defined, use wrc.exe if not defined 53 # NOHIGHMEM - support high memory use (i.e exehdir /highmem) 52 54 53 55 BASE = fm3dll … … 88 90 !ifdef %FORTIFY # if defined in environment 89 91 FORTIFY = $(%FORTIFY) # use value from environment 92 !endif 93 94 # Keep this code in sync with makefile_post.mk 95 !ifndef NOHIGHMEM 96 !ifdef %NOHIGHMEM 97 NOHIGHMEM=$(%NOHIGHMEM) 98 !endif 90 99 !endif 91 100 … … 201 210 $(BASERES).res & 202 211 $(BASERES).dll & 212 !ifndef NOHIGHMEM 203 213 loadhigh & 214 !endif 204 215 $(SYMS) & 205 216 ipf\fm3.hlp 206 217 207 218 syms: $(SYMS) .symbolic 208 219 … … 264 275 @echo Processing: $? 265 276 -perl ..\debugtools\mapsymw.pl $? 266 277 267 278 $(BASE).xqs: $(BASE).map .explicit 268 279 @echo Processing: $? 269 -mapxqs $? 280 -mapxqs $? 270 281 271 282 $(BASERES).sym: $(BASERES).map .explicit 272 283 @echo Processing: $? 273 284 -perl ..\debugtools\mapsymw.pl $? 274 285 275 286 $(BASERES).xqs: $(BASERES).map .explicit 276 287 @echo Processing: $? 277 -mapxqs $? 288 -mapxqs $? 278 289 279 290 !else # MAKERES defined … … 314 325 !endif 315 326 327 !ifndef NOHIGHMEM 316 328 # Run for each dependent 317 329 loadhigh: $(BASE).dll $(BASERES).dll .symbolic 318 330 @for %f in ($(BASE).dll $(BASERES).dll) do !exehdr /hi %f 331 !endif 319 332 320 333 cleanobj: .symbolic … … 331 344 -del *.obj 332 345 -del *.res 333 -del *.sym 346 -del *.sym 334 347 -del *.xqs 335 348 -del *~ 336 349 -
trunk/eas.mak
r1624 r1661 1 1 # $Id$ 2 2 3 # Copyright (c) 2002, 20 07Steven H. Levine3 # Copyright (c) 2002, 2012 Steven H. Levine 4 4 5 5 # 16 Jun 07 GKY Convert to OpenWatcom 6 6 # 23 Feb 08 JBS Add support for building SYM files 7 7 # 04 Jul 11 GKY Make xqs files an explicit target so they will be rebuild if lost somehow. 8 # 25 Jan 12 SHL Renamae LOW -> NOHIGHMEM 8 9 9 10 BASE=eas 10 LOW=1 11 NOHIGHMEM=1 # Avoid system traps 11 12 12 13 !include makefile_pre.mk -
trunk/makefile_post.mk
r1624 r1661 2 2 # $Id$ 3 3 4 # Copyright (c) 2002, 20 09Steven H. Levine4 # Copyright (c) 2002, 2012 Steven H. Levine 5 5 6 6 # 16 Aug 05 SHL Clean up … … 16 16 # 21 Jun 11 GKY Make high memory builds the default resources only for exes 17 17 # 04 Jul 11 GKY Make xqs files an explicit target so they will be rebuild if lost somehow. 18 # 25 Jan 12 SHL Renamae LOW -> NOHIGHMEM and allow set from enviroment 18 19 19 20 !ifndef MAKERES … … 22 23 # Common parameters go in .lrf 23 24 # Executable specific paramters go in .def 25 # Put 32-bit data in high memoryt unless overridden 26 27 !ifndef NOHIGHMEM 28 !ifdef %NOHIGHMEM 29 NOHIGHMEM=$(%NOHIGHMEM) 30 !endif 31 !endif 24 32 25 33 $(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .explicit … … 30 38 @echo. 31 39 $(RC) $(RCFLAGS2) $(BASE).res $@ 32 !ifndef LOW33 !exehdr /hi :3 $@40 !ifndef NOHIGHMEM 41 !exehdr /highmem:3 $@ 34 42 !endif 35 43 36 LOW = 44 # 2012-01-25 SHL fixme to be gone - does not undefine 45 # NOHIGHMEM = 37 46 38 47 $(BASE).lrf: $(__MAKEFILES__) .explicit … … 49 58 $(BASE).sym: $(BASE).map .explicit 50 59 @echo Processing: $? 51 -perl debugtools\mapsymw.pl $? 60 -perl debugtools\mapsymw.pl $? 52 61 53 62 !else -
trunk/makefile_pre.mk
r1613 r1661 3 3 4 4 # Copyright (c) 1993-98 M. Kimes 5 # Copyright (c) 2002, 201 1Steven H. Levine5 # Copyright (c) 2002, 2012 Steven H. Levine 6 6 7 7 # 03 Jan 08 SHL Switch to wrc.exe default; support USE_RC from environment … … 11 11 # 06 Oct 08 SHL Pass DEBUG in CFLAGS; clean up USE_RC usage 12 12 # 18 Nov 08 JBS Ticket 297: Various build improvements/corrections 13 # 12 Jul 09 GKY Allow FM/2 to load in high memory call exehdr /hi14 13 # 13 Apr 10 SHL Drop HIMEM support 15 14 # 21 Jun 11 GKY Add exceptq .xqs support 16 # 2011-07-01 SHL sort map 15 # 07 Jan 11 SHL sort map 16 # 25 Jan 12 SHL Comments 17 17 18 18 # Environment: see dll\makefile … … 39 39 40 40 # Keep this code in sync with dll\makefile 41 !ifdef DEBUG 41 !ifdef DEBUG # if defined on wmake command line 42 42 DEBUG_OPT = DEBUG=$(DEBUG) # set in case needed by sub-make 43 43 !else 44 !ifdef %DEBUG 45 DEBUG = $(%DEBUG) 44 !ifdef %DEBUG # if defined in environment 45 DEBUG = $(%DEBUG) # use value from environment 46 46 DEBUG_OPT = DEBUG=$(DEBUG) # set in case needed by sub-make 47 47 !endif … … 55 55 FORTIFY_OPT = FORTIFY=$(FORTIFY) # set in case needed by sub-make 56 56 !else 57 !ifdef %FORTIFY 58 FORTIFY = $(%FORTIFY) 57 !ifdef %FORTIFY # if defined in environment 58 FORTIFY = $(%FORTIFY) # use value from environment 59 59 FORTIFY_OPT = FORTIFY=$(FORTIFY) # set in case needed by sub-make 60 60 !endif 61 61 !endif 62 62 63 SYMS = $(BASE).sym #set atarget for building SYM files63 SYMS = $(BASE).sym # target for building SYM files 64 64 65 65 # Some flags are order dependent - see OpenWatcom docs … … 94 94 95 95 # We always compile with debug info to avoid needing a full rebuild just to debug 96 CFLAGS = -bt=os2 -mf -bm -d2 -olirs 96 CFLAGS = -bt=os2 -mf -bm -d2 -olirs -s -j -wx -zfp -zgp -zp4 -zq -hd 97 97 98 98 !ifdef WARNALL
Note:
See TracChangeset
for help on using the changeset viewer.