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
RevLine 
[236]1# makefile_post.mk - common makefile suffix settings for all makefiles
2# $Id: makefile_post.mk 976 2008-02-23 19:58:02Z jbs $
[9]3
[252]4# 16 Aug 05 SHL Clean up
[310]5# 16 Apr 06 SHL Add lxlite target
[691]6# 02 Jun 07 SHL Convert to OpenWatcom
[976]7# 23 Feb 08 JBS Add support for building SYM files (Ticket 226)
[252]8
[236]9!ifndef MAKERES
10
[691]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
[719]16 $(LINK) @$(BASE).lrf @$(BASE).def
[691]17 $(RC) $(RCFLAGS2) $(BASE).res $@
[252]18 bldlevel $@
[9]19
[691]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
[976]30$(BASE).sym: $(BASE).map
31 @echo Processing: $?
32 -perl debugtools\mapsymw.pl $?
33
[236]34!else
35
[691]36# Replace resources
37$(BASE).exe: $(BASE).res .explicit
[252]38 @if not exist $@ echo $@ missing
39 lxlite $@ /x+ /b-
40 lxlite $@ /c:minstub
[691]41 $(RC) $(RCFLAGS2) $(BASE).res $@
[252]42 lxlite $@ /x- /b-
43 bldlevel $@
[236]44
45!endif
46
[691]47lxlite:: $(BASE).exe .symbolic .explicit
[310]48 lxlite /x- /b- $?
49
[691]50clean:: .symbolic .explicit
[236]51 -del $(BASE).exe
52 -del $(BASE).lrf
53 -del $(BASE).map
54 -del $(BASE).obj
55 -del $(BASE).res
56
[9]57# The end
Note: See TracBrowser for help on using the repository browser.