source: branches/branch-1-0/src/helpers/helpers_post.in

Last change on this file was 394, checked in by rlw, 14 years ago

syntax errors nmake tolerates but nmake32 doesn't

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1#
2# Post-Include file for the main helpers makefile.
3# This contains inference rules for the files.
4#
5
6# Now define inference rules for what to do with certain file
7# types, based on their file extension.
8# The syntax we need here is ".fromext.toext".
9# So whenever NMAKE encounters a .toext file, it
10# executes what we specify here.
11# The ugly {} brackets are some awkward syntax for specifying
12# files in other directories.
13
14# Special macros used here: $(@B) is the current target w/out ext.
15
16# -- compile C files to .OBJ files, using the CC_HELPPERS macro
17# given to us.
18# The output will be placed in the directory specified by
19# the OUTPUTDIR variable (set above).
20
21.c{$(OUTPUTDIR)}.obj:
22 @echo $(MAKEDIR)\makefile: Compiling $(@B).c
23!ifdef EMX
24 $(CC_HELPERS) -o $(OUTPUTDIR)\$(@B).obj $(@B).c
25!else
26!ifndef PRECH
27 $(CC_HELPERS) /Fo$(OUTPUTDIR)\$(@B).obj $(@B).c
28!else
29 $(CC_HELPERS) /fi"$(PRECH)\$(@B).pch" /si"$(PRECH)\$(@B).pch" /Fo$(OUTPUTDIR)\$(@B).obj $(@B).c
30!endif
31!endif
32
33$(OUTPUTDIR)\interlock.obj: $(@B).asm
34 @echo $(MAKEDIR)\makefile: Assembling $(@B).asm
35 alp -Sv:ALP -Fdo:$(OUTPUTDIR) $(@B).asm
36
37# The .OBJ-from-sources dependencies are now automatically
38# created by "nmake dep" into the .depend include file.
39# V0.9.12 (2001-05-22) [umoeller]
40
41!ifndef NOINCLUDEDEPEND
42!include .depend
43!endif
44
45
46
Note: See TracBrowser for help on using the repository browser.