[236] | 1 | # makefile_post.mk - common makefile suffix settings for all makefiles
|
---|
| 2 | # $Id: makefile_post.mk 1468 2009-09-21 17:23:53Z stevenhl $
|
---|
[9] | 3 |
|
---|
[1468] | 4 | # Copyright (c) 2002, 2009 Steven H. Levine
|
---|
| 5 |
|
---|
[252] | 6 | # 16 Aug 05 SHL Clean up
|
---|
[310] | 7 | # 16 Apr 06 SHL Add lxlite target
|
---|
[691] | 8 | # 02 Jun 07 SHL Convert to OpenWatcom
|
---|
[976] | 9 | # 23 Feb 08 JBS Add support for building SYM files (Ticket 226)
|
---|
[1259] | 10 | # 25 Oct 08 JBS Rework DEBUG usage to match what C code expects
|
---|
[1281] | 11 | # 18 Nov 08 JBS Ticket 297: Various build improvements/corrections
|
---|
[1285] | 12 | # 19 Nov 08 JBS Ticket 297: Removed bldlevel calls
|
---|
[1406] | 13 | # 14 Dec 08 SHL Drop EXCEPTQ support - will not be used
|
---|
[1468] | 14 | # 24 Jul 09 SHL Comments
|
---|
[252] | 15 |
|
---|
[236] | 16 | !ifndef MAKERES
|
---|
| 17 |
|
---|
[691] | 18 | # Build executable
|
---|
| 19 | # Common parameters go in .lrf
|
---|
| 20 | # Executable specific paramters go in .def
|
---|
| 21 |
|
---|
[1396] | 22 | $(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .explicit
|
---|
[1406] | 23 | @echo Linking $(BASE).exe
|
---|
[719] | 24 | $(LINK) @$(BASE).lrf @$(BASE).def
|
---|
[1282] | 25 | @echo.
|
---|
[1468] | 26 | @echo Attaching resources to $@
|
---|
[1282] | 27 | @echo.
|
---|
[691] | 28 | $(RC) $(RCFLAGS2) $(BASE).res $@
|
---|
[9] | 29 |
|
---|
[691] | 30 | $(BASE).lrf: $(__MAKEFILES__) .explicit
|
---|
| 31 | @%write $^@ $(LFLAGS)
|
---|
| 32 | @%append $^@ name $(BASE)
|
---|
| 33 | @%append $^@ file $(BASE).obj
|
---|
| 34 | @%append $^@ library dll\fm3dll.lib
|
---|
| 35 | @%append $^@ library os2386.lib
|
---|
| 36 |
|
---|
[1406] | 37 | $(BASE).sym: $(BASE).map .explicit
|
---|
[987] | 38 | @echo Processing: $?
|
---|
| 39 | -perl debugtools\mapsymw.pl $?
|
---|
[976] | 40 |
|
---|
[236] | 41 | !else
|
---|
| 42 |
|
---|
[691] | 43 | # Replace resources
|
---|
| 44 | $(BASE).exe: $(BASE).res .explicit
|
---|
[252] | 45 | @if not exist $@ echo $@ missing
|
---|
[1259] | 46 | !ifndef DEBUG
|
---|
[980] | 47 | lxlite $@ /x+ /b-
|
---|
| 48 | lxlite $@ /c:minstub
|
---|
| 49 | !endif
|
---|
[1282] | 50 | @echo.
|
---|
[1468] | 51 | @echo Attaching resources to $@
|
---|
[1282] | 52 | @echo.
|
---|
[691] | 53 | $(RC) $(RCFLAGS2) $(BASE).res $@
|
---|
[1259] | 54 | !ifndef DEBUG
|
---|
[252] | 55 | lxlite $@ /x- /b-
|
---|
[980] | 56 | !endif
|
---|
[236] | 57 |
|
---|
| 58 | !endif
|
---|
| 59 |
|
---|
[691] | 60 | lxlite:: $(BASE).exe .symbolic .explicit
|
---|
[1259] | 61 | !ifndef DEBUG
|
---|
[310] | 62 | lxlite /x- /b- $?
|
---|
[980] | 63 | !endif
|
---|
[310] | 64 |
|
---|
[691] | 65 | clean:: .symbolic .explicit
|
---|
[236] | 66 | -del $(BASE).exe
|
---|
| 67 | -del $(BASE).lrf
|
---|
| 68 | -del $(BASE).map
|
---|
| 69 | -del $(BASE).obj
|
---|
| 70 | -del $(BASE).res
|
---|
| 71 |
|
---|
[9] | 72 | # The end
|
---|