source: trunk/makefile_post.mk@ 1330

Last change on this file since 1330 was 1287, checked in by John Small, 17 years ago

Ticket 297: 1) More robust, flexible and user-friendly editing of DEF file
option description lines; 2) Support for compiling a copyright string
and linking it into distributed EXE and DLL files; 3) Improved update of
copyright years on a year change, including the About box;

  • 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 1287 2008-11-21 14:08:11Z 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)
[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
[252]11
[236]12!ifndef MAKERES
13
[691]14# Build executable
15# Common parameters go in .lrf
16# Executable specific paramters go in .def
17
[1287]18$(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def dll\copyright.obj .explicit
[719]19 $(LINK) @$(BASE).lrf @$(BASE).def
[1282]20 @echo.
21 @echo Compiling resource: $@
22 @echo.
[691]23 $(RC) $(RCFLAGS2) $(BASE).res $@
[9]24
[691]25$(BASE).lrf: $(__MAKEFILES__) .explicit
26 @%write $^@ $(LFLAGS)
27 @%append $^@ name $(BASE)
28 @%append $^@ file $(BASE).obj
[1287]29 @%append $^@ file dll\copyright.obj
[691]30!ifdef %EXCEPTQ
31 @%append $^@ file exceptq.lib
32!endif
33 @%append $^@ library dll\fm3dll.lib
34 @%append $^@ library os2386.lib
35
[976]36$(BASE).sym: $(BASE).map
[987]37 @echo Processing: $?
38 -perl debugtools\mapsymw.pl $?
[976]39
[236]40!else
41
[691]42# Replace resources
43$(BASE).exe: $(BASE).res .explicit
[252]44 @if not exist $@ echo $@ missing
[1259]45!ifndef DEBUG
[980]46 lxlite $@ /x+ /b-
47 lxlite $@ /c:minstub
48!endif
[1282]49 @echo.
50 @echo Compiling resource: $@
51 @echo.
[691]52 $(RC) $(RCFLAGS2) $(BASE).res $@
[1259]53!ifndef DEBUG
[252]54 lxlite $@ /x- /b-
[980]55!endif
[236]56
57!endif
58
[691]59lxlite:: $(BASE).exe .symbolic .explicit
[1259]60!ifndef DEBUG
[310]61 lxlite /x- /b- $?
[980]62!endif
[310]63
[691]64clean:: .symbolic .explicit
[236]65 -del $(BASE).exe
66 -del $(BASE).lrf
67 -del $(BASE).map
68 -del $(BASE).obj
69 -del $(BASE).res
70
[9]71# The end
Note: See TracBrowser for help on using the repository browser.