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

Last change on this file since 56 was 56, checked in by umoeller, 24 years ago

misc changes

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 8.5 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)\datetime.obj: $(@B).c $(HLPINC)\$(@B).h \
88 $(PROJECTINC)\setup.h
89
90$(OUTPUTDIR)\debug.obj: $(@B).c $(HLPINC)\$(@B).h \
91 $(PROJECTINC)\setup.h \
92 $(HLPINC)\dosh.h
93
94$(OUTPUTDIR)\dialog.obj: $(@B).c $(HLPINC)\$(@B).h \
95 $(PROJECTINC)\setup.h \
96 $(HLPINC)\comctl.h $(HLPINC)\gpih.h $(HLPINC)\linklist.h \
97 $(HLPINC)\standards.h $(HLPINC)\stringh.h \
98 $(HLPINC)\winh.h
99
100$(OUTPUTDIR)\dosh.obj: $(@B).c $(HLPINC)\$(@B).h \
101 $(PROJECTINC)\setup.h
102
103$(OUTPUTDIR)\dosh2.obj: $(@B).c $(HLPINC)\dosh.h \
104 $(PROJECTINC)\setup.h \
105 $(HLPINC)\ensure.h $(HLPINC)\standards.h $(HLPINC)\stringh.h
106
107$(OUTPUTDIR)\eah.obj: $(@B).c $(HLPINC)\$(@B).h \
108 $(PROJECTINC)\setup.h
109
110$(OUTPUTDIR)\encodings.obj: $(@B).c $(INC)\encodings\*.h \
111 $(PROJECTINC)\setup.h
112
113$(OUTPUTDIR)\except.obj: $(@B).c $(HLPINC)\$(@B).h \
114 $(PROJECTINC)\setup.h \
115 $(HLPINC)\dosh.h $(HLPINC)\debug.h
116
117$(OUTPUTDIR)\gpih.obj: $(@B).c $(HLPINC)\$(@B).h \
118 $(PROJECTINC)\setup.h \
119 $(HLPINC)\winh.h
120
121$(OUTPUTDIR)\level.obj: $(@B).c $(HLPINC)\$(@B).h \
122 $(PROJECTINC)\setup.h
123
124$(OUTPUTDIR)\linklist.obj: $(@B).c $(HLPINC)\$(@B).h \
125 $(PROJECTINC)\setup.h
126
127$(OUTPUTDIR)\memdebug.obj: $(@B).c $(HLPINC)\$(@B).h \
128 $(PROJECTINC)\setup.h \
129 $(HLPINC)\except.h $(HLPINC)\stringh.h
130
131$(OUTPUTDIR)\memdebug_win.obj: $(@B).c $(HLPINC)\memdebug.h \
132 $(PROJECTINC)\setup.h \
133 $(HLPINC)\cnrh.h $(HLPINC)\except.h $(HLPINC)\stringh.h $(HLPINC)\winh.h
134
135$(OUTPUTDIR)\prfh.obj: $(@B).c $(HLPINC)\$(@B).h \
136 $(PROJECTINC)\setup.h
137
138$(OUTPUTDIR)\prfh2.obj: $(@B).c $(HLPINC)\prfh.h \
139 $(PROJECTINC)\setup.h \
140 $(HLPINC)\dosh.h $(HLPINC)\stringh.h
141
142$(OUTPUTDIR)\resh.obj: $(@B).c $(HLPINC)\$(@B).h \
143 $(PROJECTINC)\setup.h
144
145$(OUTPUTDIR)\procstat.obj: $(@B).c $(HLPINC)\$(@B).h \
146 $(PROJECTINC)\setup.h
147
148$(OUTPUTDIR)\shapewin.obj: $(@B).c $(HLPINC)\$(@B).h \
149 $(PROJECTINC)\setup.h \
150 $(HLPINC)\gpih.h
151
152$(OUTPUTDIR)\stringh.obj: $(@B).c $(HLPINC)\$(@B).h \
153 $(PROJECTINC)\setup.h \
154 $(HLPINC)\xstring.h
155
156$(OUTPUTDIR)\syssound.obj: $(@B).c $(HLPINC)\$(@B).h \
157 $(PROJECTINC)\setup.h \
158 $(HLPINC)\dosh.h $(HLPINC)\prfh.h
159
160$(OUTPUTDIR)\textview.obj: $(@B).c $(HLPINC)\$(@B).h \
161 $(PROJECTINC)\setup.h \
162 $(HLPINC)\comctl.h $(HLPINC)\gpih.h $(HLPINC)\linklist.h $(HLPINC)\stringh.h \
163 $(HLPINC)\winh.h $(HLPINC)\xstring.h
164
165$(OUTPUTDIR)\threads.obj: $(@B).c $(HLPINC)\$(@B).h \
166 $(PROJECTINC)\setup.h
167
168$(OUTPUTDIR)\timer.obj: $(@B).c $(HLPINC)\$(@B).h \
169 $(HLPINC)\datetime.h $(HLPINC)\except.h $(HLPINC)\linklist.h $(HLPINC)\threads.h \
170 $(PROJECTINC)\setup.h
171
172$(OUTPUTDIR)\tmsgfile.obj: $(@B).c $(HLPINC)\$(@B).h \
173 $(PROJECTINC)\setup.h \
174 $(HLPINC)\eah.h
175
176$(OUTPUTDIR)\textv_html.obj: $(@B).c $(HLPINC)\$(@B).h \
177 $(PROJECTINC)\setup.h \
178 $(HLPINC)\linklist.h $(HLPINC)\stringh.h $(HLPINC)\xstring.h
179
180$(OUTPUTDIR)\tree.obj: $(@B).c $(HLPINC)\$(@B).h \
181 $(PROJECTINC)\setup.h \
182 $(HLPINC)\tree.h
183
184$(OUTPUTDIR)\winh.obj: $(@B).c $(HLPINC)\$(@B).h \
185 $(PROJECTINC)\setup.h \
186 $(HLPINC)\dosh.h $(HLPINC)\prfh.h $(HLPINC)\gpih.h $(HLPINC)\stringh.h \
187 $(HLPINC)\undoc.h $(HLPINC)\xstring.h \
188
189$(OUTPUTDIR)\wphandle.obj: $(@B).c $(HLPINC)\$(@B).h \
190 $(PROJECTINC)\setup.h
191
192$(OUTPUTDIR)\xml.obj: $(@B).c $(HLPINC)\$(@B).h \
193 $(PROJECTINC)\setup.h \
194 $(HLPINC)\linklist.h $(HLPINC)\stringh.h $(HLPINC)\tree.h $(HLPINC)\xstring.h
195
196$(OUTPUTDIR)\xprf.obj: $(@B).c $(HLPINC)\$(@B).h \
197 $(PROJECTINC)\setup.h \
198 $(HLPINC)\linklist.h
199
200$(OUTPUTDIR)\xprf2.obj: $(@B).c $(HLPINC)\xprf.h \
201 $(PROJECTINC)\setup.h \
202 $(INC)\expat\expat.h \
203 $(HLPINC)\linklist.h $(HLPINC)\stringh.h $(HLPINC)\xstring.h
204
205$(OUTPUTDIR)\xstring.obj: $(@B).c $(HLPINC)\$(@B).h \
206 $(PROJECTINC)\setup.h \
207 $(HLPINC)\stringh.h
208
209XMLHEADERS = $(PROJECTINC)\setup.h \
210$(INC)\expat\ascii.h \
211$(INC)\expat\asciitab.h \
212$(INC)\expat\expat.h \
213$(INC)\expat\expat_setup.h \
214$(INC)\expat\iasciitab.h \
215$(INC)\expat\latin1tab.h \
216$(INC)\expat\nametab.h \
217$(INC)\expat\utf8tab.h \
218$(INC)\expat\xmlrole.h \
219$(INC)\expat\xmltok.h \
220$(INC)\expat\xmltok_impl.h
221
222$(OUTPUTDIR)\xml_charset.obj: $(@B).c $(XMLHEADERS)
223
224$(OUTPUTDIR)\xmlparse.obj: $(@B).c $(XMLHEADERS)
225
226$(OUTPUTDIR)\xmlrole.obj: $(@B).c $(XMLHEADERS)
227
228$(OUTPUTDIR)\xmltok.obj: $(@B).c xmltok_impl.c xmltok_ns.c $(XMLHEADERS)
229
230
Note: See TracBrowser for help on using the repository browser.