source: trunk/makefile_post.mk@ 1594

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

Final makefile changes for adding .xqs files.

  • 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 1584 2011-06-26 20:48:43Z 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).xqs: $(BASE).map .explicit
41 @echo Processing: $?
42 -mapxqs $?
43
44$(BASE).sym: $(BASE).map $(BASE).xqs .explicit
45 @echo Processing: $?
46 -perl debugtools\mapsymw.pl $?
47
48!else
49
50# Replace resources
51$(BASE).exe: $(BASE).res .explicit
52 @if not exist $@ echo $@ missing
53!ifndef DEBUG
54 lxlite $@ /x+ /b-
55 lxlite $@ /c:minstub
56!endif
57 @echo.
58 @echo Attaching resources to $@
59 @echo.
60 $(RC) $(RCFLAGS2) $(BASE).res $@
61!ifndef DEBUG
62 lxlite $@ /x- /b-
63!endif
64
65!endif
66
67lxlite:: $(BASE).exe .symbolic .explicit
68!ifndef DEBUG
69 lxlite /x- /b- $?
70!endif
71
72clean:: .symbolic .explicit
73 -del $(BASE).exe
74 -del $(BASE).lrf
75 -del $(BASE).map
76 -del $(BASE).obj
77 -del $(BASE).res
78 -del $(BASE).sym
79 -del $(BASE).xqs
80
81# The end
Note: See TracBrowser for help on using the repository browser.