source: trunk/makefile_post.mk@ 1446

Last change on this file since 1446 was 1406, checked in by Steven Levine, 17 years ago

Drop EXCEPTQ support - will not be used

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