source: trunk/makefile_post.mk@ 978

Last change on this file since 978 was 976, checked in by John Small, 18 years ago

Ticket 226: Add support for building SYM files to the build process
and add a package of files/icons to the Warpin WPI file to support
debugging efforts.

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