a65a6742bb40b2b1fa3de4d9ee5f77288d7ffd1c
[xscreensaver] / hacks / glx / Makefile.in
1 # hacks/glx/Makefile.in --- xscreensaver, Copyright (c) 1999, 2000
2 #  by Jamie Zawinski.
3 # the `../../configure' script generates `hacks/glx/Makefile' from this file.
4
5 @SET_MAKE@
6 .SUFFIXES:
7 .SUFFIXES: .c .o
8
9 srcdir          = @srcdir@
10 VPATH           = @srcdir@
11
12 install_prefix  =
13 prefix          = @prefix@
14 exec_prefix     = @exec_prefix@
15 bindir          = @bindir@
16 mandir          = @mandir@
17 # maybe this should be 6 (games)?
18 mansuffix       = 1
19 manNdir         = $(mandir)/man$(mansuffix)
20
21 # maybe this should be 6 (games)?
22 mansuffix       = 1
23
24 CC              = @CC@
25 CFLAGS          = @CFLAGS@
26 LDFLAGS         = @LDFLAGS@
27 DEFS            = -DSTANDALONE -DUSE_GL @DEFS@
28 LIBS            = @LIBS@
29
30 DEPEND          = @DEPEND@
31 DEPEND_FLAGS    = @DEPEND_FLAGS@
32 DEPEND_DEFINES  = @DEPEND_DEFINES@
33
34 SHELL           = /bin/sh
35 INSTALL         = @INSTALL@
36 INSTALL_PROGRAM = @INSTALL_PROGRAM@
37 INSTALL_DATA    = @INSTALL_DATA@
38 INSTALL_DIRS    = @INSTALL_DIRS@
39 HACKDIR         = @HACKDIR@
40
41 X_CFLAGS        = @X_CFLAGS@
42 X_LIBS          = @X_LIBS@
43 X_PRE_LIBS      = @X_PRE_LIBS@
44 X_EXTRA_LIBS    = @X_EXTRA_LIBS@
45 XMU_LIBS        = @XMU_LIBS@
46
47 # Note: see comment in ../../driver/Makefile.in for explanation of X_LIBS, etc.
48 #
49 HACK_PRE        = $(LIBS) $(X_LIBS)
50 HACK_POST     = $(X_PRE_LIBS) -lXt -lX11 $(XMU_LIBS) -lXext $(X_EXTRA_LIBS) -lm
51 HACK_POST2      = @GL_LIBS@ @HACK_LIBS@ $(HACK_POST)
52 HACK_LIBS       = $(HACK_PRE)                       $(HACK_POST2)
53 XPM_LIBS        = $(HACK_PRE)            @XPM_LIBS@ $(HACK_POST2)
54 GLE_LIBS        = $(HACK_PRE) @GLE_LIBS@ @XPM_LIBS@ $(HACK_POST2)
55
56 HACK_SRC        = $(srcdir)/..
57 HACK_BIN        = ..
58 UTILS_SRC       = $(HACK_SRC)/../utils
59 UTILS_BIN       = $(HACK_BIN)/../utils
60
61 INCLUDES        = -I. -I$(srcdir) -I$(UTILS_SRC) -I$(HACK_SRC) -I../.. @INCLUDES@
62
63 UTIL_SRCS       = $(UTILS_SRC)/colors.c $(UTILS_SRC)/hsv.c \
64                   $(UTILS_SRC)/resources.c $(UTILS_SRC)/usleep.c \
65                   $(UTILS_SRC)/visual.c $(UTILS_SRC)/visual-gl.c \
66                   $(UTILS_SRC)/yarandom.c
67 UTIL_OBJS       = $(UTILS_SRC)/colors.o $(UTILS_SRC)/hsv.o \
68                   $(UTILS_SRC)/resources.o $(UTILS_SRC)/usleep.o \
69                   $(UTILS_SRC)/visual.o $(UTILS_SRC)/visual-gl.o \
70                    $(UTILS_SRC)/yarandom.o
71
72 SRCS            = xscreensaver-gl-helper.c \
73                   atlantis.c b_draw.c b_lockglue.c b_sphere.c bubble3d.c \
74                   buildlwo.c cage.c dolphin.c gears.c lament.c moebius.c \
75                   morph3d.c pipeobjs.c pipes.c rubik.c s1_1.c s1_2.c s1_3.c \
76                   s1_4.c s1_5.c s1_6.c s1_b.c shark.c sproingies.c \
77                   sproingiewrap.c stairs.c superquadrics.c swim.c whale.c \
78                   xlock-gl.c fps.c xpm-ximage.c glplanet.c pulsar.c \
79                   extrusion.c extrusion-helix2.c extrusion-helix3.c \
80                   extrusion-helix4.c extrusion-joinoffset.c extrusion-screw.c \
81                   extrusion-taper.c extrusion-twistoid.c sierpinski3d.c \
82                   gflux.c stonerview.c stonerview-move.c stonerview-osc.c \
83                   stonerview-view.c starwars.c glut_stroke.c glut_swidth.c \
84                   gltext.c molecule.c dangerball.c sphere.c tube.c circuit.c \
85                   menger.c engine.c flipscreen3d.c font-ximage.c \
86                   grab-ximage.c glsnake.c boxed.c glforestfire.c sballs.c \
87                   cubenetic.c spheremonics.c marching.c lavalite.c rotator.c \
88                   trackball.c gltrackball.c queens.c endgame.c chessmodels.c \
89                   glblur.c gllist.c flurry.c flurry-smoke.c flurry-spark.c \
90                   flurry-star.c flurry-texture.c atunnel.c tunnel_draw.c \
91                   flyingtoasters.c toaster.c toaster_base.c toaster_handle.c \
92                   toaster_handle2.c toaster_jet.c toaster_knob.c \
93                   toaster_slots.c toaster_wing.c toast.c toast2.c \
94                   bouncingcow.c cow_face.c cow_hide.c cow_hoofs.c cow_horns.c \
95                   cow_tail.c cow_udder.c glslideshow.c jigglypuff.c klein.c \
96                   hypertorus.c glmatrix.c cubestorm.c glknots.c blocktube.c
97
98 OBJS            = xscreensaver-gl-helper.o \
99                   atlantis.o b_draw.o b_lockglue.o b_sphere.o bubble3d.o \
100                   buildlwo.o cage.o dolphin.o gears.o lament.o moebius.o \
101                   morph3d.o pipeobjs.o pipes.o rubik.o s1_1.o s1_2.o s1_3.o \
102                   s1_4.o s1_5.o s1_6.o s1_b.o shark.o sproingies.o \
103                   sproingiewrap.o stairs.o superquadrics.o swim.o whale.o \
104                   xlock-gl.o fps.o xpm-ximage.o glplanet.o pulsar.o \
105                   extrusion.o extrusion-helix2.o extrusion-helix3.o \
106                   extrusion-helix4.o extrusion-joinoffset.o extrusion-screw.o \
107                   extrusion-taper.o extrusion-twistoid.o sierpinski3d.o \
108                   gflux.o stonerview.o stonerview-move.o stonerview-osc.o \
109                   stonerview-view.o starwars.o glut_stroke.o glut_swidth.o \
110                   gltext.o molecule.o dangerball.o sphere.o tube.o circuit.o \
111                   menger.o engine.o flipscreen3d.o font-ximage.o \
112                   grab-ximage.o glsnake.o boxed.o glforestfire.o sballs.o \
113                   cubenetic.o spheremonics.o marching.o lavalite.o rotator.o \
114                   trackball.o gltrackball.o queens.o endgame.o chessmodels.o \
115                   glblur.o gllist.o flurry.o flurry-smoke.o flurry-spark.o \
116                   flurry-star.o flurry-texture.o atunnel.o tunnel_draw.o \
117                   flyingtoasters.o toaster.o toaster_base.o toaster_handle.o \
118                   toaster_handle2.o toaster_jet.o toaster_knob.o \
119                   toaster_slots.o toaster_wing.o toast.o toast2.o \
120                   bouncingcow.o cow_face.o cow_hide.o cow_hoofs.o cow_horns.o \
121                   cow_tail.o cow_udder.o glslideshow.o jigglypuff.o klein.o \
122                   hypertorus.o glmatrix.o cubestorm.o glknots.o blocktube.o
123
124 GL_EXES         = cage gears moebius pipes sproingies stairs superquadrics \
125                   morph3d rubik atlantis lament bubble3d glplanet pulsar \
126                   sierpinski3d gflux stonerview starwars gltext molecule \
127                   dangerball circuit menger engine flipscreen3d glsnake boxed \
128                   glforestfire sballs cubenetic spheremonics lavalite queens \
129                   endgame glblur flurry atunnel flyingtoasters bouncingcow \
130                   glslideshow jigglypuff klein hypertorus glmatrix cubestorm \
131                   glknots blocktube
132 GLE_EXES        = extrusion
133 GL_UTIL_EXES    = xscreensaver-gl-helper
134 HACK_EXES       = @GL_EXES@ @GLE_EXES@
135 GRAB_OBJS       = $(UTILS_BIN)/grabclient.o grab-ximage.o
136 EXES            = @GL_UTIL_EXES@ $(HACK_EXES)
137
138 HACK_OBJS       = screenhack-gl.o xlock-gl.o fps.o $(HACK_BIN)/xlockmore.o \
139                   $(UTILS_BIN)/resources.o $(UTILS_BIN)/visual.o \
140                   $(UTILS_BIN)/visual-gl.o $(UTILS_BIN)/usleep.o \
141                   $(UTILS_BIN)/yarandom.o $(UTILS_BIN)/hsv.o \
142                   $(UTILS_BIN)/colors.o
143
144 HDRS            = atlantis.h bubble3d.h buildlwo.h e_textures.h xpm-ximage.h \
145                   grab-ximage.h font-ximage.h tube.h sphere.h boxed.h \
146                   stonerview-move.h stonerview-osc.h glutstroke.h \
147                   glut_roman.h marching.h rotator.h trackball.h gltrackball.h \
148                   chessmodels.h chessgames.h gllist.h flurry.h tunnel_draw.h
149 GL_MEN          = atlantis.man boxed.man bubble3d.man cage.man circuit.man \
150                   cubenetic.man dangerball.man engine.man extrusion.man \
151                   flipscreen3d.man gears.man gflux.man glforestfire.man \
152                   glplanet.man glsnake.man gltext.man lament.man lavalite.man \
153                   menger.man moebius.man molecule.man morph3d.man pipes.man \
154                   pulsar.man queens.man rubik.man sballs.man sierpinski3d.man \
155                   spheremonics.man sproingies.man stairs.man starwars.man \
156                   stonerview.man superquadrics.man xscreensaver-gl-helper.man \
157                   endgame.man flurry.man glblur.man atunnel.man \
158                   flyingtoasters.man bouncingcow.man glslideshow.man \
159                   jigglypuff.man klein.man hypertorus.man glmatrix.man \
160                   cubestorm.man glknots.man blocktube.man
161 MEN             = @GL_MEN@
162 EXTRAS          = README Makefile.in dxf2gl.pl
163
164 TARFILES        = $(SRCS) $(HDRS) $(MEN) $(EXTRAS)
165
166
167 default: all
168 all: $(EXES)
169
170 install:   install-program   install-man
171 uninstall: uninstall-program uninstall-man
172
173 install-strip:
174         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
175
176 # the hacks, in $HACKDIR
177 install-program:: $(EXES)
178         @exes="$(HACK_EXES)" ;                                          \
179          idir="$(install_prefix)$(HACKDIR)" ;                           \
180          if [ "$$exes" != "" ]; then                                    \
181            if [ ! -d $$idir ]; then                                     \
182              $(INSTALL_DIRS) $$idir ;                                   \
183            fi ;                                                         \
184            for program in $$exes; do                                    \
185              echo $(INSTALL_PROGRAM) $$program $$idir/$$program ;       \
186                   $(INSTALL_PROGRAM) $$program $$idir/$$program ;       \
187            done ;                                                       \
188          fi
189
190 # the xscreensaver-gl-helper program, in $bindir
191 install-program:: $(EXES)
192         @exes="@GL_UTIL_EXES@" ;                                        \
193          idir="$(install_prefix)$(bindir)" ;                            \
194          if [ "$$exes" != "" ]; then                                    \
195            if [ ! -d $$idir ]; then                                     \
196              $(INSTALL_DIRS) $$idir ;                                   \
197            fi ;                                                         \
198            for program in $$exes; do                                    \
199              echo $(INSTALL_PROGRAM) $$program $$idir/$$program ;       \
200                   $(INSTALL_PROGRAM) $$program $$idir/$$program ;       \
201            done ;                                                       \
202          fi
203
204 install-man: $(MEN)
205         @men="$(MEN)" ;                                                 \
206          idir="$(install_prefix)$(manNdir)" ;                           \
207          if [ ! -d $$idir ]; then                                       \
208           $(INSTALL_DIRS) $$idir ;                                      \
209          fi ;                                                           \
210          for man in $$men; do                                           \
211            instname=`echo $$man | sed 's/\.man$$/\.$(mansuffix)/'` ;    \
212            echo $(INSTALL_DATA) $(srcdir)/$$man $$idir/$$instname ;     \
213                 $(INSTALL_DATA) $(srcdir)/$$man $$idir/$$instname ;     \
214          done
215
216 # the hacks, in $HACKDIR
217 uninstall-program::
218         @exes="$(HACK_EXES)" ;                                          \
219          idir="$(install_prefix)$(HACKDIR)" ;                           \
220          for program in $$exes; do                                      \
221            echo rm -f $$idir/$$program ;                                \
222                 rm -f $$idir/$$program ;                                \
223          done
224
225 # the xscreensaver-gl-helper program, in $bindir
226 uninstall-program::
227         @exes="$(GL_UTIL_EXES)" ;                                       \
228          idir="$(install_prefix)$(bindir)" ;                            \
229          for program in $$exes; do                                      \
230            echo rm -f $$idir/$$program ;                                \
231                 rm -f $$idir/$$program ;                                \
232         done
233
234 uninstall-man:
235         @men="$(MEN)" ;                                                 \
236          idir="$(install_prefix)$(manNdir)" ;                           \
237          for man in $$men; do                                           \
238            instname=`echo $$man | sed 's/\.man$$/\.$(mansuffix)/'` ;    \
239            echo rm -f $$idir/$$instname ;                               \
240                 rm -f $$idir/$$instname ;                               \
241         done
242
243 clean:
244         -rm -f *.o a.out core $(EXES) molecules.h
245
246 distclean: clean
247         -rm -f Makefile TAGS *~ "#"*
248
249 # Adds all current dependencies to Makefile
250 depend:
251         $(DEPEND) -s '# DO NOT DELETE: updated by make depend'              \
252         $(DEPEND_FLAGS) --                                                  \
253         $(INCLUDES) $(DEFS) $(DEPEND_DEFINES) $(CFLAGS) $(X_CFLAGS) --      \
254         $(SRCS)
255
256 # Adds some dependencies to Makefile.in -- not totally accurate, but pretty
257 # close.  This excludes dependencies on files in /usr/include, etc.  It tries
258 # to include only dependencies on files which are themselves a part of this
259 # package.
260 distdepend:: molecules.h
261         @echo updating dependencies in `pwd`/Makefile.in... ;               \
262         $(DEPEND) -w 0 -f -                                                 \
263         -s '# DO NOT DELETE: updated by make distdepend' $(DEPEND_FLAGS) -- \
264         $(INCLUDES) $(DEFS) $(DEPEND_DEFINES) $(CFLAGS) $(X_CFLAGS) --      \
265         $(SRCS) 2>/dev/null |                                               \
266         sort -d |                                                           \
267         (                                                                   \
268           awk '/^# .*Makefile.in ---/,/^# DO .*distdepend/' < Makefile.in ; \
269           sed -e '/^#.*/d'                                                  \
270               -e 's@ \./@ @g;s@ /[^ ]*@@g;/^.*:$$/d'                        \
271               -e 's@\.\./\.\./utils@$$(UTILS_SRC)@g'                        \
272               -e 's@\.\./glx/@@g'                                           \
273               -e 's@ \.\./@ $$(HACK_SRC)/@g'                                \
274               -e 's@ \([^$$]\)@ $$(srcdir)/\1@g'                            \
275               -e 's@ $$(srcdir)/\(.*config.h\)@ \1@g'                       \
276               -e 's@ $$(HACK_SRC)/\(.*config.h\)@ ../\1@g'                  \
277               -e 's@ $$(srcdir)/\(.*molecules.h\)@ \1@g' ;                  \
278           echo ''                                                           \
279         ) > /tmp/distdepend.$$$$ &&                                         \
280         mv Makefile.in Makefile.in.bak &&                                   \
281         mv /tmp/distdepend.$$$$ Makefile.in
282
283
284 TAGS: tags
285 tags:
286         find $(srcdir) -name '*.[chly]' -print | xargs etags -a
287
288 echo_tarfiles:
289         @echo $(TARFILES)
290
291 check_men:
292         @badmen="" ;                                                    \
293          for exe in $(EXES); do                                         \
294            if ! [ -f $(srcdir)/$$exe.man ]; then                        \
295              badmen="$$badmen $$exe" ;                                  \
296            fi ;                                                         \
297          done ;                                                         \
298          if [ -n "$$badmen" ]; then                                     \
299            echo "" ;                                                    \
300            echo "Warning: The following programs have no manuals:" ;    \
301            echo "" ;                                                    \
302            for m in $$badmen ; do                                       \
303              echo "    $$m" ;                                           \
304            done ;                                                       \
305          fi
306
307 check_xml:
308         @badxml="" ;                                                    \
309          for exe in $(EXES); do                                         \
310            if ! [ -f $(srcdir)/../config/$$exe.xml -o                   \
311                   "$$exe" = xscreensaver-gl-helper ]; then              \
312              badxml="$$badxml $$exe" ;                                  \
313            fi ;                                                         \
314          done ;                                                         \
315          if [ -n "$$badxml" ]; then                                     \
316            echo "" ;                                                    \
317            echo "Warning: The following programs have no configurators:" ; \
318            echo "" ;                                                    \
319            for m in $$badxml ; do                                       \
320              echo "    $$m" ;                                           \
321            done ;                                                       \
322            echo "" ;                                                    \
323          fi
324
325 distdepend:: check_men check_xml
326
327
328
329
330 # Rules for noticing when the objects from the utils directory are out of
331 # date with respect to their sources, and going and building them according
332 # to the rules in their own Makefile...
333 #
334 $(UTILS_BIN)/colors.o:          $(UTILS_SRC)/colors.c
335 $(UTILS_BIN)/hsv.o:             $(UTILS_SRC)/hsv.c
336 $(UTILS_BIN)/resources.o:       $(UTILS_SRC)/resources.c
337 $(UTILS_BIN)/usleep.o:          $(UTILS_SRC)/usleep.c
338 $(UTILS_BIN)/visual.o:          $(UTILS_SRC)/visual.c
339 $(UTILS_BIN)/visual-gl.o:       $(UTILS_SRC)/visual-gl.c
340 $(UTILS_BIN)/yarandom.o:        $(UTILS_SRC)/yarandom.c
341
342 $(UTIL_OBJS):
343         cd $(UTILS_BIN) ; \
344         $(MAKE) $(@F) CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
345
346 $(HACK_BIN)/xlockmore.o: $(HACK_SRC)/xlockmore.c
347         cd $(HACK_BIN)  ; $(MAKE) $(@F) CC="$(CC)" CFLAGS="$(CFLAGS)"
348
349
350 # How we build object files in this directory.
351 .c.o:
352         $(CC) -c $(INCLUDES) $(DEFS) $(CFLAGS) $(X_CFLAGS) $<
353
354
355 # How to build the "xscreensaver-gl-helper" program, that lets the daemon
356 # know which visual is the right one for GL programs.
357 #
358 HELPER_OBJS = xscreensaver-gl-helper.o $(UTILS_BIN)/visual-gl.o \
359               $(UTILS_BIN)/visual.o $(UTILS_BIN)/resources.o
360 xscreensaver-gl-helper: $(HELPER_OBJS)
361         $(CC) $(LDFLAGS) -o $@ $(HELPER_OBJS) $(LIBS) $(X_LIBS) $(HACK_POST2)
362
363
364 # These hacks use a slightly-differently-compiled variant of screenhack.c.
365 # This is how to make the the other .o file from it.
366 #
367 screenhack-gl.o: $(HACK_SRC)/screenhack.c
368         $(CC) -o $@ -c $(INCLUDES) $(DEFS) $(CFLAGS) $(X_CFLAGS) \
369           -DXLOCKMORE  -DUSE_GL $(HACK_SRC)/screenhack.c
370
371 CC_HACK         = $(CC) $(LDFLAGS)
372
373 TRACK_OBJS=rotator.o trackball.o gltrackball.o
374
375 ATLANTIS_OBJS = $(HACK_OBJS) dolphin.o shark.o swim.o whale.o xpm-ximage.o
376 atlantis:       atlantis.o      $(ATLANTIS_OBJS)
377         $(CC_HACK) -o $@ $@.o   $(ATLANTIS_OBJS) $(HACK_LIBS) $(XPM_LIBS)
378
379 ATUNNEL_OBJS = $(HACK_OBJS) tunnel_draw.o xpm-ximage.o
380 atunnel:        atunnel.o $(ATUNNEL_OBJS)
381         $(CC_HACK) -o $@ $@.o   $(ATUNNEL_OBJS) $(HACK_LIBS) $(XPM_LIBS)
382
383 cage:           cage.o          $(HACK_OBJS)
384         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
385
386 FLURRY_OBJS_1 = flurry-smoke.o flurry-spark.o flurry-star.o flurry-texture.o
387 FLURRY_OBJS = $(FLURRY_OBJS_1) $(HACK_OBJS)
388
389 flurry:         flurry.o $(FLURRY_OBJS)
390         $(CC_HACK) -o $@ $@.o   $(FLURRY_OBJS) $(HACK_LIBS) -lm
391
392 gears:          gears.o         $(HACK_OBJS) $(TRACK_OBJS)
393         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(TRACK_OBJS) $(HACK_LIBS)
394
395 moebius:        moebius.o       $(TRACK_OBJS) $(HACK_OBJS)
396         $(CC_HACK) -o $@ $@.o   $(TRACK_OBJS) $(HACK_OBJS) $(HACK_LIBS)
397
398 pipes:          pipes.o         $(HACK_OBJS) pipeobjs.o buildlwo.o
399         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) pipeobjs.o buildlwo.o \
400           $(HACK_LIBS)
401
402 superquadrics:  superquadrics.o $(HACK_OBJS)
403         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
404
405 morph3d:        morph3d.o       $(HACK_OBJS)
406         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
407
408 rubik:          rubik.o $(HACK_OBJS)
409         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
410
411 stairs:         stairs.o        $(HACK_OBJS)
412         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
413
414 SPROINGIES = sproingiewrap.o gllist.o \
415              s1_1.o s1_2.o s1_3.o s1_4.o s1_5.o s1_6.o s1_b.o
416 sproingies: sproingies.o $(HACK_OBJS) $(SPROINGIES)
417         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(SPROINGIES) $(HACK_LIBS)
418
419 lament:         lament.o        $(TRACK_OBJS) xpm-ximage.o $(HACK_OBJS)
420         $(CC_HACK) -o $@ $@.o   $(TRACK_OBJS) xpm-ximage.o $(HACK_OBJS) $(XPM_LIBS)
421
422 B3D = b_sphere.o b_draw.o b_lockglue.o
423 bubble3d:       bubble3d.o      $(HACK_OBJS) $(B3D)
424         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(B3D) $(HACK_LIBS)
425
426 PLANETHACKS=sphere.o xpm-ximage.o $(TRACK_OBJS)
427 glplanet:       glplanet.o      $(PLANETHACKS) $(HACK_OBJS)
428         $(CC_HACK) -o $@ $@.o   $(PLANETHACKS) $(HACK_OBJS) $(XPM_LIBS)
429
430 pulsar:         pulsar.o        $(HACK_OBJS) xpm-ximage.o
431         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) xpm-ximage.o $(HACK_LIBS) $(XPM_LIBS)
432
433 EXTRUSION_OBJS=extrusion.o extrusion-helix2.o extrusion-helix3.o    \
434         extrusion-helix4.o extrusion-joinoffset.o extrusion-screw.o \
435         extrusion-taper.o extrusion-twistoid.o xpm-ximage.o $(TRACK_OBJS)
436 extrusion:      $(EXTRUSION_OBJS) $(HACK_OBJS)
437         $(CC_HACK) -o $@ $(EXTRUSION_OBJS) $(HACK_OBJS) $(XPM_LIBS) $(GLE_LIBS)
438
439 sierpinski3d:   sierpinski3d.o  $(HACK_OBJS) $(TRACK_OBJS)
440         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(TRACK_OBJS) $(HACK_LIBS)
441
442 gflux:          gflux.o         $(HACK_OBJS) $(TRACK_OBJS) $(GRAB_OBJS)
443         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(TRACK_OBJS) $(GRAB_OBJS) $(HACK_LIBS)
444
445 SW_OBJS=starwars.o glut_stroke.o glut_swidth.o
446 starwars:       $(SW_OBJS) $(HACK_OBJS)
447         $(CC_HACK) -o $@ $(SW_OBJS) $(HACK_OBJS) $(HACK_LIBS)
448
449 GLT_OBJS=gltext.o glut_stroke.o glut_swidth.o tube.o $(TRACK_OBJS)
450 gltext: $(GLT_OBJS) $(HACK_OBJS)
451         $(CC_HACK) -o $@ $(GLT_OBJS) $(HACK_OBJS) $(HACK_LIBS)
452
453 DB_OBJS=sphere.o tube.o $(TRACK_OBJS)
454 dangerball:     dangerball.o    $(DB_OBJS) $(HACK_OBJS)
455         $(CC_HACK) -o $@ $@.o   $(DB_OBJS) $(HACK_OBJS) $(HACK_LIBS)
456
457 circuit:        circuit.o       $(HACK_OBJS) font-ximage.o
458         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) font-ximage.o $(HACK_LIBS)
459
460 menger:         menger.o        $(HACK_OBJS) $(TRACK_OBJS)
461         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(TRACK_OBJS) $(HACK_LIBS)
462
463 engine:         engine.o        $(HACK_OBJS) $(TRACK_OBJS)
464         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(TRACK_OBJS) $(HACK_LIBS)
465
466 flipscreen3d:   flipscreen3d.o  $(HACK_OBJS) $(GRAB_OBJS) $(TRACK_OBJS)
467         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(GRAB_OBJS) $(TRACK_OBJS) $(HACK_LIBS)
468
469 glsnake:        glsnake.o       $(HACK_OBJS)
470         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
471
472 boxed:          boxed.o         $(HACK_OBJS)
473         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
474
475 glforestfire:   glforestfire.o  $(HACK_OBJS) xpm-ximage.o
476         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) xpm-ximage.o $(XPM_LIBS)
477
478 sballs:         sballs.o        $(HACK_OBJS) xpm-ximage.o
479         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) xpm-ximage.o $(XPM_LIBS)
480
481 cubenetic:      cubenetic.o     $(HACK_OBJS) $(TRACK_OBJS)
482         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(TRACK_OBJS) $(HACK_LIBS)
483
484 spheremonics:   spheremonics.o  $(HACK_OBJS) $(TRACK_OBJS)
485         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(TRACK_OBJS) $(HACK_LIBS)
486
487 LLOBJS=marching.o xpm-ximage.o $(TRACK_OBJS) $(HACK_OBJS)
488 lavalite:       lavalite.o      $(LLOBJS)
489         $(CC_HACK) -o $@ $@.o   $(LLOBJS)  $(XPM_LIBS)
490
491 queens:         queens.o        $(TRACK_OBJS) $(HACK_OBJS)
492         $(CC_HACK) -o $@ $@.o   $(TRACK_OBJS) $(HACK_OBJS) $(HACK_LIBS)
493
494 CHESSOBJS=chessmodels.o $(TRACK_OBJS) $(HACK_OBJS)
495 endgame:        endgame.o       $(CHESSOBJS)
496         $(CC_HACK) -o $@ $@.o   $(CHESSOBJS) $(HACK_LIBS)
497
498 glblur: glblur.o                $(HACK_OBJS) $(TRACK_OBJS)
499         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(TRACK_OBJS) $(HACK_LIBS)
500
501 TOASTOBJS1=\
502   toaster.o toaster_base.o toaster_handle.o toaster_handle2.o \
503   toaster_jet.o toaster_knob.o toaster_slots.o toaster_wing.o \
504   toast.o toast2.o
505 TOASTOBJS=flyingtoasters.o gllist.o $(TOASTOBJS1) xpm-ximage.o
506 flyingtoasters: $(TOASTOBJS)          $(TRACK_OBJS) $(HACK_OBJS)
507         $(CC_HACK) -o $@ $(TOASTOBJS) $(TRACK_OBJS) $(HACK_OBJS) $(XPM_LIBS)
508
509 COWOBJS1=\
510   cow_face.o cow_hide.o cow_hoofs.o cow_horns.o cow_tail.o cow_udder.o
511 COWOBJS=bouncingcow.o gllist.o $(COWOBJS1) xpm-ximage.o
512 bouncingcow:    $(COWOBJS)          $(TRACK_OBJS) $(HACK_OBJS)
513         $(CC_HACK) -o $@ $(COWOBJS) $(TRACK_OBJS) $(HACK_OBJS) $(XPM_LIBS)
514
515 glslideshow:    glslideshow.o   $(HACK_OBJS) $(GRAB_OBJS)
516         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(GRAB_OBJS) $(HACK_LIBS)
517
518 jigglypuff:     jigglypuff.o    xpm-ximage.o $(HACK_OBJS) $(TRACK_OBJS)
519         $(CC_HACK) -o $@ $@.o   xpm-ximage.o $(HACK_OBJS) $(TRACK_OBJS) $(XPM_LIBS)
520
521 klein:          klein.o         $(HACK_OBJS) $(TRACK_OBJS)
522         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(TRACK_OBJS) $(HACK_LIBS)
523
524 hypertorus:     hypertorus.o    $(HACK_OBJS)
525         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
526
527 glmatrix:       glmatrix.o      $(HACK_OBJS) xpm-ximage.o
528         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) xpm-ximage.o $(XPM_LIBS)
529
530 cubestorm:      cubestorm.o     $(TRACK_OBJS) $(HACK_OBJS)
531         $(CC_HACK) -o $@ $@.o   $(TRACK_OBJS) $(HACK_OBJS) $(HACK_LIBS)
532
533 glknots:        glknots.o       tube.o $(TRACK_OBJS) $(HACK_OBJS)
534         $(CC_HACK) -o $@ $@.o   tube.o $(TRACK_OBJS) $(HACK_OBJS) $(HACK_LIBS)
535
536 blocktube:      blocktube.o     $(HACK_OBJS) xpm-ximage.o
537         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) xpm-ximage.o $(HACK_LIBS) $(XPM_LIBS)
538
539 # This one works differently (it's not xlock-like.)
540 #
541 STONER_OBJS=stonerview.o stonerview-move.o stonerview-osc.o stonerview-view.o \
542             $(UTILS_BIN)/yarandom.o
543 stonerview:     $(STONER_OBJS)
544         $(CC_HACK) -o $@ $(STONER_OBJS) $(HACK_LIBS)
545
546 molecules.h:
547         @tmp=molecules.h.$$$$ ;                                         \
548         rm -f $$tmp ;                                                   \
549         echo "building molecules.h from $(HACK_SRC)/images/molecules/*.pdb" ; \
550         for f in $(HACK_SRC)/images/molecules/*.pdb ; do                \
551           $(SHELL) $(UTILS_SRC)/ad2c "$$f" |                            \
552             sed 's/",$$/\\n"/' >> $$tmp ;                               \
553           echo ',' >> $$tmp ;                                           \
554         done ;                                                          \
555         mv $$tmp molecules.h
556
557 MOLECULEOBJS=sphere.o tube.o $(TRACK_OBJS)
558 molecule:       molecule.o      $(MOLECULEOBJS) $(HACK_OBJS)
559         $(CC_HACK) -o $@ $@.o   $(MOLECULEOBJS) $(HACK_OBJS) $(HACK_LIBS)
560
561 dnalogo:        dnalogo.o       tube.o $(HACK_OBJS)
562         $(CC_HACK) -o $@ $@.o   tube.o $(HACK_OBJS) $(HACK_LIBS)
563
564 ##############################################################################
565 #
566 # DO NOT DELETE: updated by make distdepend
567
568 atlantis.o: $(srcdir)/atlantis.h
569 atlantis.o: ../../config.h
570 atlantis.o: $(HACK_SRC)/images/sea-texture.xpm
571 atlantis.o: $(srcdir)/xpm-ximage.h
572 atunnel.o: ../../config.h
573 atunnel.o: $(HACK_SRC)/images/tunnel0.xpm
574 atunnel.o: $(HACK_SRC)/images/tunnel1.xpm
575 atunnel.o: $(HACK_SRC)/images/tunnel2.xpm
576 atunnel.o: $(srcdir)/tunnel_draw.h
577 atunnel.o: $(srcdir)/xpm-ximage.h
578 b_draw.o: $(srcdir)/bubble3d.h
579 b_draw.o: ../../config.h
580 b_lockglue.o: $(srcdir)/bubble3d.h
581 b_lockglue.o: ../../config.h
582 blocktube.o: ../../config.h
583 blocktube.o: $(HACK_SRC)/images/blocktube.xpm
584 blocktube.o: $(srcdir)/xpm-ximage.h
585 bouncingcow.o: ../../config.h
586 bouncingcow.o: $(srcdir)/gllist.h
587 bouncingcow.o: $(srcdir)/gltrackball.h
588 bouncingcow.o: $(srcdir)/rotator.h
589 bouncingcow.o: $(srcdir)/xpm-ximage.h
590 boxed.o: $(srcdir)/boxed.h
591 boxed.o: ../../config.h
592 b_sphere.o: $(srcdir)/bubble3d.h
593 b_sphere.o: ../../config.h
594 bubble3d.o: $(srcdir)/bubble3d.h
595 bubble3d.o: ../../config.h
596 buildlwo.o: $(srcdir)/buildlwo.h
597 cage.o: ../../config.h
598 cage.o: $(srcdir)/e_textures.h
599 chessmodels.o: $(srcdir)/chessmodels.h
600 circuit.o: ../../config.h
601 circuit.o: $(srcdir)/font-ximage.h
602 cow_face.o: $(srcdir)/gllist.h
603 cow_hide.o: $(srcdir)/gllist.h
604 cow_hoofs.o: $(srcdir)/gllist.h
605 cow_horns.o: $(srcdir)/gllist.h
606 cow_tail.o: $(srcdir)/gllist.h
607 cow_udder.o: $(srcdir)/gllist.h
608 cubenetic.o: ../../config.h
609 cubenetic.o: $(srcdir)/gltrackball.h
610 cubenetic.o: $(srcdir)/rotator.h
611 cubestorm.o: ../../config.h
612 cubestorm.o: $(srcdir)/gltrackball.h
613 cubestorm.o: $(srcdir)/rotator.h
614 dangerball.o: ../../config.h
615 dangerball.o: $(srcdir)/gltrackball.h
616 dangerball.o: $(srcdir)/rotator.h
617 dangerball.o: $(srcdir)/sphere.h
618 dangerball.o: $(srcdir)/tube.h
619 dolphin.o: $(srcdir)/atlantis.h
620 endgame.o: $(srcdir)/chessgames.h
621 endgame.o: $(srcdir)/chessmodels.h
622 endgame.o: ../../config.h
623 endgame.o: $(srcdir)/gltrackball.h
624 engine.o: ../../config.h
625 engine.o: $(srcdir)/gltrackball.h
626 engine.o: $(srcdir)/rotator.h
627 extrusion-helix2.o: ../../config.h
628 extrusion-helix3.o: ../../config.h
629 extrusion-helix4.o: ../../config.h
630 extrusion-joinoffset.o: ../../config.h
631 extrusion.o: ../../config.h
632 extrusion.o: $(srcdir)/rotator.h
633 extrusion.o: $(srcdir)/xpm-ximage.h
634 extrusion-screw.o: ../../config.h
635 extrusion-taper.o: ../../config.h
636 extrusion-twistoid.o: ../../config.h
637 flipscreen3d.o: ../../config.h
638 flipscreen3d.o: $(srcdir)/gltrackball.h
639 flipscreen3d.o: $(srcdir)/grab-ximage.h
640 flurry.o: ../../config.h
641 flurry.o: $(srcdir)/flurry.h
642 flurry.o: $(srcdir)/gltrackball.h
643 flurry.o: $(srcdir)/rotator.h
644 flurry-smoke.o: $(srcdir)/flurry.h
645 flurry-smoke.o: $(srcdir)/gltrackball.h
646 flurry-smoke.o: $(srcdir)/rotator.h
647 flurry-spark.o: $(srcdir)/flurry.h
648 flurry-spark.o: $(srcdir)/gltrackball.h
649 flurry-spark.o: $(srcdir)/rotator.h
650 flurry-star.o: $(srcdir)/flurry.h
651 flurry-star.o: $(srcdir)/gltrackball.h
652 flurry-star.o: $(srcdir)/rotator.h
653 flurry-texture.o: $(srcdir)/flurry.h
654 flurry-texture.o: $(srcdir)/gltrackball.h
655 flurry-texture.o: $(srcdir)/rotator.h
656 flyingtoasters.o: ../../config.h
657 flyingtoasters.o: $(srcdir)/gllist.h
658 flyingtoasters.o: $(srcdir)/gltrackball.h
659 flyingtoasters.o: $(HACK_SRC)/images/chromesphere.xpm
660 flyingtoasters.o: $(HACK_SRC)/images/toast.xpm
661 flyingtoasters.o: $(srcdir)/xpm-ximage.h
662 font-ximage.o: ../../config.h
663 fps.o: ../../config.h
664 gears.o: ../../config.h
665 gears.o: $(srcdir)/gltrackball.h
666 gears.o: $(srcdir)/rotator.h
667 gflux.o: ../../config.h
668 gflux.o: $(srcdir)/gltrackball.h
669 gflux.o: $(srcdir)/grab-ximage.h
670 glblur.o: ../../config.h
671 glblur.o: $(srcdir)/gltrackball.h
672 glblur.o: $(srcdir)/rotator.h
673 glforestfire.o: ../../config.h
674 glforestfire.o: $(HACK_SRC)/images/ground.xpm
675 glforestfire.o: $(HACK_SRC)/images/tree.xpm
676 glforestfire.o: $(srcdir)/xpm-ximage.h
677 glknots.o: ../../config.h
678 glknots.o: $(srcdir)/gltrackball.h
679 glknots.o: $(srcdir)/rotator.h
680 glknots.o: $(srcdir)/tube.h
681 gllist.o: $(srcdir)/gllist.h
682 glmatrix.o: ../../config.h
683 glmatrix.o: $(srcdir)/gllist.h
684 glmatrix.o: $(HACK_SRC)/images/matrix3.xpm
685 glmatrix.o: $(srcdir)/xpm-ximage.h
686 glplanet.o: ../../config.h
687 glplanet.o: $(srcdir)/gltrackball.h
688 glplanet.o: $(HACK_SRC)/images/earth.xpm
689 glplanet.o: $(srcdir)/rotator.h
690 glplanet.o: $(srcdir)/sphere.h
691 glplanet.o: $(srcdir)/xpm-ximage.h
692 glslideshow.o: ../../config.h
693 glslideshow.o: $(srcdir)/grab-ximage.h
694 glsnake.o: ../../config.h
695 gltext.o: ../../config.h
696 gltext.o: $(srcdir)/gltrackball.h
697 gltext.o: $(srcdir)/glut_roman.h
698 gltext.o: $(srcdir)/glutstroke.h
699 gltext.o: $(srcdir)/rotator.h
700 gltext.o: $(srcdir)/tube.h
701 gltrackball.o: ../../config.h
702 gltrackball.o: $(srcdir)/gltrackball.h
703 gltrackball.o: $(srcdir)/trackball.h
704 glut_stroke.o: ../../config.h
705 glut_stroke.o: $(srcdir)/glutstroke.h
706 glut_swidth.o: ../../config.h
707 glut_swidth.o: $(srcdir)/glutstroke.h
708 grab-ximage.o: ../../config.h
709 hypertorus.o: ../../config.h
710 jigglypuff.o: ../../config.h
711 jigglypuff.o: $(srcdir)/gltrackball.h
712 jigglypuff.o: $(HACK_SRC)/images/jigglymap.xpm
713 jigglypuff.o: $(srcdir)/xpm-ximage.h
714 klein.o: ../../config.h
715 klein.o: $(srcdir)/gltrackball.h
716 klein.o: $(srcdir)/rotator.h
717 lament.o: ../../config.h
718 lament.o: $(srcdir)/gltrackball.h
719 lament.o: $(HACK_SRC)/images/lament.xpm
720 lament.o: $(srcdir)/rotator.h
721 lament.o: $(srcdir)/xpm-ximage.h
722 lavalite.o: ../../config.h
723 lavalite.o: $(srcdir)/gltrackball.h
724 lavalite.o: $(srcdir)/marching.h
725 lavalite.o: $(srcdir)/rotator.h
726 lavalite.o: $(srcdir)/xpm-ximage.h
727 marching.o: ../../config.h
728 marching.o: $(srcdir)/marching.h
729 menger.o: ../../config.h
730 menger.o: $(srcdir)/gltrackball.h
731 menger.o: $(srcdir)/rotator.h
732 moebius.o: ../../config.h
733 moebius.o: $(srcdir)/e_textures.h
734 moebius.o: $(srcdir)/gltrackball.h
735 moebius.o: $(srcdir)/rotator.h
736 molecule.o: ../../config.h
737 molecule.o: $(srcdir)/gltrackball.h
738 molecule.o: molecules.h
739 molecule.o: $(srcdir)/rotator.h
740 molecule.o: $(srcdir)/sphere.h
741 molecule.o: $(srcdir)/tube.h
742 morph3d.o: ../../config.h
743 pipeobjs.o: $(srcdir)/buildlwo.h
744 pipes.o: $(srcdir)/buildlwo.h
745 pipes.o: ../../config.h
746 pulsar.o: ../../config.h
747 pulsar.o: $(srcdir)/xpm-ximage.h
748 queens.o: ../../config.h
749 queens.o: $(srcdir)/gltrackball.h
750 rotator.o: ../../config.h
751 rotator.o: $(srcdir)/rotator.h
752 rubik.o: ../../config.h
753 s1_1.o: $(srcdir)/gllist.h
754 s1_2.o: $(srcdir)/gllist.h
755 s1_3.o: $(srcdir)/gllist.h
756 s1_4.o: $(srcdir)/gllist.h
757 s1_5.o: $(srcdir)/gllist.h
758 s1_6.o: $(srcdir)/gllist.h
759 s1_b.o: $(srcdir)/gllist.h
760 sballs.o: ../../config.h
761 sballs.o: $(HACK_SRC)/images/sball-bg.xpm
762 sballs.o: $(HACK_SRC)/images/sball.xpm
763 sballs.o: $(srcdir)/xpm-ximage.h
764 shark.o: $(srcdir)/atlantis.h
765 sierpinski3d.o: ../../config.h
766 sierpinski3d.o: $(srcdir)/gltrackball.h
767 sierpinski3d.o: $(srcdir)/rotator.h
768 spheremonics.o: ../../config.h
769 spheremonics.o: $(srcdir)/gltrackball.h
770 spheremonics.o: $(srcdir)/rotator.h
771 sphere.o: ../../config.h
772 sproingies.o: ../../config.h
773 sproingies.o: $(srcdir)/gllist.h
774 sproingiewrap.o: ../../config.h
775 stairs.o: ../../config.h
776 stairs.o: $(srcdir)/e_textures.h
777 starwars.o: ../../config.h
778 starwars.o: $(srcdir)/glut_roman.h
779 starwars.o: $(srcdir)/glutstroke.h
780 stonerview-move.o: ../../config.h
781 stonerview-move.o: $(srcdir)/stonerview-move.h
782 stonerview-move.o: $(srcdir)/stonerview-osc.h
783 stonerview.o: ../../config.h
784 stonerview.o: $(srcdir)/stonerview-move.h
785 stonerview-osc.o: ../../config.h
786 stonerview-osc.o: $(srcdir)/stonerview-osc.h
787 stonerview-view.o: ../../config.h
788 stonerview-view.o: $(srcdir)/stonerview-move.h
789 stonerview-view.o: $(srcdir)/stonerview-osc.h
790 superquadrics.o: ../../config.h
791 swim.o: $(srcdir)/atlantis.h
792 swim.o: ../../config.h
793 toast2.o: $(srcdir)/gllist.h
794 toaster_base.o: $(srcdir)/gllist.h
795 toaster_handle2.o: $(srcdir)/gllist.h
796 toaster_handle.o: $(srcdir)/gllist.h
797 toaster_jet.o: $(srcdir)/gllist.h
798 toaster_knob.o: $(srcdir)/gllist.h
799 toaster.o: $(srcdir)/gllist.h
800 toaster_slots.o: $(srcdir)/gllist.h
801 toaster_wing.o: $(srcdir)/gllist.h
802 toast.o: $(srcdir)/gllist.h
803 trackball.o: ../../config.h
804 trackball.o: $(srcdir)/trackball.h
805 tube.o: ../../config.h
806 tube.o: $(srcdir)/tube.h
807 tunnel_draw.o: ../../config.h
808 tunnel_draw.o: $(srcdir)/tunnel_draw.h
809 whale.o: $(srcdir)/atlantis.h
810 xlock-gl.o: ../../config.h
811 xpm-ximage.o: ../../config.h
812 xscreensaver-gl-helper.o: ../../config.h
813