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
RevLine 
[236]1# makefile_post.mk - common makefile suffix settings for all makefiles
2# $Id: makefile_post.mk 1406 2009-03-15 03:53:07Z stevenhl $
[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)
[1259]8# 25 Oct 08 JBS Rework DEBUG usage to match what C code expects
[1281]9# 18 Nov 08 JBS Ticket 297: Various build improvements/corrections
[1285]10# 19 Nov 08 JBS Ticket 297: Removed bldlevel calls
[1406]11# 14 Dec 08 SHL Drop EXCEPTQ support - will not be used
[252]12
[236]13!ifndef MAKERES
14
[691]15# Build executable
16# Common parameters go in .lrf
17# Executable specific paramters go in .def
18
[1396]19$(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .explicit
[1406]20 @echo Linking $(BASE).exe
[719]21 $(LINK) @$(BASE).lrf @$(BASE).def
[1282]22 @echo.
23 @echo Compiling resource: $@
24 @echo.
[691]25 $(RC) $(RCFLAGS2) $(BASE).res $@
[9]26
[691]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
[1406]34$(BASE).sym: $(BASE).map .explicit
[987]35 @echo Processing: $?
36 -perl debugtools\mapsymw.pl $?
[976]37
[236]38!else
39
[691]40# Replace resources
41$(BASE).exe: $(BASE).res .explicit
[252]42 @if not exist $@ echo $@ missing
[1259]43!ifndef DEBUG
[980]44 lxlite $@ /x+ /b-
45 lxlite $@ /c:minstub
46!endif
[1282]47 @echo.
48 @echo Compiling resource: $@
49 @echo.
[691]50 $(RC) $(RCFLAGS2) $(BASE).res $@
[1259]51!ifndef DEBUG
[252]52 lxlite $@ /x- /b-
[980]53!endif
[236]54
55!endif
56
[691]57lxlite:: $(BASE).exe .symbolic .explicit
[1259]58!ifndef DEBUG
[310]59 lxlite /x- /b- $?
[980]60!endif
[310]61
[691]62clean:: .symbolic .explicit
[236]63 -del $(BASE).exe
64 -del $(BASE).lrf
65 -del $(BASE).map
66 -del $(BASE).obj
67 -del $(BASE).res
68
[9]69# The end
Note: See TracBrowser for help on using the repository browser.