source: trunk/makefile_post.mk@ 1405

Last change on this file since 1405 was 1396, checked in by Gregg Young, 17 years ago

Removed obsolete copyright.obj from makefile_post.mak

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
RevLine 
[236]1# makefile_post.mk - common makefile suffix settings for all makefiles
2# $Id: makefile_post.mk 1396 2009-02-08 13:48:46Z gyoung $
[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
[1396]18$(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .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
29!ifdef %EXCEPTQ
30 @%append $^@ file exceptq.lib
31!endif
32 @%append $^@ library dll\fm3dll.lib
33 @%append $^@ library os2386.lib
34
[976]35$(BASE).sym: $(BASE).map
[987]36 @echo Processing: $?
37 -perl debugtools\mapsymw.pl $?
[976]38
[236]39!else
40
[691]41# Replace resources
42$(BASE).exe: $(BASE).res .explicit
[252]43 @if not exist $@ echo $@ missing
[1259]44!ifndef DEBUG
[980]45 lxlite $@ /x+ /b-
46 lxlite $@ /c:minstub
47!endif
[1282]48 @echo.
49 @echo Compiling resource: $@
50 @echo.
[691]51 $(RC) $(RCFLAGS2) $(BASE).res $@
[1259]52!ifndef DEBUG
[252]53 lxlite $@ /x- /b-
[980]54!endif
[236]55
56!endif
57
[691]58lxlite:: $(BASE).exe .symbolic .explicit
[1259]59!ifndef DEBUG
[310]60 lxlite /x- /b- $?
[980]61!endif
[310]62
[691]63clean:: .symbolic .explicit
[236]64 -del $(BASE).exe
65 -del $(BASE).lrf
66 -del $(BASE).map
67 -del $(BASE).obj
68 -del $(BASE).res
69
[9]70# The end
Note: See TracBrowser for help on using the repository browser.