http://ftp.x.org/contrib/applications/xscreensaver-2.23.tar.gz
[xscreensaver] / hacks / glx / Makefile.in
1 # hacks/glx/Makefile.in --- xscreensaver, Copyright (c) 1997 Jamie Zawinski.
2 # the `../../configure' script generates `hacks/glx/Makefile' from this file.
3
4 @SET_MAKE@
5 .SUFFIXES:
6 .SUFFIXES: .c .o
7
8 srcdir          = @srcdir@
9 VPATH           = @srcdir@
10
11 install_prefix  =
12 prefix          = @prefix@
13 exec_prefix     = @exec_prefix@
14 bindir          = @bindir@
15 mandir          = @mandir@
16 man1dir         = $(mandir)/man1
17 mansuffix       = 1
18
19 CC              = @CC@
20 CFLAGS          = @CFLAGS@
21 LDFLAGS         = @LDFLAGS@
22 DEFS            = -DSTANDALONE -DUSE_GL @DEFS@
23 LIBS            = @LIBS@
24
25 DEPEND          = @DEPEND@
26 DEPEND_FLAGS    = @DEPEND_FLAGS@
27 DEPEND_DEFINES  = @DEPEND_DEFINES@
28
29 SHELL           = /bin/sh
30 INSTALL         = @INSTALL@
31 INSTALL_PROGRAM = @INSTALL_PROGRAM@
32 INSTALL_DATA    = @INSTALL_DATA@
33 INSTALL_DIRS    = @INSTALL_DIRS@
34 HACKDIR         = @HACKDIR@
35
36 X_CFLAGS        = @X_CFLAGS@
37 X_LIBS          = @X_LIBS@
38 X_PRE_LIBS      = @X_PRE_LIBS@
39 X_EXTRA_LIBS    = @X_EXTRA_LIBS@
40
41 # Note: see comment in ../driver/Makefile.in for explanation of X_LIBS, etc.
42 #
43 HACK_LIBS       = $(LIBS) $(X_LIBS) $(X_PRE_LIBS) @GL_LIBS@ @HACK_LIBS@ \
44                   -lXt -lX11 -lXext $(X_EXTRA_LIBS) -lm
45
46 HACK_SRC        = $(srcdir)/..
47 HACK_BIN        = ..
48 UTILS_SRC       = $(HACK_SRC)/../utils
49 UTILS_BIN       = $(HACK_BIN)/../utils
50
51 INCLUDES        = -I$(srcdir) -I$(UTILS_SRC) -I$(HACK_SRC) -I../.. @INCLUDES@
52
53 UTIL_SRCS       = $(UTILS_SRC)/colors.c $(UTILS_SRC)/hsv.c \
54                   $(UTILS_SRC)/resources.c $(UTILS_SRC)/usleep.c \
55                   $(UTILS_SRC)/visual.c $(UTILS_SRC)/yarandom.c
56 UTIL_OBJS       = $(UTILS_SRC)/colors.o $(UTILS_SRC)/hsv.o \
57                   $(UTILS_SRC)/resources.o $(UTILS_SRC)/usleep.o \
58                   $(UTILS_SRC)/visual.o $(UTILS_SRC)/yarandom.o
59
60 SRCS            = atlantis.c buildlwo.c cage.c dolphin.c gears.c moebius.c \
61                   morph3d.c pipeobjs.c pipes.c rubik.c s1_1.c s1_2.c s1_3.c \
62                   s1_4.c s1_5.c s1_6.c s1_b.c shark.c sproingies.c \
63                   sproingiewrap.c stairs.c superquadrics.c swim.c whale.c \
64                   xlock-gl.c
65
66 OBJS            = atlantis.o buildlwo.o cage.o dolphin.o gears.o moebius.o \
67                   morph3d.o pipeobjs.o pipes.o rubik.o s1_1.o s1_2.o s1_3.o \
68                   s1_4.o s1_5.o s1_6.o s1_b.o shark.o sproingies.o \
69                   sproingiewrap.o stairs.o superquadrics.o swim.o whale.o \
70                   xlock-gl.o
71
72 GL_EXES         = cage gears moebius pipes sproingies stairs superquadrics \
73                   morph3d rubik atlantis
74 EXES            = @GL_EXES@
75
76 HACK_OBJS       = screenhack-gl.o xlock-gl.o $(HACK_BIN)/xlockmore.o \
77                   $(UTILS_BIN)/resources.o $(UTILS_BIN)/visual.o \
78                   $(UTILS_BIN)/usleep.o $(UTILS_BIN)/yarandom.o \
79                   $(UTILS_BIN)/hsv.o $(UTILS_BIN)/colors.o
80
81 HDRS            = atlantis.h buildlwo.h e_textures.h
82 MEN             = 
83 EXTRAS          = README Makefile.in
84
85 TARFILES        = $(SRCS) $(HDRS) $(MEN) $(EXTRAS)
86
87
88 all: $(EXES)
89
90 install:   install-program   install-man
91 uninstall: uninstall-program uninstall-man
92
93 install-strip:
94         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
95
96 install-program:
97         @exes="$(EXES)" ;                                               \
98         if [ ! -d $(HACKDIR) ]; then $(INSTALL_DIRS) $(HACKDIR) ; fi ;  \
99         for program in $$exes; do                                       \
100           echo $(INSTALL_PROGRAM) $$program $(HACKDIR)/$$program ;      \
101           $(INSTALL_PROGRAM) $$program $(HACKDIR)/$$program ;           \
102         done
103
104 install-man:
105         @men="$(MEN)" ;                                                 \
106         if [ ! -d $(man1dir) ]; then $(INSTALL_DIRS) $(man1dir) ; fi ;  \
107         for man in $$men; do                                            \
108           instname=`echo $$man | sed 's/\.man$$/\.$(mansuffix)/'` ;     \
109           echo $(INSTALL_DATA) $(srcdir)/$$man $(man1dir)/$$instname ;  \
110           $(INSTALL_DATA) $(srcdir)/$$man $(man1dir)/$$instname ;       \
111         done
112
113 uninstall-program:
114         @for program in $(EXES); do                                     \
115           echo rm -f $(HACKDIR)/$$program ;                             \
116           rm -f $(HACKDIR)/$$program ;                                  \
117         done
118
119 uninstall-man:
120         @men="$(MEN)" ;                                                 \
121         for man in $$men; do                                            \
122           instname=`echo $$man | sed 's/\.man$$/\.$(mansuffix)/'` ;     \
123           echo rm -f $(man1dir)/$$instname ;                            \
124           rm -f $(man1dir)/$$instname ;                                 \
125         done
126
127 clean:
128         -rm -f *.o a.out core $(EXES)
129
130 distclean: clean
131         -rm -f Makefile *~ "#"*
132
133 # Adds all current dependencies to Makefile
134 depend:
135         $(DEPEND) -s '# DO NOT DELETE: updated by make depend'              \
136         $(DEPEND_FLAGS) --                                                  \
137         $(INCLUDES) $(DEFS) $(DEPEND_DEFINES) $(CFLAGS) $(X_CFLAGS) --      \
138         $(SRCS)
139
140 # Adds some dependencies to Makefile.in -- not totally accurate, but pretty
141 # close.  This excludes dependencies on files in /usr/include, etc.  It tries
142 # to include only dependencies on files which are themselves a part of this
143 # package.
144 distdepend::
145         @echo updating dependencies in `pwd`/Makefile.in... ;               \
146         $(DEPEND) -w 0 -f -                                                 \
147         -s '# DO NOT DELETE: updated by make distdepend' $(DEPEND_FLAGS) -- \
148         $(INCLUDES) $(DEFS) $(DEPEND_DEFINES) $(CFLAGS) $(X_CFLAGS) --      \
149         $(SRCS) |                                                           \
150         (                                                                   \
151           awk '/^# .*Makefile.in ---/,/^# DO .*distdepend/' < Makefile.in ; \
152           sed -e 's@ \./@ @g;s@ /[^ ]*@@g;/^.*:$$/d'                        \
153               -e 's@\.\./\.\./utils@$$(UTILS_SRC)@g'                        \
154               -e 's@\.\./glx/@@g'                                           \
155               -e 's@ \.\./@ $$(HACK_SRC)/@g'                                \
156               -e 's@ \([^$$]\)@ $$(srcdir)/\1@g'                            \
157               -e 's@ $$(srcdir)/\(.*config.h\)@ \1@g'                       \
158               -e 's@ $$(HACK_SRC)/\(.*config.h\)@ ../\1@g' ;                \
159           echo ''                                                           \
160         ) > /tmp/distdepend.$$$$ &&                                         \
161         mv Makefile.in Makefile.in.bak &&                                   \
162         mv /tmp/distdepend.$$$$ Makefile.in
163
164 TAGS: tags
165 tags:
166         find $(srcdir) -name '*.[chly]' -print | xargs etags -a
167
168 echo_tarfiles:
169         @echo $(TARFILES)
170
171
172 # Rules for noticing when the objects from the utils directory are out of
173 # date with respect to their sources, and going and building them according
174 # to the rules in their own Makefile...
175 #
176 $(UTILS_BIN)/colors.o:          $(UTILS_SRC)/colors.c
177 $(UTILS_BIN)/hsv.o:             $(UTILS_SRC)/hsv.c
178 $(UTILS_BIN)/resources.o:       $(UTILS_SRC)/resources.c
179 $(UTILS_BIN)/usleep.o:          $(UTILS_SRC)/usleep.c
180 $(UTILS_BIN)/visual.o:          $(UTILS_SRC)/visual.c
181 $(UTILS_BIN)/yarandom.o:        $(UTILS_SRC)/yarandom.c
182
183 $(UTIL_OBJS):
184         cd $(UTILS_BIN) ; \
185         $(MAKE) $(@F) CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
186
187 $(HACK_BIN)/xlockmore.o: $(HACK_SRC)/xlockmore.c
188         cd $(HACK_BIN)  ; $(MAKE) $(@F) CC="$(CC)" CFLAGS="$(CFLAGS)"
189
190
191 # How we build object files in this directory.
192 .c.o:
193         $(CC) -c $(INCLUDES) $(DEFS) $(CFLAGS) $(X_CFLAGS) $<
194
195 # These hacks use a slightly-differently-compiled variant of screenhack.c.
196 # This is how to make the the other .o file from it.
197 #
198 screenhack-gl.o: $(HACK_SRC)/screenhack.c
199         $(CC) -o $@ -c $(INCLUDES) $(DEFS) $(CFLAGS) $(X_CFLAGS) \
200           -DXLOCKMORE  -DUSE_GL $(HACK_SRC)/screenhack.c
201
202 CC_HACK         = $(CC) $(LDFLAGS)
203
204 atlantis:       atlantis.o      $(HACK_OBJS) dolphin.o shark.o swim.o whale.o
205         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) dolphin.o shark.o swim.o whale.o \
206                                 $(HACK_LIBS)
207
208 cage:           cage.o          $(HACK_OBJS)
209         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
210
211 gears:          gears.o         $(HACK_OBJS)
212         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
213
214 moebius:        moebius.o               $(HACK_OBJS)
215         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
216
217 pipes:          pipes.o         $(HACK_OBJS) pipeobjs.o buildlwo.o
218         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) pipeobjs.o buildlwo.o \
219           $(HACK_LIBS)
220
221 superquadrics:  superquadrics.o $(HACK_OBJS)
222         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
223
224 morph3d:        morph3d.o       $(HACK_OBJS)
225         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
226
227 rubik:          rubik.o $(HACK_OBJS)
228         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
229
230 stairs:         stairs.o        $(HACK_OBJS)
231         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(HACK_LIBS)
232
233 SPROINGIES = sproingiewrap.o buildlwo.o \
234              s1_1.o s1_2.o s1_3.o s1_4.o s1_5.o s1_6.o s1_b.o
235 sproingies: sproingies.o $(HACK_OBJS) $(SPROINGIES)
236         $(CC_HACK) -o $@ $@.o   $(HACK_OBJS) $(SPROINGIES) $(HACK_LIBS)
237
238
239 ##############################################################################
240 #
241 # DO NOT DELETE: updated by make distdepend
242
243 atlantis.o: $(HACK_SRC)/xlockmore.h
244 atlantis.o: ../../config.h
245 atlantis.o: $(HACK_SRC)/xlockmoreI.h
246 atlantis.o: $(HACK_SRC)/screenhack.h
247 atlantis.o: $(UTILS_SRC)/yarandom.h
248 atlantis.o: $(UTILS_SRC)/usleep.h
249 atlantis.o: $(UTILS_SRC)/resources.h
250 atlantis.o: $(UTILS_SRC)/hsv.h
251 atlantis.o: $(UTILS_SRC)/colors.h
252 atlantis.o: $(UTILS_SRC)/grabscreen.h
253 atlantis.o: $(UTILS_SRC)/visual.h
254 atlantis.o: $(srcdir)/atlantis.h
255 buildlwo.o: $(srcdir)/buildlwo.h
256 cage.o: $(HACK_SRC)/xlockmore.h
257 cage.o: ../../config.h
258 cage.o: $(HACK_SRC)/xlockmoreI.h
259 cage.o: $(HACK_SRC)/screenhack.h
260 cage.o: $(UTILS_SRC)/yarandom.h
261 cage.o: $(UTILS_SRC)/usleep.h
262 cage.o: $(UTILS_SRC)/resources.h
263 cage.o: $(UTILS_SRC)/hsv.h
264 cage.o: $(UTILS_SRC)/colors.h
265 cage.o: $(UTILS_SRC)/grabscreen.h
266 cage.o: $(UTILS_SRC)/visual.h
267 cage.o: $(srcdir)/e_textures.h
268 dolphin.o: $(srcdir)/atlantis.h
269 gears.o: $(HACK_SRC)/xlockmore.h
270 gears.o: ../../config.h
271 gears.o: $(HACK_SRC)/xlockmoreI.h
272 gears.o: $(HACK_SRC)/screenhack.h
273 gears.o: $(UTILS_SRC)/yarandom.h
274 gears.o: $(UTILS_SRC)/usleep.h
275 gears.o: $(UTILS_SRC)/resources.h
276 gears.o: $(UTILS_SRC)/hsv.h
277 gears.o: $(UTILS_SRC)/colors.h
278 gears.o: $(UTILS_SRC)/grabscreen.h
279 gears.o: $(UTILS_SRC)/visual.h
280 moebius.o: $(HACK_SRC)/xlockmore.h
281 moebius.o: ../../config.h
282 moebius.o: $(HACK_SRC)/xlockmoreI.h
283 moebius.o: $(HACK_SRC)/screenhack.h
284 moebius.o: $(UTILS_SRC)/yarandom.h
285 moebius.o: $(UTILS_SRC)/usleep.h
286 moebius.o: $(UTILS_SRC)/resources.h
287 moebius.o: $(UTILS_SRC)/hsv.h
288 moebius.o: $(UTILS_SRC)/colors.h
289 moebius.o: $(UTILS_SRC)/grabscreen.h
290 moebius.o: $(UTILS_SRC)/visual.h
291 moebius.o: $(srcdir)/e_textures.h
292 morph3d.o: $(HACK_SRC)/xlockmore.h
293 morph3d.o: ../../config.h
294 morph3d.o: $(HACK_SRC)/xlockmoreI.h
295 morph3d.o: $(HACK_SRC)/screenhack.h
296 morph3d.o: $(UTILS_SRC)/yarandom.h
297 morph3d.o: $(UTILS_SRC)/usleep.h
298 morph3d.o: $(UTILS_SRC)/resources.h
299 morph3d.o: $(UTILS_SRC)/hsv.h
300 morph3d.o: $(UTILS_SRC)/colors.h
301 morph3d.o: $(UTILS_SRC)/grabscreen.h
302 morph3d.o: $(UTILS_SRC)/visual.h
303 pipeobjs.o: $(srcdir)/buildlwo.h
304 pipes.o: $(HACK_SRC)/xlockmore.h
305 pipes.o: ../../config.h
306 pipes.o: $(HACK_SRC)/xlockmoreI.h
307 pipes.o: $(HACK_SRC)/screenhack.h
308 pipes.o: $(UTILS_SRC)/yarandom.h
309 pipes.o: $(UTILS_SRC)/usleep.h
310 pipes.o: $(UTILS_SRC)/resources.h
311 pipes.o: $(UTILS_SRC)/hsv.h
312 pipes.o: $(UTILS_SRC)/colors.h
313 pipes.o: $(UTILS_SRC)/grabscreen.h
314 pipes.o: $(UTILS_SRC)/visual.h
315 pipes.o: $(srcdir)/buildlwo.h
316 rubik.o: $(HACK_SRC)/xlockmore.h
317 rubik.o: ../../config.h
318 rubik.o: $(HACK_SRC)/xlockmoreI.h
319 rubik.o: $(HACK_SRC)/screenhack.h
320 rubik.o: $(UTILS_SRC)/yarandom.h
321 rubik.o: $(UTILS_SRC)/usleep.h
322 rubik.o: $(UTILS_SRC)/resources.h
323 rubik.o: $(UTILS_SRC)/hsv.h
324 rubik.o: $(UTILS_SRC)/colors.h
325 rubik.o: $(UTILS_SRC)/grabscreen.h
326 rubik.o: $(UTILS_SRC)/visual.h
327 s1_1.o: $(srcdir)/buildlwo.h
328 s1_2.o: $(srcdir)/buildlwo.h
329 s1_3.o: $(srcdir)/buildlwo.h
330 s1_4.o: $(srcdir)/buildlwo.h
331 s1_5.o: $(srcdir)/buildlwo.h
332 s1_6.o: $(srcdir)/buildlwo.h
333 s1_b.o: $(srcdir)/buildlwo.h
334 shark.o: $(srcdir)/atlantis.h
335 sproingies.o: $(HACK_SRC)/xlockmoreI.h
336 sproingies.o: $(HACK_SRC)/screenhack.h
337 sproingies.o: ../../config.h
338 sproingies.o: $(UTILS_SRC)/yarandom.h
339 sproingies.o: $(UTILS_SRC)/usleep.h
340 sproingies.o: $(UTILS_SRC)/resources.h
341 sproingies.o: $(UTILS_SRC)/hsv.h
342 sproingies.o: $(UTILS_SRC)/colors.h
343 sproingies.o: $(UTILS_SRC)/grabscreen.h
344 sproingies.o: $(UTILS_SRC)/visual.h
345 sproingies.o: $(srcdir)/buildlwo.h
346 sproingiewrap.o: $(HACK_SRC)/xlockmore.h
347 sproingiewrap.o: ../../config.h
348 sproingiewrap.o: $(HACK_SRC)/xlockmoreI.h
349 sproingiewrap.o: $(HACK_SRC)/screenhack.h
350 sproingiewrap.o: $(UTILS_SRC)/yarandom.h
351 sproingiewrap.o: $(UTILS_SRC)/usleep.h
352 sproingiewrap.o: $(UTILS_SRC)/resources.h
353 sproingiewrap.o: $(UTILS_SRC)/hsv.h
354 sproingiewrap.o: $(UTILS_SRC)/colors.h
355 sproingiewrap.o: $(UTILS_SRC)/grabscreen.h
356 sproingiewrap.o: $(UTILS_SRC)/visual.h
357 stairs.o: $(HACK_SRC)/xlockmore.h
358 stairs.o: ../../config.h
359 stairs.o: $(HACK_SRC)/xlockmoreI.h
360 stairs.o: $(HACK_SRC)/screenhack.h
361 stairs.o: $(UTILS_SRC)/yarandom.h
362 stairs.o: $(UTILS_SRC)/usleep.h
363 stairs.o: $(UTILS_SRC)/resources.h
364 stairs.o: $(UTILS_SRC)/hsv.h
365 stairs.o: $(UTILS_SRC)/colors.h
366 stairs.o: $(UTILS_SRC)/grabscreen.h
367 stairs.o: $(UTILS_SRC)/visual.h
368 stairs.o: $(srcdir)/e_textures.h
369 superquadrics.o: $(HACK_SRC)/xlockmore.h
370 superquadrics.o: ../../config.h
371 superquadrics.o: $(HACK_SRC)/xlockmoreI.h
372 superquadrics.o: $(HACK_SRC)/screenhack.h
373 superquadrics.o: $(UTILS_SRC)/yarandom.h
374 superquadrics.o: $(UTILS_SRC)/usleep.h
375 superquadrics.o: $(UTILS_SRC)/resources.h
376 superquadrics.o: $(UTILS_SRC)/hsv.h
377 superquadrics.o: $(UTILS_SRC)/colors.h
378 superquadrics.o: $(UTILS_SRC)/grabscreen.h
379 superquadrics.o: $(UTILS_SRC)/visual.h
380 swim.o: $(HACK_SRC)/xlockmoreI.h
381 swim.o: $(HACK_SRC)/screenhack.h
382 swim.o: ../../config.h
383 swim.o: $(UTILS_SRC)/yarandom.h
384 swim.o: $(UTILS_SRC)/usleep.h
385 swim.o: $(UTILS_SRC)/resources.h
386 swim.o: $(UTILS_SRC)/hsv.h
387 swim.o: $(UTILS_SRC)/colors.h
388 swim.o: $(UTILS_SRC)/grabscreen.h
389 swim.o: $(UTILS_SRC)/visual.h
390 swim.o: $(srcdir)/atlantis.h
391 whale.o: $(srcdir)/atlantis.h
392 xlock-gl.o: $(HACK_SRC)/screenhack.h
393 xlock-gl.o: ../../config.h
394 xlock-gl.o: $(UTILS_SRC)/yarandom.h
395 xlock-gl.o: $(UTILS_SRC)/usleep.h
396 xlock-gl.o: $(UTILS_SRC)/resources.h
397 xlock-gl.o: $(UTILS_SRC)/hsv.h
398 xlock-gl.o: $(UTILS_SRC)/colors.h
399 xlock-gl.o: $(UTILS_SRC)/grabscreen.h
400 xlock-gl.o: $(UTILS_SRC)/visual.h
401 xlock-gl.o: $(HACK_SRC)/xlockmoreI.h
402