Last change
on this file since 858 was 719, checked in by Steven Levine, 18 years ago |
Change DEBUG semantics to ifdef/ifndef
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.1 KB
|
Rev | Line | |
---|
[236] | 1 | # makefile_post.mk - common makefile suffix settings for all makefiles
|
---|
| 2 | # $Id: makefile_post.mk 719 2007-07-04 00:54:53Z stevenhl $
|
---|
[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
|
---|
[252] | 7 |
|
---|
[236] | 8 | !ifndef MAKERES
|
---|
| 9 |
|
---|
[691] | 10 | # Build executable
|
---|
| 11 | # Common parameters go in .lrf
|
---|
| 12 | # Executable specific paramters go in .def
|
---|
| 13 |
|
---|
| 14 | $(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .explicit
|
---|
[719] | 15 | $(LINK) @$(BASE).lrf @$(BASE).def
|
---|
[691] | 16 | $(RC) $(RCFLAGS2) $(BASE).res $@
|
---|
[252] | 17 | bldlevel $@
|
---|
[9] | 18 |
|
---|
[691] | 19 | $(BASE).lrf: $(__MAKEFILES__) .explicit
|
---|
| 20 | @%write $^@ $(LFLAGS)
|
---|
| 21 | @%append $^@ name $(BASE)
|
---|
| 22 | @%append $^@ file $(BASE).obj
|
---|
| 23 | !ifdef %EXCEPTQ
|
---|
| 24 | @%append $^@ file exceptq.lib
|
---|
| 25 | !endif
|
---|
| 26 | @%append $^@ library dll\fm3dll.lib
|
---|
| 27 | @%append $^@ library os2386.lib
|
---|
| 28 |
|
---|
[236] | 29 | !else
|
---|
| 30 |
|
---|
[691] | 31 | # Replace resources
|
---|
| 32 | $(BASE).exe: $(BASE).res .explicit
|
---|
[252] | 33 | @if not exist $@ echo $@ missing
|
---|
| 34 | lxlite $@ /x+ /b-
|
---|
| 35 | lxlite $@ /c:minstub
|
---|
[691] | 36 | $(RC) $(RCFLAGS2) $(BASE).res $@
|
---|
[252] | 37 | lxlite $@ /x- /b-
|
---|
| 38 | bldlevel $@
|
---|
[236] | 39 |
|
---|
| 40 | !endif
|
---|
| 41 |
|
---|
[691] | 42 | lxlite:: $(BASE).exe .symbolic .explicit
|
---|
[310] | 43 | lxlite /x- /b- $?
|
---|
| 44 |
|
---|
[691] | 45 | clean:: .symbolic .explicit
|
---|
[236] | 46 | -del $(BASE).exe
|
---|
| 47 | -del $(BASE).lrf
|
---|
| 48 | -del $(BASE).map
|
---|
| 49 | -del $(BASE).obj
|
---|
| 50 | -del $(BASE).res
|
---|
| 51 |
|
---|
[9] | 52 | # The end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.