source: trunk/makefile_post.mk@ 1657

Last change on this file since 1657 was 1624, checked in by Gregg Young, 14 years ago

Fix problem with kernel trap caused by loading eas.exe's resources in high memory. Ticket 470

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
RevLine 
[236]1# makefile_post.mk - common makefile suffix settings for all makefiles
2# $Id: makefile_post.mk 1624 2011-08-20 20:28:56Z gyoung $
[9]3
[1468]4# Copyright (c) 2002, 2009 Steven H. Levine
5
[252]6# 16 Aug 05 SHL Clean up
[310]7# 16 Apr 06 SHL Add lxlite target
[691]8# 02 Jun 07 SHL Convert to OpenWatcom
[976]9# 23 Feb 08 JBS Add support for building SYM files (Ticket 226)
[1259]10# 25 Oct 08 JBS Rework DEBUG usage to match what C code expects
[1281]11# 18 Nov 08 JBS Ticket 297: Various build improvements/corrections
[1285]12# 19 Nov 08 JBS Ticket 297: Removed bldlevel calls
[1406]13# 14 Dec 08 SHL Drop EXCEPTQ support - will not be used
[1468]14# 24 Jul 09 SHL Comments
[1576]15# 21 Jun 11 GKY Add exceptq .xqs support
16# 21 Jun 11 GKY Make high memory builds the default resources only for exes
[1597]17# 04 Jul 11 GKY Make xqs files an explicit target so they will be rebuild if lost somehow.
[252]18
[236]19!ifndef MAKERES
20
[691]21# Build executable
22# Common parameters go in .lrf
23# Executable specific paramters go in .def
24
[1396]25$(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .explicit
[1406]26 @echo Linking $(BASE).exe
[719]27 $(LINK) @$(BASE).lrf @$(BASE).def
[1282]28 @echo.
[1468]29 @echo Attaching resources to $@
[1282]30 @echo.
[691]31 $(RC) $(RCFLAGS2) $(BASE).res $@
[1624]32!ifndef LOW
[1576]33 !exehdr /hi:3 $@
[1624]34!endif
[9]35
[1624]36LOW =
37
[691]38$(BASE).lrf: $(__MAKEFILES__) .explicit
39 @%write $^@ $(LFLAGS)
40 @%append $^@ name $(BASE)
41 @%append $^@ file $(BASE).obj
42 @%append $^@ library dll\fm3dll.lib
43 @%append $^@ library os2386.lib
44
[1596]45$(BASE).xqs: $(BASE).map .explicit
[1584]46 @echo Processing: $?
47 -mapxqs $?
48
[1596]49$(BASE).sym: $(BASE).map .explicit
50 @echo Processing: $?
51 -perl debugtools\mapsymw.pl $?
52
[236]53!else
54
[691]55# Replace resources
56$(BASE).exe: $(BASE).res .explicit
[252]57 @if not exist $@ echo $@ missing
[1259]58!ifndef DEBUG
[980]59 lxlite $@ /x+ /b-
60 lxlite $@ /c:minstub
61!endif
[1282]62 @echo.
[1468]63 @echo Attaching resources to $@
[1282]64 @echo.
[691]65 $(RC) $(RCFLAGS2) $(BASE).res $@
[1259]66!ifndef DEBUG
[252]67 lxlite $@ /x- /b-
[980]68!endif
[236]69
70!endif
71
[691]72lxlite:: $(BASE).exe .symbolic .explicit
[1259]73!ifndef DEBUG
[310]74 lxlite /x- /b- $?
[980]75!endif
[310]76
[691]77clean:: .symbolic .explicit
[236]78 -del $(BASE).exe
79 -del $(BASE).lrf
80 -del $(BASE).map
81 -del $(BASE).obj
82 -del $(BASE).res
[1576]83 -del $(BASE).sym
84 -del $(BASE).xqs
[236]85
[9]86# The end
Note: See TracBrowser for help on using the repository browser.