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

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

Fixes for V0.9.7.

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