http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.04.2.tar.gz
[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 man1dir         = $(mandir)/man1
18 mansuffix       = 1
19
20 CC              = @CC@
21 CFLAGS          = @CFLAGS@
22 LDFLAGS         = @LDFLAGS@
23 DEFS            = -DSTANDALONE -DUSE_GL @DEFS@
24 LIBS            = @LIBS@
25
26 DEPEND          = @DEPEND@
27 DEPEND_FLAGS    = @DEPEND_FLAGS@
28 DEPEND_DEFINES  = @DEPEND_DEFINES@
29
30 SHELL           = /bin/sh
31 INSTALL         = @INSTALL@
32 INSTALL_PROGRAM = @INSTALL_PROGRAM@
33 INSTALL_DATA    = @INSTALL_DATA@
34 INSTALL_DIRS    = @INSTALL_DIRS@
35 HACKDIR         = @HACKDIR@
36
37 X_CFLAGS        = @X_CFLAGS@
38 X_LIBS          = @X_LIBS@
39 X_PRE_LIBS      = @X_PRE_LIBS@
40 X_EXTRA_LIBS    = @X_EXTRA_LIBS@
41 XMU_LIBS        = @XMU_LIBS@
42
43 # Note: see comment in ../../driver/Makefile.in for explanation of X_LIBS, etc.
44 #
45 HACK_PRE        = $(LIBS) $(X_LIBS)
46 HACK_POST     = $(X_PRE_LIBS) -lXt -lX11 $(XMU_LIBS) -lXext $(X_EXTRA_LIBS) -lm
47 HACK_POST2      = @GL_LIBS@ @HACK_LIBS@ $(HACK_POST)
48 HACK_LIBS       = $(HACK_PRE)                       $(HACK_POST2)
49 XPM_LIBS        = $(HACK_PRE)            @XPM_LIBS@ $(HACK_POST2)
50 GLE_LIBS        = $(HACK_PRE) @GLE_LIBS@ @XPM_LIBS@ $(HACK_POST2)
51
52 HACK_SRC        = $(srcdir)/..
53 HACK_BIN        = ..
54 UTILS_SRC       = $(HACK_SRC)/../utils
55 UTILS_BIN       = $(HACK_BIN)/../utils
56
57 INCLUDES        = -I. -I$(srcdir) -I$(UTILS_SRC) -I$(HACK_SRC) -I../.. @INCLUDES@
58
59 UTIL_SRCS       = $(UTILS_SRC)/colors.c $(UTILS_SRC)/hsv.c \
60                   $(UTILS_SRC)/resources.c $(UTILS_SRC)/usleep.c \
61                   $(UTILS_SRC)/visual.c $(UTILS_SRC)/visual-gl.c \
62                   $(UTILS_SRC)/yarandom.c
63 UTIL_OBJS       = $(UTILS_SRC)/colors.o $(UTILS_SRC)/hsv.o \
64                   $(UTILS_SRC)/resources.o $(UTILS_SRC)/usleep.o \
65                   $(UTILS_SRC)/visual.o $(UTILS_SRC)/visual-gl.o \
66                    $(UTILS_SRC)/yarandom.o
67
68 SRCS            = xscreensaver-gl-helper.c \
69                   atlantis.c b_draw.c b_lockglue.c b_sphere.c bubble3d.c \
70                   buildlwo.c cage.c dolphin.c gears.c lament.c moebius.c \
71                   morph3d.c pipeobjs.c pipes.c rubik.c s1_1.c s1_2.c s1_3.c \
72                   s1_4.c s1_5.c s1_6.c s1_b.c shark.c sproingies.c \
73                   sproingiewrap.c stairs.c superquadrics.c swim.c whale.c \
74                   xlock-gl.c fps.c xpm-ximage.c glplanet.c pulsar.c \
75                   extrusion.c extrusion-helix2.c extrusion-helix3.c \
76                   extrusion-helix4.c extrusion-joinoffset.c extrusion-screw.c \
77                   extrusion-taper.c extrusion-twistoid.c sierpinski3d.c \
78                   gflux.c stonerview.c stonerview-move.c stonerview-osc.c \
79                   stonerview-view.c starwars.c glut_stroke.c glut_swidth.c \
80                   gltext.c molecule.c dangerball.c sphere.c tube.c circuit.c \
81                   menger.c engine.c flipscreen3d.c font-ximage.c \
82                   grab-ximage.c glsnake.c boxed.c glforestfire.c sballs.c \
83                   cubenetic.c spheremonics.c marching.c lavalite.c rotator.c \
84                   trackball.c gltrackball.c queens.c
85
86 OBJS            = xscreensaver-gl-helper.o \
87                   atlantis.o b_draw.o b_lockglue.o b_sphere.o bubble3d.o \
88                   buildlwo.o cage.o dolphin.o gears.o lament.o moebius.o \
89                   morph3d.o pipeobjs.o pipes.o rubik.o s1_1.o s1_2.o s1_3.o \
90                   s1_4.o s1_5.o s1_6.o s1_b.o shark.o sproingies.o \
91                   sproingiewrap.o stairs.o superquadrics.o swim.o whale.o \
92                   xlock-gl.o fps.o xpm-ximage.o glplanet.o pulsar.o \
93                   extrusion.o extrusion-helix2.o extrusion-helix3.o \
94                   extrusion-helix4.o extrusion-joinoffset.o extrusion-screw.o \
95                   extrusion-taper.o extrusion-twistoid.o sierpinski3d.o \
96                   gflux.o stonerview.o stonerview-move.o stonerview-osc.o \
97                   stonerview-view.o starwars.o glut_stroke.o glut_swidth.o \
98                   gltext.o molecule.o dangerball.o sphere.o tube.o circuit.o \
99                   menger.o engine.o flipscreen3d.o font-ximage.o \
100                   grab-ximage.o glsnake.o boxed.o glforestfire.o sballs.o \
101                   cubenetic.o spheremonics.o marching.o lavalite.o rotator.o \
102                   trackball.o gltrackball.o queens.o
103
104 GL_EXES         = cage gears moebius pipes sproingies stairs superquadrics \
105                   morph3d rubik atlantis lament bubble3d glplanet pulsar \
106                   sierpinski3d gflux stonerview starwars gltext molecule \
107                   dangerball circuit menger engine flipscreen3d glsnake boxed \
108                   glforestfire sballs cubenetic spheremonics lavalite queens
109 GLE_EXES        = extrusion
110 GL_UTIL_EXES    = xscreensaver-gl-helper
111 HACK_EXES       = @GL_EXES@ @GLE_EXES@
112 GRAB_OBJS       = $(UTILS_BIN)/grabclient.o grab-ximage.o
113 EXES            = @GL_UTIL_EXES@ $(HACK_EXES)
114
115 HACK_OBJS       = screenhack-gl.o xlock-gl.o fps.o $(HACK_BIN)/xlockmore.o \
116                   $(UTILS_BIN)/resources.o $(UTILS_BIN)/visual.o \
117                   $(UTILS_BIN)/visual-gl.o $(UTILS_BIN)/usleep.o \
118                   $(UTILS_BIN)/yarandom.o $(UTILS_BIN)/hsv.o \
119                   $(UTILS_BIN)/colors.o
120
121 HDRS            = atlantis.h bubble3d.h buildlwo.h e_textures.h xpm-ximage.h \
122                   grab-ximage.h font-ximage.h tube.h sphere.h boxed.h \
123                   stonerview-move.h stonerview-osc.h glutstroke.h \
124                   glut_roman.h marching.h rotator.h trackball.h gltrackball.h
125 GL_MEN          = atlantis.man boxed.man bubble3d.man cage.man circuit.man \
126                   cubenetic.man dangerball.man engine.man extrusion.man \
127                   flipscreen3d.man gears.man gflux.man glforestfire.man \
128                   glplanet.man glsnake.man gltext.man lament.man lavalite.man \
129                   menger.man moebius.man molecule.man morph3d.man pipes.man \
130                   pulsar.man queens.man rubik.man sballs.man sierpinski3d.man \
131                   spheremonics.man sproingies.man stairs.man starwars.man \
132                   stonerview.man superquadrics.man xscreensaver-gl-helper.man
133 MEN             = @GL_MEN@
134 EXTRAS          = README Makefile.in
135
136 TARFILES        = $(SRCS) $(HDRS) $(MEN) $(EXTRAS)
137
138
139 default: all
140 all: $(EXES)
141
142 install:   install-program   install-man
143 uninstall: uninstall-program uninstall-man
144
145 install-strip:
146         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
147
148 # the hacks, in $HACKDIR
149 install-program:: $(EXES)
150         @exes="$(HACK_EXES)" ;                                          \
151          idir="$(install_prefix)$(HACKDIR)" ;                           \
152          if [ "$$exes" != "" ]; then                                    \
153            if [ ! -d $$idir ]; then                                     \
154              $(INSTALL_DIRS) $$idir ;                                   \
155            fi ;                                                         \
156            for program in $$exes; do                                    \
157              echo $(INSTALL_PROGRAM) $$program $$idir/$$program ;       \
158                   $(INSTALL_PROGRAM) $$program $$idir/$$program ;       \
159            done ;                                                       \
160          fi
161
162 # the xscreensaver-gl-helper program, in $bindir
163 install-program:: $(EXES)
164         @exes="@GL_UTIL_EXES@" ;                                        \
165          idir="$(install_prefix)$(bindir)" ;                            \
166          if [ "$$exes" != "" ]; then                                    \
167            if [ ! -d $$idir ]; then                                     \
168              $(INSTALL_DIRS) $$idir ;                                   \
169            fi ;                                                         \
170            for program in $$exes; do                                    \
171              echo $(INSTALL_PROGRAM) $$program $$idir/$$program ;       \
172                   $(INSTALL_PROGRAM) $$program $$idir/$$program ;       \
173            done ;                                                       \
174          fi
175
176 install-man: $(MEN)
177         @men="$(MEN)" ;                                                 \
178          idir="$(install_prefix)$(man1dir)" ;                           \
179          if [ ! -d $$idir ]; then                                       \
180           $(INSTALL_DIRS) $$idir ;                                      \
181          fi ;                                                           \
182          for man in $$men; do                                           \
183            instname=`echo $$man | sed 's/\.man$$/\.$(mansuffix)/'` ;    \
184            echo $(INSTALL_DATA) $(srcdir)/$$man $$idir/$$instname ;     \
185                 $(INSTALL_DATA) $(srcdir)/$$man $$idir/$$instname ;     \
186          done
187
188 # the hacks, in $HACKDIR
189 uninstall-program::
190         @exes="$(HACK_EXES)" ;                                          \
191          idir="$(install_prefix)$(HACKDIR)" ;                           \
192          for program in $$exes; do                                      \
193            echo rm -f $$idir/$$program ;                                \
194                 rm -f $$idir/$$program ;                                \
195          done
196
197 # the xscreensaver-gl-helper program, in $bindir
198 uninstall-program::
199         @exes="$(GL_UTIL_EXES)" ;                                       \
200          idir="$(install_prefix)$(bindir)" ;                            \
201          for program in $$exes; do                                      \
202            echo rm -f $$idir/$$program ;                                \
203                 rm -f $$idir/$$program ;                                \
204         done
205
206 uninstall-man:
207         @men="$(MEN)" ;                                                 \
208          idir="$(install_prefix)$(man1dir)" ;                           \
209          for man in $$men; do                                           \
210            instname=`echo $$man | sed 's/\.man$$/\.$(mansuffix)/'` ;    \
211            echo rm -f $$idir/$$instname ;                               \
212                 rm -f $$idir/$$instname ;                               \
213         done
214
215 clean:
216         -rm -f *.o a.out core $(EXES) molecules.h
217
218 distclean: clean
219         -rm -f Makefile TAGS *~ "#"*
220
221 # Adds all current dependencies to Makefile
222 depend:
223         $(DEPEND) -s '# DO NOT DELETE: updated by make depend'              \
224         $(DEPEND_FLAGS) --                                                  \
225         $(INCLUDES) $(DEFS) $(DEPEND_DEFINES) $(CFLAGS) $(X_CFLAGS) --      \
226         $(SRCS)
227
228 # Adds some dependencies to Makefile.in -- not totally accurate, but pretty
229 # close.  This excludes dependencies on files in /usr/include, etc.  It tries
230 # to include only dependencies on files which are themselves a part of this
231 # package.
232 distdepend:: molecules.h
233         @echo updating dependencies in `pwd`/Makefile.in... ;               \
234         $(DEPEND) -w 0 -f -                                                 \
235         -s '# DO NOT DELETE: updated by make distdepend' $(DEPEND_FLAGS) -- \
236         $(INCLUDES) $(DEFS) $(DEPEND_DEFINES) $(CFLAGS) $(X_CFLAGS) --      \
237         $(SRCS) 2>/dev/null |                                               \
238         sort -d |                                                           \
239         (                                                                   \
240           awk '/^# .*Makefile.in ---/,/^# DO .*distdepend/' < Makefile.in ; \
241           sed -e '/^#.*/d'                                                  \
242               -e 's@ \./@ @g;s@ /[^ ]*@@g;/^.*:$$/d'                        \
243               -e 's@\.\./\.\./utils@$$(UTILS_SRC)@g'                        \
244               -e 's@\.\./glx/@@g'                                           \
245               -e 's@ \.\./@ $$(HACK_SRC)/@g'                                \
246               -e 's@ \([^$$]\)@ $$(srcdir)/\1@g'                            \
247               -e 's@ $$(srcdir)/\(.*config.h\)@ \1@g'                       \
248               -e 's@ $$(HACK_SRC)/\(.*config.h\)@ ../\1@g'                  \
249               -e 's@ $$(srcdir)/\(.*molecules.h\)@ \1@g' ;                  \
250           echo ''                                                           \
251         ) > /tmp/distdepend.$$$$ &&                                         \
252         mv Makefile.in Makefile.in.bak &&                                   \
253         mv /tmp/distdepend.$$$$ Makefile.in
254
255
256 TAGS: tags
257 tags:
258         find $(srcdir) -name '*.[chly]' -print | xargs etags -a
259
260 echo_tarfiles:
261         @echo $(TARFILES)
262
263 check_men:
264         @badmen="" ;                                                    \
265          for exe in $(EXES); do                                         \
266            if ! [ -f $(srcdir)/$$exe.man ]; then                        \
267              badmen="$$badmen $$exe" ;                                  \
268            fi ;                                                         \
269          done ;                                                         \
270          if [ -n "$$badmen" ]; then                                     \
271            echo "" ;                                                    \
272            echo "Warning: The following programs have no manuals:" ;    \
273            echo "" ;                                                    \
274            for m in $$badmen ; do                                       \
275              echo "    $$m" ;                                           \
276            done ;                                                       \
277          fi
278
279 check_xml:
280         @badxml="" ;                                                    \
281          for exe in $(EXES); do                                         \
282            if ! [ -f $(srcdir)/../config/$$exe.xml -o                   \
283                   "$$exe" = xscreensaver-gl-helper ]; then              \
284              badxml="$$badxml $$exe" ;                                  \
285            fi ;                                                         \
286          done ;                                                         \
287          if [ -n "$$badxml" ]; then                                     \
288            echo "" ;                                                    \
289            echo "Warning: The following programs have no configurators:" ; \
290            echo "" ;                                                    \
291            for m in $$badxml ; do                                       \
292              echo "    $$m" ;                                           \
293            done ;                                                       \
294            echo "" ;                                                    \
295          fi
296
297 distdepend:: check_men check_xml
298
299
300
301
302 # Rules for noticing when the objects from the utils directory are out of
303 # date with respect to their sources, and going and building them according
304 # to the rules in their own Makefile...
305 #
306 $(UTILS_BIN)/colors.o:          $(UTILS_SRC)/colors.c
307 $(UTILS_BIN)/hsv.o:             $(UTILS_SRC)/hsv.c
308 $(UTILS_BIN)/resources.o:       $(UTILS_SRC)/resources.c
309 $(UTILS_BIN)/usleep.o:          $(UTILS_SRC)/usleep.c
310 $(UTILS_BIN)/visual.o:          $(UTILS_SRC)/visual.c
311 $(UTILS_BIN)/visual-gl.o:       $(UTILS_SRC)/visual-gl.c
312 $(UTILS_BIN)/yarandom.o:        $(UTILS_SRC)/yarandom.c
313
314 $(UTIL_OBJS):
315         cd $(UTILS_BIN) ; \
316         $(MAKE) $(@F) CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
317
318 $(HACK_BIN)/xlockmore.o: $(HACK_SRC)/xlockmore.c
319         cd $(HACK_BIN)  ; $(MAKE) $(@F) CC="$(CC)" CFLAGS="$(CFLAGS)"
320
321
322 # How we build object files in this directory.
323 .c.o:
324         $(CC) -c $(INCLUDES) $(DEFS) $(CFLAGS) $(X_CFLAGS) $<
325
326
327 # How to build the "xscreensaver-gl-helper" program, that lets the daemon
328 # know which visual is the right one for GL programs.
329 #
330 HELPER_OBJS = xscreensaver-gl-helper.o $(UTILS_BIN)/visual-gl.o \
331               $(UTILS_BIN)/visual.o $(UTILS_BIN)/resources.o
332 xscreensaver-gl-helper: $(HELPER_OBJS)
333         $(CC) $(LDFLAGS) -o $@ $(HELPER_OBJS) $(LIBS) $(X_LIBS) $(HACK_POST2)
334
335
336 # These hacks use a slightly-differently-compiled variant of screenhack.c.
337 # This is how to make the the other .o file from it.
338 #
339 screenhack-gl.o: $(HACK_SRC)/screenhack.c
340         $(CC) -o $@ -c $(INCLUDES) $(DEFS) $(CFLAGS) $(X_CFLAGS) \
341           -DXLOCKMORE  -DUSE_GL $(HACK_SRC)/screenhack.c
342
343 CC_HACK         = $(CC) $(LDFLAGS)
344
345 TRACK_OBJS=rotator.o trackball.o gltrackball.o
346
347 ATLANTIS_OBJS = $(HACK_OBJS) dolphin.o shark.o swim.o whale.o xpm-ximage.o
348 atlantis:       atlantis.o      $(ATLANTIS_OBJS)
349         $(CC_HACK) -o $@ $@.o   $(ATLANTIS_OBJS) $(HACK_LIBS) $(XPM_LIBS)
350
351 cage:           cage.o          $(HACK_OBJS)
352         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
353
354 gears:          gears.o         $(HACK_OBJS) $(TRACK_OBJS)
355         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(TRACK_OBJS) $(HACK_LIBS)
356
357 moebius:        moebius.o       $(TRACK_OBJS) $(HACK_OBJS)
358         $(CC_HACK) -o $@ $@.o   $(TRACK_OBJS) $(HACK_OBJS) $(HACK_LIBS)
359
360 pipes:          pipes.o         $(HACK_OBJS) pipeobjs.o buildlwo.o
361         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) pipeobjs.o buildlwo.o \
362           $(HACK_LIBS)
363
364 superquadrics:  superquadrics.o $(HACK_OBJS)
365         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
366
367 morph3d:        morph3d.o       $(HACK_OBJS)
368         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
369
370 rubik:          rubik.o $(HACK_OBJS)
371         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
372
373 stairs:         stairs.o        $(HACK_OBJS)
374         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
375
376 SPROINGIES = sproingiewrap.o buildlwo.o \
377              s1_1.o s1_2.o s1_3.o s1_4.o s1_5.o s1_6.o s1_b.o
378 sproingies: sproingies.o $(HACK_OBJS) $(SPROINGIES)
379         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(SPROINGIES) $(HACK_LIBS)
380
381 lament:         lament.o        $(TRACK_OBJS) xpm-ximage.o $(HACK_OBJS)
382         $(CC_HACK) -o $@ $@.o   $(TRACK_OBJS) xpm-ximage.o $(HACK_OBJS) $(XPM_LIBS)
383
384 B3D = b_sphere.o b_draw.o b_lockglue.o
385 bubble3d:       bubble3d.o      $(HACK_OBJS) $(B3D)
386         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(B3D) $(HACK_LIBS)
387
388 PLANETHACKS=sphere.o xpm-ximage.o $(TRACK_OBJS)
389 glplanet:       glplanet.o      $(PLANETHACKS) $(HACK_OBJS)
390         $(CC_HACK) -o $@ $@.o   $(PLANETHACKS) $(HACK_OBJS) $(XPM_LIBS)
391
392 pulsar:         pulsar.o        $(HACK_OBJS) xpm-ximage.o
393         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) xpm-ximage.o $(HACK_LIBS) $(XPM_LIBS)
394
395 EXTRUSION_OBJS=extrusion.o extrusion-helix2.o extrusion-helix3.o    \
396         extrusion-helix4.o extrusion-joinoffset.o extrusion-screw.o \
397         extrusion-taper.o extrusion-twistoid.o xpm-ximage.o $(TRACK_OBJS)
398 extrusion:      $(EXTRUSION_OBJS) $(HACK_OBJS)
399         $(CC_HACK) -o $@ $(EXTRUSION_OBJS) $(HACK_OBJS) $(XPM_LIBS) $(GLE_LIBS)
400
401 sierpinski3d:   sierpinski3d.o  $(HACK_OBJS) $(TRACK_OBJS)
402         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(TRACK_OBJS) $(HACK_LIBS)
403
404 gflux:          gflux.o         $(HACK_OBJS) $(GRAB_OBJS)
405         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(GRAB_OBJS) $(HACK_LIBS)
406
407 SW_OBJS=starwars.o glut_stroke.o glut_swidth.o
408 starwars:       $(SW_OBJS) $(HACK_OBJS)
409         $(CC_HACK) -o $@ $(SW_OBJS) $(HACK_OBJS) $(HACK_LIBS)
410
411 GLT_OBJS=gltext.o glut_stroke.o glut_swidth.o tube.o $(TRACK_OBJS)
412 gltext: $(GLT_OBJS) $(HACK_OBJS)
413         $(CC_HACK) -o $@ $(GLT_OBJS) $(HACK_OBJS) $(HACK_LIBS)
414
415 DB_OBJS=sphere.o tube.o $(TRACK_OBJS)
416 dangerball:     dangerball.o    $(DB_OBJS) $(HACK_OBJS)
417         $(CC_HACK) -o $@ $@.o   $(DB_OBJS) $(HACK_OBJS) $(HACK_LIBS)
418
419 circuit:        circuit.o       $(HACK_OBJS) font-ximage.o
420         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) font-ximage.o $(HACK_LIBS)
421
422 menger:         menger.o        $(HACK_OBJS) $(TRACK_OBJS)
423         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(TRACK_OBJS) $(HACK_LIBS)
424
425 engine:         engine.o        $(HACK_OBJS)
426         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
427
428 flipscreen3d:   flipscreen3d.o  $(HACK_OBJS) $(GRAB_OBJS)
429         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(GRAB_OBJS) $(HACK_LIBS)
430
431 glsnake:        glsnake.o       $(HACK_OBJS)
432         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
433
434 boxed:          boxed.o         $(HACK_OBJS)
435         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
436
437 glforestfire:   glforestfire.o  $(HACK_OBJS) xpm-ximage.o
438         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) xpm-ximage.o $(XPM_LIBS)
439
440 sballs:         sballs.o        $(HACK_OBJS) xpm-ximage.o
441         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) xpm-ximage.o $(XPM_LIBS)
442
443 cubenetic:      cubenetic.o     $(HACK_OBJS) $(TRACK_OBJS)
444         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(TRACK_OBJS) $(HACK_LIBS)
445
446 spheremonics:   spheremonics.o  $(HACK_OBJS) $(TRACK_OBJS)
447         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(TRACK_OBJS) $(HACK_LIBS)
448
449 LLOBJS=marching.o xpm-ximage.o $(TRACK_OBJS) $(HACK_OBJS)
450 lavalite:       lavalite.o      $(LLOBJS)
451         $(CC_HACK) -o $@ $@.o   $(LLOBJS)  $(XPM_LIBS)
452
453 queens:         queens.o        $(TRACK_OBJS) $(HACK_OBJS)
454         $(CC_HACK) -o $@ $@.o   $(TRACK_OBJS) $(HACK_OBJS) $(HACK_LIBS)
455
456 # This one works differently (it's not xlock-like.)
457 #
458 STONER_OBJS=stonerview.o stonerview-move.o stonerview-osc.o stonerview-view.o \
459             $(UTILS_BIN)/yarandom.o
460 stonerview:     $(STONER_OBJS)
461         $(CC_HACK) -o $@ $(STONER_OBJS) $(HACK_LIBS)
462
463 molecules.h:
464         @tmp=molecules.h.$$$$ ;                                         \
465         rm -f $$tmp ;                                                   \
466         echo "building molecules.h from $(HACK_SRC)/images/molecules/*.pdb" ; \
467         for f in $(HACK_SRC)/images/molecules/*.pdb ; do                \
468           $(SHELL) $(UTILS_SRC)/ad2c "$$f" |                            \
469             sed 's/",$$/\\n"/' >> $$tmp ;                               \
470           echo ',' >> $$tmp ;                                           \
471         done ;                                                          \
472         mv $$tmp molecules.h
473
474 MOLECULEOBJS=sphere.o tube.o $(TRACK_OBJS)
475 molecule:       molecule.o      $(MOLECULEOBJS) $(HACK_OBJS)
476         $(CC_HACK) -o $@ $@.o   $(MOLECULEOBJS) $(HACK_OBJS) $(HACK_LIBS)
477
478 dnalogo:        dnalogo.o       tube.o $(HACK_OBJS)
479         $(CC_HACK) -o $@ $@.o   tube.o $(HACK_OBJS) $(HACK_LIBS)
480
481 ##############################################################################
482 #
483 # DO NOT DELETE: updated by make distdepend
484
485 atlantis.o: $(srcdir)/atlantis.h
486 atlantis.o: ../../config.h
487 atlantis.o: $(HACK_SRC)/images/sea-texture.xpm
488 atlantis.o: $(srcdir)/xpm-ximage.h
489 b_draw.o: $(srcdir)/bubble3d.h
490 b_draw.o: ../../config.h
491 b_lockglue.o: $(srcdir)/bubble3d.h
492 b_lockglue.o: ../../config.h
493 boxed.o: $(srcdir)/boxed.h
494 boxed.o: ../../config.h
495 b_sphere.o: $(srcdir)/bubble3d.h
496 b_sphere.o: ../../config.h
497 bubble3d.o: $(srcdir)/bubble3d.h
498 bubble3d.o: ../../config.h
499 buildlwo.o: $(srcdir)/buildlwo.h
500 cage.o: ../../config.h
501 cage.o: $(srcdir)/e_textures.h
502 circuit.o: ../../config.h
503 circuit.o: $(srcdir)/font-ximage.h
504 cubenetic.o: ../../config.h
505 cubenetic.o: $(srcdir)/gltrackball.h
506 cubenetic.o: $(srcdir)/rotator.h
507 dangerball.o: ../../config.h
508 dangerball.o: $(srcdir)/gltrackball.h
509 dangerball.o: $(srcdir)/rotator.h
510 dangerball.o: $(srcdir)/sphere.h
511 dangerball.o: $(srcdir)/tube.h
512 dolphin.o: $(srcdir)/atlantis.h
513 engine.o: ../../config.h
514 extrusion-helix2.o: ../../config.h
515 extrusion-helix3.o: ../../config.h
516 extrusion-helix4.o: ../../config.h
517 extrusion-joinoffset.o: ../../config.h
518 extrusion.o: ../../config.h
519 extrusion.o: $(srcdir)/rotator.h
520 extrusion.o: $(srcdir)/xpm-ximage.h
521 extrusion-screw.o: ../../config.h
522 extrusion-taper.o: ../../config.h
523 extrusion-twistoid.o: ../../config.h
524 flipscreen3d.o: ../../config.h
525 flipscreen3d.o: $(srcdir)/grab-ximage.h
526 font-ximage.o: ../../config.h
527 fps.o: ../../config.h
528 gears.o: ../../config.h
529 gears.o: $(srcdir)/gltrackball.h
530 gears.o: $(srcdir)/rotator.h
531 gflux.o: ../../config.h
532 gflux.o: $(srcdir)/grab-ximage.h
533 glforestfire.o: ../../config.h
534 glforestfire.o: $(HACK_SRC)/images/ground.xpm
535 glforestfire.o: $(HACK_SRC)/images/tree.xpm
536 glforestfire.o: $(srcdir)/xpm-ximage.h
537 glplanet.o: ../../config.h
538 glplanet.o: $(srcdir)/gltrackball.h
539 glplanet.o: $(HACK_SRC)/images/earth.xpm
540 glplanet.o: $(srcdir)/rotator.h
541 glplanet.o: $(srcdir)/sphere.h
542 glplanet.o: $(srcdir)/xpm-ximage.h
543 glsnake.o: ../../config.h
544 gltext.o: ../../config.h
545 gltext.o: $(srcdir)/gltrackball.h
546 gltext.o: $(srcdir)/glut_roman.h
547 gltext.o: $(srcdir)/glutstroke.h
548 gltext.o: $(srcdir)/rotator.h
549 gltext.o: $(srcdir)/tube.h
550 gltrackball.o: ../../config.h
551 gltrackball.o: $(srcdir)/gltrackball.h
552 gltrackball.o: $(srcdir)/trackball.h
553 glut_stroke.o: ../../config.h
554 glut_stroke.o: $(srcdir)/glutstroke.h
555 glut_swidth.o: ../../config.h
556 glut_swidth.o: $(srcdir)/glutstroke.h
557 grab-ximage.o: ../../config.h
558 lament.o: ../../config.h
559 lament.o: $(srcdir)/gltrackball.h
560 lament.o: $(HACK_SRC)/images/lament.xpm
561 lament.o: $(srcdir)/rotator.h
562 lament.o: $(srcdir)/xpm-ximage.h
563 lavalite.o: ../../config.h
564 lavalite.o: $(srcdir)/gltrackball.h
565 lavalite.o: $(srcdir)/marching.h
566 lavalite.o: $(srcdir)/rotator.h
567 lavalite.o: $(srcdir)/xpm-ximage.h
568 marching.o: ../../config.h
569 marching.o: $(srcdir)/marching.h
570 menger.o: ../../config.h
571 menger.o: $(srcdir)/gltrackball.h
572 menger.o: $(srcdir)/rotator.h
573 moebius.o: ../../config.h
574 moebius.o: $(srcdir)/e_textures.h
575 moebius.o: $(srcdir)/gltrackball.h
576 moebius.o: $(srcdir)/rotator.h
577 molecule.o: ../../config.h
578 molecule.o: $(srcdir)/gltrackball.h
579 molecule.o: molecules.h
580 molecule.o: $(srcdir)/rotator.h
581 molecule.o: $(srcdir)/sphere.h
582 molecule.o: $(srcdir)/tube.h
583 morph3d.o: ../../config.h
584 pipeobjs.o: $(srcdir)/buildlwo.h
585 pipes.o: $(srcdir)/buildlwo.h
586 pipes.o: ../../config.h
587 pulsar.o: ../../config.h
588 pulsar.o: $(srcdir)/xpm-ximage.h
589 queens.o: ../../config.h
590 queens.o: $(srcdir)/gltrackball.h
591 rotator.o: ../../config.h
592 rotator.o: $(srcdir)/rotator.h
593 rubik.o: ../../config.h
594 s1_1.o: $(srcdir)/buildlwo.h
595 s1_2.o: $(srcdir)/buildlwo.h
596 s1_3.o: $(srcdir)/buildlwo.h
597 s1_4.o: $(srcdir)/buildlwo.h
598 s1_5.o: $(srcdir)/buildlwo.h
599 s1_6.o: $(srcdir)/buildlwo.h
600 s1_b.o: $(srcdir)/buildlwo.h
601 sballs.o: ../../config.h
602 sballs.o: $(HACK_SRC)/images/sball-bg.xpm
603 sballs.o: $(HACK_SRC)/images/sball.xpm
604 sballs.o: $(srcdir)/xpm-ximage.h
605 shark.o: $(srcdir)/atlantis.h
606 sierpinski3d.o: ../../config.h
607 sierpinski3d.o: $(srcdir)/gltrackball.h
608 sierpinski3d.o: $(srcdir)/rotator.h
609 spheremonics.o: ../../config.h
610 spheremonics.o: $(srcdir)/gltrackball.h
611 spheremonics.o: $(srcdir)/rotator.h
612 sphere.o: ../../config.h
613 sproingies.o: $(srcdir)/buildlwo.h
614 sproingies.o: ../../config.h
615 sproingiewrap.o: ../../config.h
616 stairs.o: ../../config.h
617 stairs.o: $(srcdir)/e_textures.h
618 starwars.o: ../../config.h
619 starwars.o: $(srcdir)/glut_roman.h
620 starwars.o: $(srcdir)/glutstroke.h
621 stonerview-move.o: ../../config.h
622 stonerview-move.o: $(srcdir)/stonerview-move.h
623 stonerview-move.o: $(srcdir)/stonerview-osc.h
624 stonerview.o: ../../config.h
625 stonerview.o: $(srcdir)/stonerview-move.h
626 stonerview-osc.o: ../../config.h
627 stonerview-osc.o: $(srcdir)/stonerview-osc.h
628 stonerview-view.o: ../../config.h
629 stonerview-view.o: $(srcdir)/stonerview-move.h
630 stonerview-view.o: $(srcdir)/stonerview-osc.h
631 superquadrics.o: ../../config.h
632 swim.o: $(srcdir)/atlantis.h
633 swim.o: ../../config.h
634 trackball.o: ../../config.h
635 trackball.o: $(srcdir)/trackball.h
636 tube.o: ../../config.h
637 tube.o: $(srcdir)/tube.h
638 whale.o: $(srcdir)/atlantis.h
639 xlock-gl.o: ../../config.h
640 xpm-ximage.o: ../../config.h
641 xscreensaver-gl-helper.o: ../../config.h
642