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