source: trunk/makefile_post.mk@ 1576

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

Changes to support .xqs files for the exes and add them to the "clean" targets. Make loading as much code, data and resources as possible in high memory the default (still need to added a low memory build option).

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