-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.wat
294 lines (218 loc) · 9.19 KB
/
makefile.wat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
#
# "$Id: makefile.wat 7913 2010-11-29 18:18:27Z greg.ercolano $"
#
# Test/example program makefile for the Fast Light Tool Kit (FLTK).
#
# Copyright 1998-2010 by Bill Spitzak and others.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
#
# Please report all bugs and problems on the following page:
#
# http://www.fltk.org/str.php
#
!include ../watcom.mif
ALL = &
$(ODIR)/unittests$(EXEEXT) &
$(ODIR)/adjuster$(EXEEXT) &
$(ODIR)/arc$(EXEEXT) &
$(ODIR)/ask$(EXEEXT) &
$(ODIR)/bitmap$(EXEEXT) &
$(ODIR)/boxtype$(EXEEXT) &
$(ODIR)/browser$(EXEEXT) &
$(ODIR)/button$(EXEEXT) &
$(ODIR)/buttons$(EXEEXT) &
$(ODIR)/checkers$(EXEEXT) &
$(ODIR)/clock$(EXEEXT) &
$(ODIR)/colbrowser$(EXEEXT) &
$(ODIR)/color_chooser$(EXEEXT) &
$(ODIR)/cursor$(EXEEXT) &
$(ODIR)/curve$(EXEEXT) &
$(ODIR)/demo$(EXEEXT) &
$(ODIR)/doublebuffer$(EXEEXT) &
$(ODIR)/editor$(EXEEXT) &
$(ODIR)/fast_slow$(EXEEXT) &
$(ODIR)/file_chooser$(EXEEXT) &
$(ODIR)/fonts$(EXEEXT) &
$(ODIR)/forms$(EXEEXT) &
$(ODIR)/hello$(EXEEXT) &
$(ODIR)/help$(EXEEXT) &
$(ODIR)/iconize$(EXEEXT) &
$(ODIR)/image$(EXEEXT) &
$(ODIR)/inactive$(EXEEXT) &
$(ODIR)/input$(EXEEXT) &
$(ODIR)/keyboard$(EXEEXT) &
$(ODIR)/label$(EXEEXT) &
$(ODIR)/line_style$(EXEEXT) &
$(ODIR)/list_visuals$(EXEEXT) &
$(ODIR)/mandelbrot$(EXEEXT) &
$(ODIR)/menubar$(EXEEXT) &
$(ODIR)/message$(EXEEXT) &
$(ODIR)/minimum$(EXEEXT) &
$(ODIR)/native-filechooser$(EXEEXT) &
$(ODIR)/navigation$(EXEEXT) &
$(ODIR)/output$(EXEEXT) &
$(ODIR)/overlay$(EXEEXT) &
$(ODIR)/pack$(EXEEXT) &
$(ODIR)/pixmap$(EXEEXT) &
$(ODIR)/pixmap_browser$(EXEEXT) &
$(ODIR)/preferences$(EXEEXT) &
$(ODIR)/radio$(EXEEXT) &
$(ODIR)/resize$(EXEEXT) &
$(ODIR)/resizebox$(EXEEXT) &
$(ODIR)/scroll$(EXEEXT) &
$(ODIR)/subwindow$(EXEEXT) &
$(ODIR)/symbols$(EXEEXT) &
$(ODIR)/tabs$(EXEEXT) &
$(ODIR)/threads$(EXEEXT) &
$(ODIR)/tile$(EXEEXT) &
$(ODIR)/tiled_image$(EXEEXT) &
$(ODIR)/valuators$(EXEEXT)
GLALL = &
$(ODIR)/cube$(EXEEXT) &
$(ODIR)/CubeView$(EXEEXT) &
$(ODIR)/fractals$(EXEEXT) &
$(ODIR)/fullscreen$(EXEEXT) &
$(ODIR)/gl_overlay$(EXEEXT) &
$(ODIR)/glpuzzle$(EXEEXT) &
$(ODIR)/shape$(EXEEXT)
all: $(ALL) $(GLALL)
gldemos: $(GLALL)
# FLUID file rules. We could put them in ../watcom.mif really, but that needs testing.
.fl.cxx:
echo Generating $<...
-..\fluid\$(ODIR)\fluid$(EXEEXT) -c $[@
.fl.h:
echo Generating $<...
-..\fluid\$(ODIR)\fluid$(EXEEXT) -c $[@
# All demos depend on the FLTK library...
$(ALL): $(LIBNAME)
# General demos..... Normally a executable depending on an object file of the same name
# shouldn't need a target line. But if different output directories are used, changes
# in sources files are not picked up, so we do need a line per target.
$(ODIR)/unittests$(EXEEXT) : $(ODIR)/unittests.obj
$(ODIR)/adjuster$(EXEEXT) : $(ODIR)/adjuster.obj
$(ODIR)/arc$(EXEEXT) : $(ODIR)/arc.obj
$(ODIR)/ask$(EXEEXT) : $(ODIR)/ask.obj
$(ODIR)/bitmap$(EXEEXT) : $(ODIR)/bitmap.obj
$(ODIR)/boxtype$(EXEEXT) : $(ODIR)/boxtype.obj
$(ODIR)/browser$(EXEEXT) : $(ODIR)/browser.obj
$(ODIR)/button$(EXEEXT) : $(ODIR)/button.obj
$(ODIR)/buttons$(EXEEXT) : $(ODIR)/buttons.obj
$(ODIR)/checkers$(EXEEXT) : $(ODIR)/checkers.obj
$(ODIR)/clock$(EXEEXT) : $(ODIR)/clock.obj
$(ODIR)/colbrowser$(EXEEXT) : $(ODIR)/colbrowser.obj
$(ODIR)/color_chooser$(EXEEXT) : $(ODIR)/color_chooser.obj
$(ODIR)/cursor$(EXEEXT) : $(ODIR)/cursor.obj
$(ODIR)/curve$(EXEEXT) : $(ODIR)/curve.obj
$(ODIR)/demo$(EXEEXT) : $(ODIR)/demo.obj
$(ODIR)/doublebuffer$(EXEEXT) : $(ODIR)/doublebuffer.obj
$(ODIR)/editor$(EXEEXT) : $(ODIR)/editor.obj
$(ODIR)/fast_slow$(EXEEXT) : $(ODIR)/fast_slow.obj
$(ODIR)/file_chooser$(EXEEXT) : $(ODIR)/file_chooser.obj
$(ODIR)/fonts$(EXEEXT) : $(ODIR)/fonts.obj
$(ODIR)/forms$(EXEEXT) : $(ODIR)/forms.obj
$(ODIR)/hello$(EXEEXT) : $(ODIR)/hello.obj
$(ODIR)/help$(EXEEXT) : $(ODIR)/help.obj
$(ODIR)/iconize$(EXEEXT) : $(ODIR)/iconize.obj
$(ODIR)/image$(EXEEXT) : $(ODIR)/image.obj
$(ODIR)/inactive$(EXEEXT) : $(ODIR)/inactive.obj
$(ODIR)/input$(EXEEXT) : $(ODIR)/input.obj
$(ODIR)/label$(EXEEXT) : $(ODIR)/label.obj
$(ODIR)/line_style$(EXEEXT) : $(ODIR)/line_style.obj
$(ODIR)/list_visuals$(EXEEXT) : $(ODIR)/list_visuals.obj
$(ODIR)/menubar$(EXEEXT) : $(ODIR)/menubar.obj
$(ODIR)/message$(EXEEXT) : $(ODIR)/message.obj
$(ODIR)/minimum$(EXEEXT) : $(ODIR)/minimum.obj
$(ODIR)/native-filechooser$(EXEEXT) : $(ODIR)/native-filechooser.obj
$(ODIR)/navigation$(EXEEXT) : $(ODIR)/navigation.obj
$(ODIR)/output$(EXEEXT) : $(ODIR)/output.obj
$(ODIR)/overlay$(EXEEXT) : $(ODIR)/overlay.obj
$(ODIR)/pack$(EXEEXT) : $(ODIR)/pack.obj
$(ODIR)/pixmap$(EXEEXT) : $(ODIR)/pixmap.obj
$(ODIR)/pixmap_browser$(EXEEXT) : $(ODIR)/pixmap_browser.obj
$(ODIR)/preferences$(EXEEXT) : $(ODIR)/preferences.obj
$(ODIR)/radio$(EXEEXT) : $(ODIR)/radio.obj
$(ODIR)/resize$(EXEEXT) : $(ODIR)/resize.obj
$(ODIR)/resizebox$(EXEEXT) : $(ODIR)/resizebox.obj
$(ODIR)/scroll$(EXEEXT) : $(ODIR)/scroll.obj
$(ODIR)/subwindow$(EXEEXT) : $(ODIR)/subwindow.obj
$(ODIR)/symbols$(EXEEXT) : $(ODIR)/symbols.obj
$(ODIR)/tabs$(EXEEXT) : $(ODIR)/tabs.obj
$(ODIR)/threads$(EXEEXT) : $(ODIR)/threads.obj
$(ODIR)/tile$(EXEEXT) : $(ODIR)/tile.obj
$(ODIR)/tiled_image$(EXEEXT) : $(ODIR)/tiled_image.obj
$(ODIR)/valuators$(EXEEXT) : $(ODIR)/valuators.obj
# Because keyboard_ui.obj is listed first, fluid will be used to generate the .cxx and .h file
# so that when keyboard.obj is built, keyboard_ui.h is there.
KBDOBJECTS=keyboard_ui.obj keyboard.obj
$(ODIR)/keyboard$(EXEEXT): $(KBDOBJECTS) keyboard_ui.h
@%create $^*.lk1
@for %i in ($(KBDOBJECTS)) do @%append $^*.lk1 F $(ODIR)/%i
@for %i in ($(LIBS)) do @%append $^*.lk1 L %i
@for %i in ($(EXTRA_LIBS)) do @%append $^*.lk1 L %i
@for %i in ($(SYSLIBS)) do @%append $^*.lk1 L %i
$(LN) $(LNOPTS) name $^@ op map=$^* @$^*.lk1
@del $^*.lk1
@set KBDOBJECTS=
MDLOBJECTS=mandelbrot_ui.obj mandelbrot.obj
$(ODIR)/mandelbrot$(EXEEXT): $(MDLOBJECTS)
@%create $^*.lk1
@for %i in ($(MDLOBJECTS)) do @%append $^*.lk1 F $(ODIR)/%i
@for %i in ($(LIBS)) do @%append $^*.lk1 L %i
@for %i in ($(EXTRA_LIBS)) do @%append $^*.lk1 L %i
@for %i in ($(SYSLIBS)) do @%append $^*.lk1 L %i
$(LN) $(LNOPTS) name $^@ op map=$^* @$^*.lk1
@del $^*.lk1
# All OpenGL demos depend on the FLTK and FLTK_GL libraries...
$(GLALL): $(LIBNAME) $(LIBNAMEGL)
# OpenGL demos...
$(ODIR)/cube$(EXEEXT) : $(ODIR)/cube.obj
$(ODIR)/fullscreen$(EXEEXT) : $(ODIR)/fullscreen.obj
$(ODIR)/gl_overlay$(EXEEXT) : $(ODIR)/gl_overlay.obj
$(ODIR)/glpuzzle$(EXEEXT) : $(ODIR)/glpuzzle.obj
$(ODIR)/shape$(EXEEXT) : $(ODIR)/shape.obj
CBVOBJECTS = CubeView.obj CubeViewUI.obj CubeMain.obj
$(ODIR)/CubeView$(EXEEXT): $(CBVOBJECTS)
@%create $^*.lk1
@for %i in ($(CBVOBJECTS)) do @%append $^*.lk1 F $(ODIR)/%i
@for %i in ($(LIBS)) do @%append $^*.lk1 L %i
@for %i in ($(EXTRA_LIBS)) do @%append $^*.lk1 L %i
@for %i in ($(SYSLIBS)) do @%append $^*.lk1 L %i
$(LN) $(LNOPTS) name $^@ op map=$^* @$^*.lk1
@del $^*.lk1
FRTOBJECTS = fractals.obj fracviewer.obj
$(ODIR)/fractals$(EXEEXT): $(FRTOBJECTS)
@%create $^*.lk1
@for %i in ($(FRTOBJECTS)) do @%append $^*.lk1 F $(ODIR)/%i
@for %i in ($(LIBS)) do @%append $^*.lk1 L %i
@for %i in ($(EXTRA_LIBS)) do @%append $^*.lk1 L %i
@for %i in ($(SYSLIBS)) do @%append $^*.lk1 L %i
$(LN) $(LNOPTS) name $^@ op map=$^* @$^*.lk1
@del $^*.lk1
#
# Clean all directories
#
clean : .SYMBOLIC
@echo Cleaning up.
CLEANEXTS = exe map sym obj lk1
@for %a in ($(CLEANEXTS)) do -rm -f $(ODIR)\*.%a
-rm -f *.err
FLUIDMADE = fastslow inactive keyboard_ui preferences radio resize tabs valuators
@for %a in ($(FLUIDMADE)) do -rm -f %a.cxx %a.h
#
# End of "$Id: makefile.wat 7913 2010-11-29 18:18:27Z greg.ercolano $".
#