source: trunk/makefile_post.mk@ 1567

Last change on this file since 1567 was 1468, checked in by Steven Levine, 16 years ago

Add some makefile notes
Avoid attempting to attach resources to fm3res.map
Correct some typos in file_id.diz and readme

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1# makefile_post.mk - common makefile suffix settings for all makefiles
2# $Id: makefile_post.mk 1468 2009-09-21 17:23:53Z stevenhl $
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
16!ifndef MAKERES
17
18# Build executable
19# Common parameters go in .lrf
20# Executable specific paramters go in .def
21
22$(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .explicit
23 @echo Linking $(BASE).exe
24 $(LINK) @$(BASE).lrf @$(BASE).def
25 @echo.
26 @echo Attaching resources to $@
27 @echo.
28 $(RC) $(RCFLAGS2) $(BASE).res $@
29
30$(BASE).lrf: $(__MAKEFILES__) .explicit
31 @%write $^@ $(LFLAGS)
32 @%append $^@ name $(BASE)
33 @%append $^@ file $(BASE).obj
34 @%append $^@ library dll\fm3dll.lib
35 @%append $^@ library os2386.lib
36
37$(BASE).sym: $(BASE).map .explicit
38 @echo Processing: $?
39 -perl debugtools\mapsymw.pl $?
40
41!else
42
43# Replace resources
44$(BASE).exe: $(BASE).res .explicit
45 @if not exist $@ echo $@ missing
46!ifndef DEBUG
47 lxlite $@ /x+ /b-
48 lxlite $@ /c:minstub
49!endif
50 @echo.
51 @echo Attaching resources to $@
52 @echo.
53 $(RC) $(RCFLAGS2) $(BASE).res $@
54!ifndef DEBUG
55 lxlite $@ /x- /b-
56!endif
57
58!endif
59
60lxlite:: $(BASE).exe .symbolic .explicit
61!ifndef DEBUG
62 lxlite /x- /b- $?
63!endif
64
65clean:: .symbolic .explicit
66 -del $(BASE).exe
67 -del $(BASE).lrf
68 -del $(BASE).map
69 -del $(BASE).obj
70 -del $(BASE).res
71
72# The end
Note: See TracBrowser for help on using the repository browser.