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

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

Coupla bugfixes.

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 7.1 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)\datetime.obj: $(@B).c $(HLPINC)\$(@B).h \
84 $(PROJECTINC)\setup.h
85
86$(OUTPUTDIR)\debug.obj: $(@B).c $(HLPINC)\$(@B).h \
87 $(PROJECTINC)\setup.h \
88 $(HLPINC)\dosh.h
89
90$(OUTPUTDIR)\dosh.obj: $(@B).c $(HLPINC)\$(@B).h \
91 $(PROJECTINC)\setup.h
92
93$(OUTPUTDIR)\dosh2.obj: $(@B).c $(HLPINC)\dosh.h \
94 $(PROJECTINC)\setup.h \
95 $(HLPINC)\stringh.h
96
97$(OUTPUTDIR)\eah.obj: $(@B).c $(HLPINC)\$(@B).h \
98 $(PROJECTINC)\setup.h
99
100$(OUTPUTDIR)\except.obj: $(@B).c $(HLPINC)\$(@B).h \
101 $(PROJECTINC)\setup.h \
102 $(HLPINC)\dosh.h $(HLPINC)\debug.h
103
104$(OUTPUTDIR)\gpih.obj: $(@B).c $(HLPINC)\$(@B).h \
105 $(PROJECTINC)\setup.h \
106 $(HLPINC)\winh.h
107
108$(OUTPUTDIR)\level.obj: $(@B).c $(HLPINC)\$(@B).h \
109 $(PROJECTINC)\setup.h
110
111$(OUTPUTDIR)\linklist.obj: $(@B).c $(HLPINC)\$(@B).h \
112 $(PROJECTINC)\setup.h
113
114$(OUTPUTDIR)\memdebug.obj: $(@B).c $(HLPINC)\$(@B).h \
115 $(PROJECTINC)\setup.h \
116 $(HLPINC)\except.h $(HLPINC)\stringh.h
117
118$(OUTPUTDIR)\memdebug_win.obj: $(@B).c $(HLPINC)\memdebug.h \
119 $(PROJECTINC)\setup.h \
120 $(HLPINC)\cnrh.h $(HLPINC)\except.h $(HLPINC)\stringh.h $(HLPINC)\winh.h
121
122$(OUTPUTDIR)\prfh.obj: $(@B).c $(HLPINC)\$(@B).h \
123 $(PROJECTINC)\setup.h
124
125$(OUTPUTDIR)\prfh2.obj: $(@B).c $(HLPINC)\prfh.h \
126 $(PROJECTINC)\setup.h \
127 $(HLPINC)\dosh.h $(HLPINC)\stringh.h
128
129$(OUTPUTDIR)\resh.obj: $(@B).c $(HLPINC)\$(@B).h \
130 $(PROJECTINC)\setup.h
131
132$(OUTPUTDIR)\procstat.obj: $(@B).c $(HLPINC)\$(@B).h \
133 $(PROJECTINC)\setup.h
134
135$(OUTPUTDIR)\shapewin.obj: $(@B).c $(HLPINC)\$(@B).h \
136 $(PROJECTINC)\setup.h \
137 $(HLPINC)\gpih.h
138
139$(OUTPUTDIR)\stringh.obj: $(@B).c $(HLPINC)\$(@B).h \
140 $(PROJECTINC)\setup.h \
141 $(HLPINC)\xstring.h
142
143$(OUTPUTDIR)\syssound.obj: $(@B).c $(HLPINC)\$(@B).h \
144 $(PROJECTINC)\setup.h \
145 $(HLPINC)\dosh.h $(HLPINC)\prfh.h
146
147$(OUTPUTDIR)\textview.obj: $(@B).c $(HLPINC)\$(@B).h \
148 $(PROJECTINC)\setup.h \
149 $(HLPINC)\comctl.h $(HLPINC)\gpih.h $(HLPINC)\linklist.h $(HLPINC)\stringh.h \
150 $(HLPINC)\winh.h $(HLPINC)\xstring.h
151
152$(OUTPUTDIR)\threads.obj: $(@B).c $(HLPINC)\$(@B).h \
153 $(PROJECTINC)\setup.h
154
155$(OUTPUTDIR)\timer.obj: $(@B).c $(HLPINC)\$(@B).h \
156 $(HLPINC)\datetime.h $(HLPINC)\except.h $(HLPINC)\linklist.h $(HLPINC)\threads.h \
157 $(PROJECTINC)\setup.h
158
159$(OUTPUTDIR)\tmsgfile.obj: $(@B).c $(HLPINC)\$(@B).h \
160 $(PROJECTINC)\setup.h \
161 $(HLPINC)\eah.h
162
163$(OUTPUTDIR)\textv_html.obj: $(@B).c $(HLPINC)\$(@B).h \
164 $(PROJECTINC)\setup.h \
165 $(HLPINC)\linklist.h $(HLPINC)\stringh.h $(HLPINC)\xstring.h
166
167$(OUTPUTDIR)\tree.obj: $(@B).c $(HLPINC)\$(@B).h \
168 $(PROJECTINC)\setup.h \
169 $(HLPINC)\tree.h
170
171$(OUTPUTDIR)\winh.obj: $(@B).c $(HLPINC)\$(@B).h \
172 $(PROJECTINC)\setup.h \
173 $(HLPINC)\dosh.h $(HLPINC)\prfh.h $(HLPINC)\gpih.h $(HLPINC)\stringh.h \
174 $(HLPINC)\undoc.h $(HLPINC)\xstring.h \
175
176$(OUTPUTDIR)\wphandle.obj: $(@B).c $(HLPINC)\$(@B).h \
177 $(PROJECTINC)\setup.h
178
179$(OUTPUTDIR)\xprf.obj: $(@B).c $(HLPINC)\$(@B).h \
180 $(PROJECTINC)\setup.h \
181 $(HLPINC)\linklist.h
182
183$(OUTPUTDIR)\xprf2.obj: $(@B).c $(HLPINC)\xprf.h \
184 $(PROJECTINC)\setup.h \
185 $(HLPINC)\prfh.h $(HLPINC)\stringh.h
186
187$(OUTPUTDIR)\xstring.obj: $(@B).c $(HLPINC)\$(@B).h \
188 $(PROJECTINC)\setup.h \
189 $(HLPINC)\stringh.h
190
191
Note: See TracBrowser for help on using the repository browser.