|
Last change
on this file since 1282 was 1282, checked in by John Small, 17 years ago |
|
Ticket 297: Eliminate multiple commands per line.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
|
File size:
1.5 KB
|
| Rev | Line | |
|---|
| [236] | 1 | # makefile_post.mk - common makefile suffix settings for all makefiles
|
|---|
| 2 | # $Id: makefile_post.mk 1282 2008-11-18 21:41:31Z 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
|
|---|
| [252] | 10 |
|
|---|
| [236] | 11 | !ifndef MAKERES
|
|---|
| 12 |
|
|---|
| [691] | 13 | # Build executable
|
|---|
| 14 | # Common parameters go in .lrf
|
|---|
| 15 | # Executable specific paramters go in .def
|
|---|
| 16 |
|
|---|
| 17 | $(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .explicit
|
|---|
| [719] | 18 | $(LINK) @$(BASE).lrf @$(BASE).def
|
|---|
| [1282] | 19 | @echo.
|
|---|
| 20 | @echo Compiling resource: $@
|
|---|
| 21 | @echo.
|
|---|
| [691] | 22 | $(RC) $(RCFLAGS2) $(BASE).res $@
|
|---|
| [252] | 23 | bldlevel $@
|
|---|
| [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
|
|---|
| [252] | 55 | bldlevel $@
|
|---|
| [236] | 56 |
|
|---|
| 57 | !endif
|
|---|
| 58 |
|
|---|
| [691] | 59 | lxlite:: $(BASE).exe .symbolic .explicit
|
|---|
| [1259] | 60 | !ifndef DEBUG
|
|---|
| [310] | 61 | lxlite /x- /b- $?
|
|---|
| [980] | 62 | !endif
|
|---|
| [310] | 63 |
|
|---|
| [691] | 64 | clean:: .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.