|
Last change
on this file since 1119 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
|
| Line | |
|---|
| 1 | # makefile_post.mk - common makefile suffix settings for all makefiles
|
|---|
| 2 | # $Id: makefile_post.mk 987 2008-03-01 06:53:15Z jbs $
|
|---|
| 3 |
|
|---|
| 4 | # 16 Aug 05 SHL Clean up
|
|---|
| 5 | # 16 Apr 06 SHL Add lxlite target
|
|---|
| 6 | # 02 Jun 07 SHL Convert to OpenWatcom
|
|---|
| 7 | # 23 Feb 08 JBS Add support for building SYM files (Ticket 226)
|
|---|
| 8 |
|
|---|
| 9 | !ifndef MAKERES
|
|---|
| 10 |
|
|---|
| 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
|
|---|
| 16 | $(LINK) @$(BASE).lrf @$(BASE).def
|
|---|
| 17 | $(RC) $(RCFLAGS2) $(BASE).res $@
|
|---|
| 18 | bldlevel $@
|
|---|
| 19 |
|
|---|
| 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 |
|
|---|
| 30 | $(BASE).sym: $(BASE).map
|
|---|
| 31 | @echo Processing: $?
|
|---|
| 32 | -perl debugtools\mapsymw.pl $?
|
|---|
| 33 |
|
|---|
| 34 | !else
|
|---|
| 35 |
|
|---|
| 36 | # Replace resources
|
|---|
| 37 | $(BASE).exe: $(BASE).res .explicit
|
|---|
| 38 | @if not exist $@ echo $@ missing
|
|---|
| 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
|
|---|
| 48 | $(RC) $(RCFLAGS2) $(BASE).res $@
|
|---|
| 49 | !ifdef DEBUG
|
|---|
| 50 | ! ifeq DEBUG 0
|
|---|
| 51 | lxlite $@ /x- /b-
|
|---|
| 52 | ! endif
|
|---|
| 53 | !else
|
|---|
| 54 | lxlite $@ /x- /b-
|
|---|
| 55 | !endif
|
|---|
| 56 | bldlevel $@
|
|---|
| 57 |
|
|---|
| 58 | !endif
|
|---|
| 59 |
|
|---|
| 60 | lxlite:: $(BASE).exe .symbolic .explicit
|
|---|
| 61 | !ifdef DEBUG
|
|---|
| 62 | ! ifeq DEBUG 0
|
|---|
| 63 | lxlite /x- /b- $?
|
|---|
| 64 | ! endif
|
|---|
| 65 | !else
|
|---|
| 66 | lxlite /x- /b- $?
|
|---|
| 67 | !endif
|
|---|
| 68 |
|
|---|
| 69 | clean:: .symbolic .explicit
|
|---|
| 70 | -del $(BASE).exe
|
|---|
| 71 | -del $(BASE).lrf
|
|---|
| 72 | -del $(BASE).map
|
|---|
| 73 | -del $(BASE).obj
|
|---|
| 74 | -del $(BASE).res
|
|---|
| 75 |
|
|---|
| 76 | # The end
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.