|
Last change
on this file since 412 was 249, checked in by umoeller, 23 years ago |
|
Build updates, moved files from warpin.
|
-
Property svn:eol-style
set to
CRLF
-
Property svn:keywords
set to
Author Date Id Revision
|
|
File size:
1.4 KB
|
| Line | |
|---|
| 1 | #
|
|---|
| 2 | # make\_sub_compile.in.in:
|
|---|
| 3 | #
|
|---|
| 4 | # sub-include file for nmake that defines the inference
|
|---|
| 5 | # rule for compiling object code from C files.
|
|---|
| 6 | #
|
|---|
| 7 | # Required macro definitions before !include'ing
|
|---|
| 8 | # this file:
|
|---|
| 9 | #
|
|---|
| 10 | # -- CC: compiler setup. Use one of the
|
|---|
| 11 | # definitions from setup.in, e.g.:
|
|---|
| 12 | #
|
|---|
| 13 | # -- CC_DLL_MT: code for a multithread DLL.
|
|---|
| 14 | #
|
|---|
| 15 | # -- PRECH (optional): where precompiled headers should
|
|---|
| 16 | # go to. If not defined, precompiled
|
|---|
| 17 | # headers are not used.
|
|---|
| 18 | #
|
|---|
| 19 | # -- OUTPUTDIR: where the .obj files should go to.
|
|---|
| 20 | #
|
|---|
| 21 |
|
|---|
| 22 | !ifndef CC
|
|---|
| 23 | !error CC macro is not defined.
|
|---|
| 24 | !endif
|
|---|
| 25 |
|
|---|
| 26 | !if [@md $(OUTPUTDIR) 2> NUL]
|
|---|
| 27 | !endif
|
|---|
| 28 |
|
|---|
| 29 | .c.{$(OUTPUTDIR)}.obj:
|
|---|
| 30 | @echo ### [$@]: Compiling $(@B).c
|
|---|
| 31 | !ifndef PRECH
|
|---|
| 32 | # precompiled headers disabled:
|
|---|
| 33 | $(CC) /Fo$(OUTPUTDIR)\$(@B).obj $(MAKEDIR)\$(@B).c
|
|---|
| 34 | !else
|
|---|
| 35 | $(CC) /fi"$(PRECH)\$(@B).pch" /si"$(PRECH)\$(@B).pch" /Fo$(OUTPUTDIR)\$(@B).obj $(MAKEDIR)\$(@B).c
|
|---|
| 36 | !endif
|
|---|
| 37 |
|
|---|
| 38 | .cpp.{$(OUTPUTDIR)}.obj:
|
|---|
| 39 | @echo ### [$@]: Compiling $(@B).cpp
|
|---|
| 40 | !ifndef PRECH
|
|---|
| 41 | # precompiled headers disabled:
|
|---|
| 42 | $(CC) /Fo$(OUTPUTDIR)\$(@B).obj $(MAKEDIR)\$(@B).cpp
|
|---|
| 43 | !else
|
|---|
| 44 | $(CC) /fi"$(PRECH)\$(@B).pch" /si"$(PRECH)\$(@B).pch" /Fo$(OUTPUTDIR)\$(@B).obj $(MAKEDIR)\$(@B).cpp
|
|---|
| 45 | !endif
|
|---|
| 46 |
|
|---|
| 47 | .asm.{$(OUTPUTDIR)}.obj:
|
|---|
| 48 | @echo ### [$@]: Assembling $(@B).asm
|
|---|
| 49 | alp -Sv:ALP -Fdo:$(OUTPUTDIR) $(@B).asm
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.