source: trunk/src/helpers/helpers_post.in@ 38

Last change on this file since 38 was 38, checked in by umoeller, 25 years ago

Updates to XML.

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 8.2 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# Now define dependencies for all our .OBJ files by telling NMAKE
34# which .OBJ file depends on what. For each .OBJ we define what files
35# will enforce a recompilation when they've been changed.
36# This uses the inference rules defined above.
37
38# Note that ..\helpers\dosh.h is specified with _all_ files, so
39# you can enforce a complete recompile of XWorkplace if you update
40# that file (just save it once).
41
42# Helper .OBJ files from /HELPERS. The object files are created
43# from this makefile too.
44
45$(OUTPUTDIR)\animate.obj: $(@B).c $(HLPINC)\$(@B).h \
46 $(PROJECTINC)\setup.h \
47 $(HLPINC)\winh.h $(HLPINC)\gpih.h \
48
49$(OUTPUTDIR)\cnrh.obj: $(@B).c $(HLPINC)\$(@B).h \
50 $(PROJECTINC)\setup.h \
51 $(HLPINC)\winh.h
52
53$(OUTPUTDIR)\cctl_chart.obj: $(@B).c $(HLPINC)\comctl.h \
54 $(PROJECTINC)\setup.h \
55 $(HLPINC)\cnrh.h $(HLPINC)\except.h $(HLPINC)\gpih.h \
56 $(HLPINC)\linklist.h $(HLPINC)\winh.h
57
58$(OUTPUTDIR)\cctl_checkcnr.obj: $(@B).c $(HLPINC)\comctl.h \
59 $(PROJECTINC)\setup.h \
60 $(HLPINC)\cnrh.h $(HLPINC)\except.h $(HLPINC)\gpih.h \
61 $(HLPINC)\linklist.h $(HLPINC)\winh.h
62
63$(OUTPUTDIR)\cctl_progbar.obj: $(@B).c $(HLPINC)\comctl.h \
64 $(PROJECTINC)\setup.h \
65 $(HLPINC)\cnrh.h $(HLPINC)\except.h $(HLPINC)\gpih.h \
66 $(HLPINC)\linklist.h $(HLPINC)\winh.h
67
68$(OUTPUTDIR)\cctl_splitwin.obj: $(@B).c $(HLPINC)\comctl.h \
69 $(PROJECTINC)\setup.h \
70 $(HLPINC)\cnrh.h $(HLPINC)\except.h $(HLPINC)\gpih.h \
71 $(HLPINC)\linklist.h $(HLPINC)\winh.h
72
73$(OUTPUTDIR)\cctl_tooltip.obj: $(@B).c $(HLPINC)\comctl.h \
74 $(PROJECTINC)\setup.h \
75 $(HLPINC)\cnrh.h $(HLPINC)\except.h $(HLPINC)\gpih.h \
76 $(HLPINC)\linklist.h $(HLPINC)\winh.h
77
78$(OUTPUTDIR)\comctl.obj: $(@B).c $(HLPINC)\$(@B).h \
79 $(PROJECTINC)\setup.h \
80 $(HLPINC)\cnrh.h $(HLPINC)\except.h $(HLPINC)\gpih.h \
81 $(HLPINC)\linklist.h $(HLPINC)\winh.h
82
83$(OUTPUTDIR)\configsys.obj: $(@B).c $(HLPINC)\$(@B).h \
84 $(PROJECTINC)\setup.h \
85 $(HLPINC)\dosh.h $(HLPINC)\stringh.h $(HLPINC)\xstring.h
86
87$(OUTPUTDIR)\encodings.obj: $(@B).c $(INC)\encodings\*.h \
88 $(PROJECTINC)\setup.h
89
90$(OUTPUTDIR)\datetime.obj: $(@B).c $(HLPINC)\$(@B).h \
91 $(PROJECTINC)\setup.h
92
93$(OUTPUTDIR)\debug.obj: $(@B).c $(HLPINC)\$(@B).h \
94 $(PROJECTINC)\setup.h \
95 $(HLPINC)\dosh.h
96
97$(OUTPUTDIR)\dosh.obj: $(@B).c $(HLPINC)\$(@B).h \
98 $(PROJECTINC)\setup.h
99
100$(OUTPUTDIR)\dosh2.obj: $(@B).c $(HLPINC)\dosh.h \
101 $(PROJECTINC)\setup.h \
102 $(HLPINC)\stringh.h
103
104$(OUTPUTDIR)\eah.obj: $(@B).c $(HLPINC)\$(@B).h \
105 $(PROJECTINC)\setup.h
106
107$(OUTPUTDIR)\except.obj: $(@B).c $(HLPINC)\$(@B).h \
108 $(PROJECTINC)\setup.h \
109 $(HLPINC)\dosh.h $(HLPINC)\debug.h
110
111$(OUTPUTDIR)\gpih.obj: $(@B).c $(HLPINC)\$(@B).h \
112 $(PROJECTINC)\setup.h \
113 $(HLPINC)\winh.h
114
115$(OUTPUTDIR)\level.obj: $(@B).c $(HLPINC)\$(@B).h \
116 $(PROJECTINC)\setup.h
117
118$(OUTPUTDIR)\linklist.obj: $(@B).c $(HLPINC)\$(@B).h \
119 $(PROJECTINC)\setup.h
120
121$(OUTPUTDIR)\memdebug.obj: $(@B).c $(HLPINC)\$(@B).h \
122 $(PROJECTINC)\setup.h \
123 $(HLPINC)\except.h $(HLPINC)\stringh.h
124
125$(OUTPUTDIR)\memdebug_win.obj: $(@B).c $(HLPINC)\memdebug.h \
126 $(PROJECTINC)\setup.h \
127 $(HLPINC)\cnrh.h $(HLPINC)\except.h $(HLPINC)\stringh.h $(HLPINC)\winh.h
128
129$(OUTPUTDIR)\prfh.obj: $(@B).c $(HLPINC)\$(@B).h \
130 $(PROJECTINC)\setup.h
131
132$(OUTPUTDIR)\prfh2.obj: $(@B).c $(HLPINC)\prfh.h \
133 $(PROJECTINC)\setup.h \
134 $(HLPINC)\dosh.h $(HLPINC)\stringh.h
135
136$(OUTPUTDIR)\resh.obj: $(@B).c $(HLPINC)\$(@B).h \
137 $(PROJECTINC)\setup.h
138
139$(OUTPUTDIR)\procstat.obj: $(@B).c $(HLPINC)\$(@B).h \
140 $(PROJECTINC)\setup.h
141
142$(OUTPUTDIR)\shapewin.obj: $(@B).c $(HLPINC)\$(@B).h \
143 $(PROJECTINC)\setup.h \
144 $(HLPINC)\gpih.h
145
146$(OUTPUTDIR)\stringh.obj: $(@B).c $(HLPINC)\$(@B).h \
147 $(PROJECTINC)\setup.h \
148 $(HLPINC)\xstring.h
149
150$(OUTPUTDIR)\syssound.obj: $(@B).c $(HLPINC)\$(@B).h \
151 $(PROJECTINC)\setup.h \
152 $(HLPINC)\dosh.h $(HLPINC)\prfh.h
153
154$(OUTPUTDIR)\textview.obj: $(@B).c $(HLPINC)\$(@B).h \
155 $(PROJECTINC)\setup.h \
156 $(HLPINC)\comctl.h $(HLPINC)\gpih.h $(HLPINC)\linklist.h $(HLPINC)\stringh.h \
157 $(HLPINC)\winh.h $(HLPINC)\xstring.h
158
159$(OUTPUTDIR)\threads.obj: $(@B).c $(HLPINC)\$(@B).h \
160 $(PROJECTINC)\setup.h
161
162$(OUTPUTDIR)\timer.obj: $(@B).c $(HLPINC)\$(@B).h \
163 $(HLPINC)\datetime.h $(HLPINC)\except.h $(HLPINC)\linklist.h $(HLPINC)\threads.h \
164 $(PROJECTINC)\setup.h
165
166$(OUTPUTDIR)\tmsgfile.obj: $(@B).c $(HLPINC)\$(@B).h \
167 $(PROJECTINC)\setup.h \
168 $(HLPINC)\eah.h
169
170$(OUTPUTDIR)\textv_html.obj: $(@B).c $(HLPINC)\$(@B).h \
171 $(PROJECTINC)\setup.h \
172 $(HLPINC)\linklist.h $(HLPINC)\stringh.h $(HLPINC)\xstring.h
173
174$(OUTPUTDIR)\tree.obj: $(@B).c $(HLPINC)\$(@B).h \
175 $(PROJECTINC)\setup.h \
176 $(HLPINC)\tree.h
177
178$(OUTPUTDIR)\winh.obj: $(@B).c $(HLPINC)\$(@B).h \
179 $(PROJECTINC)\setup.h \
180 $(HLPINC)\dosh.h $(HLPINC)\prfh.h $(HLPINC)\gpih.h $(HLPINC)\stringh.h \
181 $(HLPINC)\undoc.h $(HLPINC)\xstring.h \
182
183$(OUTPUTDIR)\wphandle.obj: $(@B).c $(HLPINC)\$(@B).h \
184 $(PROJECTINC)\setup.h
185
186$(OUTPUTDIR)\xml.obj: $(@B).c $(HLPINC)\$(@B).h \
187 $(PROJECTINC)\setup.h \
188 $(HLPINC)\linklist.h $(HLPINC)\stringh.h $(HLPINC)\tree.h $(HLPINC)\xstring.h
189
190$(OUTPUTDIR)\xprf.obj: $(@B).c $(HLPINC)\$(@B).h \
191 $(PROJECTINC)\setup.h \
192 $(HLPINC)\linklist.h
193
194$(OUTPUTDIR)\xprf2.obj: $(@B).c $(HLPINC)\xprf.h \
195 $(PROJECTINC)\setup.h \
196 $(INC)\expat\expat.h \
197 $(HLPINC)\linklist.h $(HLPINC)\stringh.h $(HLPINC)\xstring.h
198
199$(OUTPUTDIR)\xstring.obj: $(@B).c $(HLPINC)\$(@B).h \
200 $(PROJECTINC)\setup.h \
201 $(HLPINC)\stringh.h
202
203XMLHEADERS = $(PROJECTINC)\setup.h \
204$(INC)\expat\ascii.h \
205$(INC)\expat\asciitab.h \
206$(INC)\expat\expat.h \
207$(INC)\expat\expat_setup.h \
208$(INC)\expat\iasciitab.h \
209$(INC)\expat\latin1tab.h \
210$(INC)\expat\nametab.h \
211$(INC)\expat\utf8tab.h \
212$(INC)\expat\xmlrole.h \
213$(INC)\expat\xmltok.h \
214$(INC)\expat\xmltok_impl.h
215
216$(OUTPUTDIR)\xml_charset.obj: $(@B).c $(XMLHEADERS)
217
218$(OUTPUTDIR)\xmlparse.obj: $(@B).c $(XMLHEADERS)
219
220$(OUTPUTDIR)\xmlrole.obj: $(@B).c $(XMLHEADERS)
221
222$(OUTPUTDIR)\xmltok.obj: $(@B).c xmltok_impl.c xmltok_ns.c $(XMLHEADERS)
223
224
Note: See TracBrowser for help on using the repository browser.