source: trunk/makefile_post.mk@ 1010

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

Ticket 226: Removed the check for the PERLLIB environment variable. It was
not a sufficient check for Perl (which turned out to be unnecessary anyway).

  • 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 987 2008-03-01 06:53:15Z 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
[987]31 @echo Processing: $?
32 -perl debugtools\mapsymw.pl $?
[976]33
[236]34!else
35
[691]36# Replace resources
37$(BASE).exe: $(BASE).res .explicit
[252]38 @if not exist $@ echo $@ missing
[980]39!ifdef DEBUG
40! ifeq DEBUG 0
41 lxlite $@ /x+ /b-
42 lxlite $@ /c:minstub
43! endif
44!else
45 lxlite $@ /x+ /b-
46 lxlite $@ /c:minstub
47!endif
[691]48 $(RC) $(RCFLAGS2) $(BASE).res $@
[980]49!ifdef DEBUG
50! ifeq DEBUG 0
51 lxlite $@ /x- /b-
52! endif
53!else
[252]54 lxlite $@ /x- /b-
[980]55!endif
[252]56 bldlevel $@
[236]57
58!endif
59
[691]60lxlite:: $(BASE).exe .symbolic .explicit
[980]61!ifdef DEBUG
62! ifeq DEBUG 0
63 lxlite /x- /b- $?
64! endif
65!else
[310]66 lxlite /x- /b- $?
[980]67!endif
[310]68
[691]69clean:: .symbolic .explicit
[236]70 -del $(BASE).exe
71 -del $(BASE).lrf
72 -del $(BASE).map
73 -del $(BASE).obj
74 -del $(BASE).res
75
[9]76# The end
Note: See TracBrowser for help on using the repository browser.