| [236] | 1 | # makefile_post.mk - common makefile suffix settings for all makefiles
|
|---|
| 2 | # $Id: makefile_post.mk 1584 2011-06-26 20:48:43Z gyoung $
|
|---|
| [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
|
|---|
| [1576] | 15 | # 21 Jun 11 GKY Add exceptq .xqs support
|
|---|
| 16 | # 21 Jun 11 GKY Make high memory builds the default resources only for exes
|
|---|
| [252] | 17 |
|
|---|
| [236] | 18 | !ifndef MAKERES
|
|---|
| 19 |
|
|---|
| [691] | 20 | # Build executable
|
|---|
| 21 | # Common parameters go in .lrf
|
|---|
| 22 | # Executable specific paramters go in .def
|
|---|
| 23 |
|
|---|
| [1396] | 24 | $(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .explicit
|
|---|
| [1406] | 25 | @echo Linking $(BASE).exe
|
|---|
| [719] | 26 | $(LINK) @$(BASE).lrf @$(BASE).def
|
|---|
| [1282] | 27 | @echo.
|
|---|
| [1468] | 28 | @echo Attaching resources to $@
|
|---|
| [1282] | 29 | @echo.
|
|---|
| [691] | 30 | $(RC) $(RCFLAGS2) $(BASE).res $@
|
|---|
| [1576] | 31 | !exehdr /hi:3 $@
|
|---|
| [9] | 32 |
|
|---|
| [691] | 33 | $(BASE).lrf: $(__MAKEFILES__) .explicit
|
|---|
| 34 | @%write $^@ $(LFLAGS)
|
|---|
| 35 | @%append $^@ name $(BASE)
|
|---|
| 36 | @%append $^@ file $(BASE).obj
|
|---|
| 37 | @%append $^@ library dll\fm3dll.lib
|
|---|
| 38 | @%append $^@ library os2386.lib
|
|---|
| 39 |
|
|---|
| [1584] | 40 | $(BASE).xqs: $(BASE).map .explicit
|
|---|
| 41 | @echo Processing: $?
|
|---|
| 42 | -mapxqs $?
|
|---|
| 43 |
|
|---|
| [1576] | 44 | $(BASE).sym: $(BASE).map $(BASE).xqs .explicit
|
|---|
| [987] | 45 | @echo Processing: $?
|
|---|
| [1576] | 46 | -perl debugtools\mapsymw.pl $?
|
|---|
| [976] | 47 |
|
|---|
| [236] | 48 | !else
|
|---|
| 49 |
|
|---|
| [691] | 50 | # Replace resources
|
|---|
| 51 | $(BASE).exe: $(BASE).res .explicit
|
|---|
| [252] | 52 | @if not exist $@ echo $@ missing
|
|---|
| [1259] | 53 | !ifndef DEBUG
|
|---|
| [980] | 54 | lxlite $@ /x+ /b-
|
|---|
| 55 | lxlite $@ /c:minstub
|
|---|
| 56 | !endif
|
|---|
| [1282] | 57 | @echo.
|
|---|
| [1468] | 58 | @echo Attaching resources to $@
|
|---|
| [1282] | 59 | @echo.
|
|---|
| [691] | 60 | $(RC) $(RCFLAGS2) $(BASE).res $@
|
|---|
| [1259] | 61 | !ifndef DEBUG
|
|---|
| [252] | 62 | lxlite $@ /x- /b-
|
|---|
| [980] | 63 | !endif
|
|---|
| [236] | 64 |
|
|---|
| 65 | !endif
|
|---|
| 66 |
|
|---|
| [691] | 67 | lxlite:: $(BASE).exe .symbolic .explicit
|
|---|
| [1259] | 68 | !ifndef DEBUG
|
|---|
| [310] | 69 | lxlite /x- /b- $?
|
|---|
| [980] | 70 | !endif
|
|---|
| [310] | 71 |
|
|---|
| [691] | 72 | clean:: .symbolic .explicit
|
|---|
| [236] | 73 | -del $(BASE).exe
|
|---|
| 74 | -del $(BASE).lrf
|
|---|
| 75 | -del $(BASE).map
|
|---|
| 76 | -del $(BASE).obj
|
|---|
| 77 | -del $(BASE).res
|
|---|
| [1576] | 78 | -del $(BASE).sym
|
|---|
| 79 | -del $(BASE).xqs
|
|---|
| [236] | 80 |
|
|---|
| [9] | 81 | # The end
|
|---|