http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.01.tar.gz
[xscreensaver] / driver / Makefile.in
1 # driver/Makefile.in --- xscreensaver, Copyright (c) 1997-1999 Jamie Zawinski.
2 # the `../configure' script generates `driver/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 GNOME_DATADIR   = @GNOME_DATADIR@
20 GNOME_CCDIR_1   = $(GNOME_DATADIR)/control-center/Desktop
21 GNOME_CCDIR_2   = $(GNOME_DATADIR)/control-center/capplets
22 GNOME_PANELDIR  = $(GNOME_DATADIR)/gnome/apps/Settings/Desktop
23 GNOME_ICONDIR   = $(GNOME_DATADIR)/pixmaps
24 GNOME_BINDIR    = $(bindir)
25 HACK_CONF_DIR   = @HACK_CONF_DIR@
26
27 CC              = @CC@
28 CFLAGS          = @CFLAGS@
29 LDFLAGS         = @LDFLAGS@
30 DEFS            = @DEFS@
31 SUBP_DEFS       = $(DEFS) -DDEFAULT_PATH_PREFIX='"@HACKDIR@"'
32 GTK_DEFS        = $(DEFS) -DDEFAULT_ICONDIR='"$(GNOME_ICONDIR)"'
33 CONF_DEFS       = -DHACK_CONFIGURATION_PATH='"$(HACK_CONF_DIR)"'
34
35 LIBS            = @LIBS@
36 PERL            = @PERL@
37
38 DEPEND          = @DEPEND@
39 DEPEND_FLAGS    = @DEPEND_FLAGS@
40 DEPEND_DEFINES  = @DEPEND_DEFINES@
41
42 SHELL           = /bin/sh
43 INSTALL         = @INSTALL@
44 SUID_FLAGS      = -o root -m 4755
45 INSTALL_PROGRAM = @INSTALL_PROGRAM@
46 INSTALL_SCRIPT  = @INSTALL_SCRIPT@
47 INSTALL_SETUID  = @INSTALL_SETUID@
48 INSTALL_DATA    = @INSTALL_DATA@
49 INSTALL_DIRS    = @INSTALL_DIRS@
50
51 X_CFLAGS        = @X_CFLAGS@
52 X_LIBS          = @X_LIBS@
53 X_PRE_LIBS      = @X_PRE_LIBS@
54 X_EXTRA_LIBS    = @X_EXTRA_LIBS@
55 XMU_LIBS        = @XMU_LIBS@
56
57 # Note:
58 #
59 # X_LIBS would more properly be called X_LDFLAGS (it contains the -L args.)
60 # X_PRE_LIBS contains extra libraries you have to link against on some systems,
61 #         and that must come before -lX11.  (e.g., -lSM and -lICE.)
62 # X_EXTRA_LIBS contains extra libraries needed by X that aren't a part of X.
63 #         (e.g., -lsocket, -lnsl, etc.)
64 #
65 # I think (but am not totally sure) that LIBS is also really "LDFLAGS".
66 #
67 # SAVER_LIBS is the link line for "xscreensaver", and
68 # CMD_LIBS is the link line for "xscreensaver-command".
69 # GETIMG_LIBS is the link line for "xscreensaver-getimage".
70
71
72 AD_DIR          = @APPDEFAULTS@
73 PAM_DIR         = /etc/pam.d
74 PAM_CONF        = /etc/pam.conf
75
76 UTILS_SRC       = $(srcdir)/../utils
77 UTILS_BIN       = ../utils
78
79 INCLUDES        = -I. -I$(srcdir) -I$(UTILS_SRC) -I.. @INCLUDES@
80
81 MOTIF_SRCS      = demo-Xm.c demo-Xm-widgets.c
82 MOTIF_OBJS      = demo-Xm.o demo-Xm-widgets.o
83
84 GTK_SRCS        = demo-Gtk.c demo-Gtk-conf.c \
85                   demo-Gtk-widgets.c demo-Gtk-support.c
86 GTK_OBJS        = demo-Gtk.o demo-Gtk-conf.o \
87                   demo-Gtk-widgets.o demo-Gtk-support.o
88
89 PWENT_SRCS      = passwd-pwent.c
90 PWENT_OBJS      = passwd-pwent.o
91
92 KERBEROS_SRCS   = passwd-kerberos.c
93 KERBEROS_OBJS   = passwd-kerberos.o
94
95 PAM_SRCS        = passwd-pam.c
96 PAM_OBJS        = passwd-pam.o
97
98 LOCK_SRCS_1     = lock.c passwd.c
99 LOCK_OBJS_1     = lock.o passwd.o
100 NOLOCK_SRCS_1   = lock.c
101 NOLOCK_OBJS_1   = lock.o
102
103 TEST_SRCS       = test-passwd.c test-uid.c test-xdpms.c test-grab.c \
104                   test-apm.c test-fade.c xdpyinfo.c
105 TEST_EXES       = test-passwd   test-uid   test-xdpms   test-grab \
106                   test-apm   test-fade   xdpyinfo
107
108 MOTIF_LIBS      = @MOTIF_LIBS@ @XPM_LIBS@ $(XMU_LIBS)
109 GTK_LIBS        = @GTK_LIBS@ $(XMU_LIBS)
110 XML_LIBS        = @XML_LIBS@
111
112 XDPMS_LIBS      = @XDPMS_LIBS@
113
114 PASSWD_SRCS     = @PASSWD_SRCS@
115 PASSWD_OBJS     = @PASSWD_OBJS@
116 PASSWD_LIBS     = @PASSWD_LIBS@
117
118 LOCK_SRCS       = @LOCK_SRCS@
119 LOCK_OBJS       = @LOCK_OBJS@
120
121 XMU_SRCS        = @XMU_SRCS@
122 XMU_OBJS        = @XMU_OBJS@
123
124 GL_SRCS         = @SAVER_GL_SRCS@
125 GL_OBJS         = @SAVER_GL_OBJS@
126 GL_LIBS         = @SAVER_GL_LIBS@
127
128 ICON_SRC        = $(UTILS_SRC)/images
129 LOGO            = $(ICON_SRC)/logo-50.xpm
130 GNOME_ICONS     = $(ICON_SRC)/screensaver-*.xpm
131
132 DEMO_UTIL_SRCS  = $(UTILS_SRC)/resources.c $(UTILS_SRC)/usleep.c \
133                   $(UTILS_SRC)/visual.c
134 DEMO_UTIL_OBJS  = $(UTILS_BIN)/resources.o $(UTILS_BIN)/usleep.o \
135                   $(UTILS_BIN)/visual.o
136
137 SAVER_UTIL_SRCS = $(UTILS_SRC)/fade.c $(UTILS_SRC)/overlay.c \
138                   $(UTILS_SRC)/logo.c $(UTILS_SRC)/yarandom.c \
139                   $(DEMO_UTIL_SRCS)
140 SAVER_UTIL_OBJS = $(UTILS_BIN)/fade.o $(UTILS_BIN)/overlay.o \
141                   $(UTILS_BIN)/logo.o $(UTILS_BIN)/yarandom.o \
142                   $(DEMO_UTIL_OBJS)
143
144 GETIMG_SRCS_1   = xscreensaver-getimage.c
145 GETIMG_OBJS_1   = xscreensaver-getimage.o
146
147 GETIMG_SRCS     = $(GETIMG_SRCS_1) \
148                   $(UTILS_SRC)/colorbars.o $(UTILS_SRC)/resources.o \
149                   $(UTILS_SRC)/yarandom.o $(UTILS_SRC)/visual.o \
150                   $(UTILS_SRC)/usleep.o $(UTILS_SRC)/hsv.o \
151                   $(UTILS_SRC)/colors.o $(UTILS_SRC)/grabscreen.o \
152                   $(UTILS_SRC)/logo.o prefs.o $(XMU_SRCS)
153
154 GETIMG_OBJS     = $(GETIMG_OBJS_1) \
155                   $(UTILS_BIN)/colorbars.o $(UTILS_BIN)/resources.o \
156                   $(UTILS_BIN)/yarandom.o $(UTILS_BIN)/visual.o \
157                   $(UTILS_BIN)/usleep.o $(UTILS_BIN)/hsv.o \
158                   $(UTILS_BIN)/colors.o $(UTILS_BIN)/grabscreen.o \
159                   $(UTILS_BIN)/logo.o prefs.o $(XMU_OBJS)
160
161 SAVER_SRCS_1    = xscreensaver.c windows.c timers.c subprocs.c exec.c \
162                   xset.c splash.c setuid.c stderr.c
163 SAVER_OBJS_1    = xscreensaver.o windows.o timers.o subprocs.o exec.o \
164                   xset.o splash.o setuid.o stderr.o
165
166 SAVER_SRCS      = $(SAVER_SRCS_1) prefs.c dpms.c $(LOCK_SRCS) \
167                   $(SAVER_UTIL_SRCS) $(GL_SRCS) $(XMU_SRCS)
168 SAVER_OBJS      = $(SAVER_OBJS_1) prefs.o dpms.o $(LOCK_OBJS) \
169                   $(SAVER_UTIL_OBJS) $(GL_OBJS) $(XMU_OBJS)
170
171 CMD_SRCS        = remote.c xscreensaver-command.c
172 CMD_OBJS        = remote.o xscreensaver-command.o
173
174 DEMO_SRCS_1     = prefs.c dpms.c $(XMU_SRCS)
175 DEMO_OBJS_1     = prefs.o dpms.o $(XMU_OBJS)
176
177 DEMO_SRCS       = prefs.c dpms.c remote.c exec.c $(DEMO_UTIL_SRCS)
178 DEMO_OBJS       = prefs.o dpms.o remote.o exec.o $(DEMO_UTIL_OBJS)
179
180 SAVER_LIBS      = $(LIBS) $(X_LIBS) $(XMU_LIBS) @SAVER_LIBS@ \
181                   $(XDPMS_LIBS) $(GL_LIBS) $(X_PRE_LIBS) \
182                   -lXt -lX11 -lXext $(X_EXTRA_LIBS) \
183                   $(PASSWD_LIBS)
184
185 CMD_LIBS        = $(LIBS) $(X_LIBS) \
186                   $(X_PRE_LIBS) -lX11 -lXext $(X_EXTRA_LIBS)
187
188 GETIMG_LIBS     = $(LIBS) $(X_LIBS) \
189                   $(X_PRE_LIBS) -lXt -lX11 $(XMU_LIBS) -lXext $(X_EXTRA_LIBS)
190
191 EXES            = xscreensaver xscreensaver-command xscreensaver-demo \
192                   xscreensaver-getimage
193 EXES2           = @ALL_DEMO_PROGRAMS@
194 SCRIPTS         = xscreensaver-getimage-file xscreensaver-getimage-video
195
196 HDRS            = XScreenSaver_ad.h xscreensaver.h prefs.h remote.h \
197                   demo-Gtk-widgets.h demo-Gtk-stubs.h demo-Gtk-support.h \
198                   demo-Gtk-conf.h
199 MEN             = xscreensaver.man xscreensaver-demo.man \
200                   xscreensaver-command.man \
201                   xscreensaver-getimage.man \
202                   xscreensaver-getimage-file.man \
203                   xscreensaver-getimage-video.man
204 EXTRAS          = README Makefile.in XScreenSaver.ad.in xscreensaver.pam \
205                   xscreensaver.kss xscreensaver-demo.glade \
206                   screensaver-properties.desktop.in \
207                   screensaver-properties-capplet \
208                   .gdbinit
209 VMSFILES        = compile_axp.com compile_decc.com link_axp.com link_decc.com \
210                   vms-getpwnam.c vms-pwd.h vms-hpwd.c vms-validate.c \
211                   vms_axp.opt vms_axp_12.opt vms_decc.opt vms_decc_12.opt
212
213 TARFILES        = $(EXTRAS) $(VMSFILES) $(SAVER_SRCS_1) \
214                   $(MOTIF_SRCS) $(GTK_SRCS) $(PWENT_SRCS) \
215                   $(KERBEROS_SRCS) $(PAM_SRCS) $(LOCK_SRCS_1) $(DEMO_SRCS_1) \
216                   $(CMD_SRCS) $(GETIMG_SRCS_1) $(HDRS) $(SCRIPTS) \
217                   $(TEST_SRCS) $(MEN)
218
219
220 default: $(EXES)
221 all: $(EXES) $(EXES2)
222 tests: $(TEST_EXES)
223
224 install:   install-program   install-ad    install-scripts \
225            install-gnome     install-kde   install-man   @INSTALL_PAM@
226 uninstall: uninstall-program uninstall-ad  \
227            uninstall-gnome   uninstall-kde uninstall-man
228
229 install-strip:
230         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' \
231                 install
232
233 install-program: $(EXES)
234         @if [ ! -d $(install_prefix)$(bindir) ]; then                   \
235           $(INSTALL_DIRS) $(install_prefix)$(bindir) ;                  \
236          fi
237         @inst="$(INSTALL_PROGRAM)" ;                                    \
238         if [ @NEED_SETUID@ = yes ]; then                                \
239            me=`PATH="$$PATH:/usr/ucb" whoami` ;                         \
240            if [ "$$me" = root ]; then                                   \
241              inst="$(INSTALL_SETUID)" ;                                 \
242            else                                                         \
243             e=echo ;                                                    \
244  $$e ""                                                                      ;\
245  $$e "  ####################################################################";\
246  $$e "  Warning: xscreensaver has been compiled with support for shadow"     ;\
247  $$e "           passwords.  If your system actually uses shadow passwords," ;\
248  $$e "           then xscreensaver must be installed as a setuid root"       ;\
249  $$e "           program in order for locking to work.  To do this, you"     ;\
250  $$e "           must run 'make install' as 'root', not as '$$me'."          ;\
251  $$e ""                                                                      ;\
252  $$e "           For now, xscreensaver will be installed non-setuid, which"  ;\
253  $$e "           means that locking might not work.  (Try it and see.)"      ;\
254  $$e "  ####################################################################";\
255  $$e ""                                                                      ;\
256            fi ;                                                               \
257         fi ;                                                                  \
258         echo $$inst xscreensaver $(install_prefix)$(bindir)/xscreensaver ;    \
259         $$inst xscreensaver $(install_prefix)$(bindir)/xscreensaver
260         @echo $(INSTALL_PROGRAM) xscreensaver-command \
261           $(install_prefix)$(bindir)/xscreensaver-command ; \
262         $(INSTALL_PROGRAM) xscreensaver-command \
263           $(install_prefix)$(bindir)/xscreensaver-command
264         @echo $(INSTALL_PROGRAM) xscreensaver-demo \
265           $(install_prefix)$(bindir)/xscreensaver-demo ; \
266         $(INSTALL_PROGRAM) xscreensaver-demo \
267           $(install_prefix)$(bindir)/xscreensaver-demo
268         @echo $(INSTALL_PROGRAM) xscreensaver-getimage \
269           $(install_prefix)$(bindir)/xscreensaver-getimage ; \
270         $(INSTALL_PROGRAM) xscreensaver-getimage \
271           $(install_prefix)$(bindir)/xscreensaver-getimage
272
273 install-ad: XScreenSaver.ad
274         @if [ ! -d $(install_prefix)$(AD_DIR) ]; then                         \
275           $(INSTALL_DIRS) $(install_prefix)$(AD_DIR) ;                        \
276          fi
277         @-echo $(INSTALL_DATA) XScreenSaver.ad                                \
278           $(install_prefix)$(AD_DIR)/XScreenSaver ;                           \
279         if $(INSTALL_DATA) XScreenSaver.ad                                    \
280           $(install_prefix)$(AD_DIR)/XScreenSaver ; then                      \
281           true ;                                                              \
282         else                                                                  \
283           e=echo ;                                                            \
284           if [ -f $(install_prefix)$(AD_DIR)/XScreenSaver ]; then             \
285  $$e ""                                                                      ;\
286  $$e "  ####################################################################";\
287  $$e "  Warning: unable to install $(install_prefix)$(AD_DIR)/XScreenSaver"  ;\
288  $$e "           That file exists, and is unwritable.  It is probably from"  ;\
289  $$e "           an older version of xscreensaver, and could cause things"   ;\
290  $$e "           to malfunction.  Please delete it!"                         ;\
291  $$e "  ####################################################################";\
292  $$e ""                                                                      ;\
293             exit 1 ;                                                          \
294           else                                                                \
295  $$e ""                                                                      ;\
296  $$e "  ####################################################################";\
297  $$e "  Warning: unable to install $(install_prefix)$(AD_DIR)/XScreenSaver"  ;\
298  $$e "           The directory is unwritable.  This is probably ok;"         ;\
299  $$e "           xscreensaver should work without that file."                ;\
300  $$e "  ####################################################################";\
301  $$e ""                                                                      ;\
302             exit 0 ;                                                          \
303           fi                                                                  \
304         fi
305
306 install-scripts: $(SCRIPTS) munge-scripts
307         @for program in $(SCRIPTS); do                                  \
308           if [ -r $$program ] ; then                                    \
309             p=$$program ;                                               \
310           else                                                          \
311             p=$(srcdir)/$$program ;                                     \
312           fi ;                                                          \
313           echo $(INSTALL_SCRIPT) $$p                                    \
314             $(install_prefix)$(bindir)/$$program ;                      \
315           $(INSTALL_SCRIPT) $$p                                         \
316             $(install_prefix)$(bindir)/$$program ;                      \
317         done
318
319 munge-scripts: $(SCRIPTS)
320         @tmp=/tmp/mf.$$$$ ;                                             \
321         perl="${PERL}" ;                                                \
322         rm -f $$tmp ;                                                   \
323         for program in $(SCRIPTS); do                                   \
324           echo "adjusting location of perl in $$program..." ;           \
325           sed "s@^\(#!\)\(/[^ ]*/perl[^ ]*\)\(.*\)\$$@\1$$perl\3@"      \
326               < $(srcdir)/$$program > $$tmp ;                           \
327           if cmp -s $(srcdir)/$$program $$tmp ; then                    \
328             true ;                                                      \
329           else                                                          \
330             cat $$tmp > ./$$program ;                                   \
331           fi ;                                                          \
332         done ;                                                          \
333         rm -f $$tmp
334
335 install-man: $(MEN)
336         @men="$(MEN)" ;                                                 \
337         if [ ! -d $(install_prefix)$(man1dir) ]; then                   \
338           $(INSTALL_DIRS) $(install_prefix)$(man1dir) ;                 \
339          fi ;                                                           \
340         for man in $$men; do                                            \
341           instname=`echo $$man | sed 's/\.man$$/\.$(mansuffix)/'` ;     \
342           echo $(INSTALL_DATA) $(srcdir)/$$man                          \
343            $(install_prefix)$(man1dir)/$$instname ;                     \
344           $(INSTALL_DATA) $(srcdir)/$$man                               \
345             $(install_prefix)$(man1dir)/$$instname ;                    \
346         done
347
348 uninstall-program:
349         @for program in $(EXES) $(SCRIPTS); do                          \
350           echo rm -f $(install_prefix)$(bindir)/$$program ;             \
351           rm -f $(install_prefix)$(bindir)/$$program ;                  \
352         done
353
354 uninstall-ad:
355         rm -f $(install_prefix)$(AD_DIR)/XScreenSaver
356
357 uninstall-man:
358         @men="$(MEN)" ;                                                 \
359         for man in $$men; do                                            \
360           instname=`echo $$man | sed 's/\.man$$/\.$(mansuffix)/'` ;     \
361           echo rm -f $(install_prefix)$(man1dir)/$$instname ;           \
362           rm -f $(install_prefix)$(man1dir)/$$instname ;                \
363         done
364
365 install-pam:
366         @src="$(srcdir)/xscreensaver.pam" ;                             \
367         dest=`sed -n 's/.*PAM_SERVICE_NAME[     ]*"\([^"]*\)".*$$/\1/p' \
368            < ../config.h` ;                                             \
369         dir="$(install_prefix)$(PAM_DIR)" ;                             \
370         conf="$(PAM_CONF)" ;                                            \
371                                                                         \
372         if [ -d $$dir ] ; then                                          \
373                                                                         \
374           if [ -f $$dir/xdm ]; then                                     \
375             src2=$$dir/xdm ;                                            \
376           elif [ -f $$dir/login ]; then                                 \
377             src2=$$dir/login ;                                          \
378           fi ;                                                          \
379                                                                         \
380           if [ -z "$$src2" ]; then                                      \
381             echo $(INSTALL_DATA) $$src $$dir/$$dest ;                   \
382             $(INSTALL_DATA) $$src $$dir/$$dest ;                        \
383           else                                                          \
384             src="xscreensaver.pam.$$$$" ;                               \
385             echo "grep '^#%\|^auth' $$src2 > $$src" ;                   \
386                   grep '^#%\|^auth' $$src2 > $$src ;                    \
387             echo $(INSTALL_DATA) $$src $$dir/$$dest ;                   \
388                  $(INSTALL_DATA) $$src $$dir/$$dest ;                   \
389             echo rm -f $$src ;                                          \
390                  rm -f $$src ;                                          \
391           fi ;                                                          \
392                                                                         \
393           if [ ! -f $$dir/$$dest ]; then                                \
394             e=echo ;                                                    \
395  $$e ""                                                                      ;\
396  $$e "  ####################################################################";\
397  $$e "  Warning: xscreensaver has been compiled with support for Pluggable"  ;\
398  $$e "           Authentication Modules (PAM).  However, we were unable to"  ;\
399  $$e "           install the file $$dir/$$dest.  PAM is unlikely"            ;\
400  $$e "           to work without this file (and old-style password"          ;\
401  $$e "           authentication will be used instead, which may or may not"  ;\
402  $$e "           work.)"                                                     ;\
403  $$e "  ####################################################################";\
404  $$e ""                                                                      ;\
405           fi ;                                                          \
406         elif [ -f $$conf ]; then                                        \
407           if ( grep $$dest $$conf >/dev/null ); then                    \
408            true ;                                                       \
409           else                                                          \
410             e=echo ;                                                    \
411  $$e ""                                                                      ;\
412  $$e "  ####################################################################";\
413  $$e "  Warning: xscreensaver has been compiled with support for Pluggable"  ;\
414  $$e "           Authentication Modules (PAM).  To complete the installation";\
415  $$e "           of PAM support, you must add the following line to the file";\
416  $$e "           $$conf:"                                                    ;\
417  $$e ""                                                                      ;\
418  $$e    "       $$dest  auth required   /usr/lib/security/pam_unix.so.1"     ;\
419  $$e ""                                                                      ;\
420  $$e "           Be careful: if you mess up that file, you could completely" ;\
421  $$e "           hose your machine (e.g., \`login' and \`su' won't work, and";\
422  $$e "           you'll have to boot single-user to fix it.)"                ;\
423  $$e "  ####################################################################";\
424             echo "";                                                    \
425           fi ;                                                          \
426         fi
427
428 install-gnome:: screensaver-properties.desktop
429         @lost=""                                                             ;\
430          if [ "$(GNOME_DATADIR)" != "" ]; then                                \
431                                                                               \
432            if [ ! -d "$(install_prefix)$(GNOME_CCDIR_1)" ]; then              \
433              echo $(INSTALL_DIRS) "$(install_prefix)$(GNOME_CCDIR_1)"        ;\
434                   $(INSTALL_DIRS) "$(install_prefix)$(GNOME_CCDIR_1)"        ;\
435            fi                                                                ;\
436            if [ ! -d "$(install_prefix)$(GNOME_CCDIR_2)" ]; then              \
437              echo $(INSTALL_DIRS) "$(install_prefix)$(GNOME_CCDIR_2)"        ;\
438                   $(INSTALL_DIRS) "$(install_prefix)$(GNOME_CCDIR_2)"        ;\
439            fi                                                                ;\
440                                                                               \
441            echo    $(INSTALL_DATA) $(srcdir)/screensaver-properties.desktop   \
442              $(install_prefix)$(GNOME_CCDIR_1)/screensaver-properties.desktop;\
443                                                                               \
444            if      $(INSTALL_DATA) $(srcdir)/screensaver-properties.desktop   \
445              $(install_prefix)$(GNOME_CCDIR_1)/screensaver-properties.desktop;\
446              then true                                                       ;\
447            else                                                               \
448              lost="$$lost $(install_prefix)$(GNOME_CCDIR_1)"                 ;\
449            fi                                                                ;\
450                                                                               \
451            echo    $(INSTALL_DATA) $(srcdir)/screensaver-properties.desktop   \
452              $(install_prefix)$(GNOME_CCDIR_2)/screensaver.desktop           ;\
453                                                                               \
454            if      $(INSTALL_DATA) $(srcdir)/screensaver-properties.desktop   \
455              $(install_prefix)$(GNOME_CCDIR_2)/screensaver.desktop           ;\
456              then true                                                       ;\
457            else                                                               \
458              lost="$$lost $(install_prefix)$(GNOME_CCDIR_2)"                 ;\
459            fi                                                                ;\
460                                                                               \
461            if [ ! -d "$(install_prefix)$(GNOME_PANELDIR)" ]; then             \
462              echo $(INSTALL_DIRS) "$(install_prefix)$(GNOME_PANELDIR)"       ;\
463                   $(INSTALL_DIRS) "$(install_prefix)$(GNOME_PANELDIR)"       ;\
464            fi                                                                ;\
465                                                                               \
466            echo $(INSTALL_DATA) $(srcdir)/screensaver-properties.desktop      \
467                         $(GNOME_PANELDIR)/screensaver-properties.desktop     ;\
468            if   $(INSTALL_DATA) $(srcdir)/screensaver-properties.desktop      \
469        $(install_prefix)$(GNOME_PANELDIR)/screensaver-properties.desktop     ;\
470              then true                                                       ;\
471            else                                                               \
472              lost="$$lost $(install_prefix)$(GNOME_PANELDIR)"                ;\
473            fi                                                                ;\
474                                                                               \
475            if [ "$$lost" != "" ]; then                                        \
476              e=echo ;                                                         \
477  $$e ""                                                                      ;\
478  $$e "  ####################################################################";\
479  $$e "  Warning: unable to install screensaver-properties.desktop into:"     ;\
480         set - $$lost                                                         ;\
481         for f in $$@ ; do echo "             $$f/" ; done                    ;\
482  $$e '           This means the "Screen Saver" section of the Gnome'         ;\
483  $$e "           Control Center (gnomecc) may not work properly."            ;\
484  $$e "  ####################################################################";\
485  $$e ""                                                                      ;\
486              exit 1 ;                                                         \
487            fi                                                                ;\
488          fi
489
490 install-gnome:: screensaver-properties-capplet
491         @if [ "$(GNOME_DATADIR)" != "" ]; then                                \
492            if [ ! -d "$(install_prefix)$(GNOME_BINDIR)" ]; then               \
493              echo $(INSTALL_DIRS) "$(install_prefix)$(GNOME_BINDIR)"         ;\
494                   $(INSTALL_DIRS) "$(install_prefix)$(GNOME_BINDIR)"         ;\
495            fi                                                                ;\
496            program=screensaver-properties-capplet                            ;\
497            echo $(INSTALL_SCRIPT) $$program                                   \
498                   $(install_prefix)$(GNOME_BINDIR)/$$program                 ;\
499            if   $(INSTALL_SCRIPT) $$program                                   \
500                   $(install_prefix)$(GNOME_BINDIR)/$$program                 ;\
501              then true                                                       ;\
502            else                                                               \
503              e=echo ;                                                         \
504  $$e ""                                                                      ;\
505  $$e "  ####################################################################";\
506  $$e "  Warning: unable to install $$program into"                           ;\
507  $$e "           $(install_prefix)$(GNOME_BINDIR)/."                         ;\
508  $$e "           Without this file, the Gnome session manager will not"      ;\
509  $$e "           launch xscreensaver properly at login time."                ;\
510  $$e "  ####################################################################";\
511  $$e ""                                                                      ;\
512              exit 1 ;                                                         \
513            fi ;                                                               \
514          fi
515
516 # xscreensaver.xpm
517 install-gnome:: $(LOGO)
518         @if [ "$(GNOME_DATADIR)" != "" ]; then                                \
519            if [ ! -d "$(install_prefix)$(GNOME_ICONDIR)" ]; then              \
520              echo $(INSTALL_DIRS) "$(install_prefix)$(GNOME_ICONDIR)"        ;\
521                   $(INSTALL_DIRS) "$(install_prefix)$(GNOME_ICONDIR)"        ;\
522            fi                                                                ;\
523            target=xscreensaver.xpm                                           ;\
524            echo $(INSTALL_DATA) $(LOGO)                                       \
525                   $(install_prefix)$(GNOME_ICONDIR)/$$target                 ;\
526                 $(INSTALL_DATA) $(LOGO)                                       \
527                   $(install_prefix)$(GNOME_ICONDIR)/$$target                 ;\
528         fi
529
530 # ../utils/images/screensaver-*.xpm
531 install-gnome::
532         @if [ "$(GNOME_DATADIR)" != "" ]; then                                \
533            if [ ! -d "$(install_prefix)$(GNOME_ICONDIR)" ]; then              \
534              echo $(INSTALL_DIRS) "$(install_prefix)$(GNOME_ICONDIR)"        ;\
535                   $(INSTALL_DIRS) "$(install_prefix)$(GNOME_ICONDIR)"        ;\
536            fi                                                                ;\
537            for target in $(GNOME_ICONS) ; do                                  \
538              dest=`echo $$target | sed 's@^.*/@@'`                           ;\
539              echo $(INSTALL_DATA) $$target                                    \
540                   $(install_prefix)$(GNOME_ICONDIR)/$$dest                   ;\
541                   $(INSTALL_DATA) $$target                                    \
542                   $(install_prefix)$(GNOME_ICONDIR)/$$dest                   ;\
543            done                                                              ;\
544         fi
545
546 # screensaver-properties.desktop
547 uninstall-gnome::
548         @if [ "$(GNOME_DATADIR)" != "" ]; then                                \
549           f=screensaver-properties.desktop                                   ;\
550           echo rm -f $(install_prefix)$(GNOME_CCDIR)/$$f                     ;\
551                rm -f $(install_prefix)$(GNOME_CCDIR)/$$f                     ;\
552           echo rm -f $(install_prefix)$(GNOME_PANELDIR)/$$f                  ;\
553                rm -f $(install_prefix)$(GNOME_PANELDIR)/$$f                  ;\
554         fi
555
556 # screensaver-properties-capplet
557 uninstall-gnome::
558         @if [ "$(GNOME_DATADIR)" != "" ]; then                                \
559           program=screensaver-properties-capplet                             ;\
560           echo rm -f $(install_prefix)$(bindir)/$$program                    ;\
561                rm -f $(install_prefix)$(bindir)/$$program                    ;\
562          fi
563
564 # xscreensaver.xpm
565 uninstall-gnome::
566         @if [ "$(GNOME_DATADIR)" != "" ]; then                                \
567           target=xscreensaver.xpm                                            ;\
568           echo rm -f $(install_prefix)$(GNOME_ICONDIR)/$$target              ;\
569                rm -f $(install_prefix)$(GNOME_ICONDIR)/$$target              ;\
570          fi
571
572 # xscreensaver.xpm
573 uninstall-gnome::
574         @if [ "$(GNOME_DATADIR)" != "" ]; then                                \
575            for target in $(GNOME_ICONS) ; do                                  \
576              dest=`echo $$target | sed 's@^.*/@@'`                           ;\
577              echo rm -f $(install_prefix)$(GNOME_ICONDIR)/$$dest             ;\
578                   rm -f $(install_prefix)$(GNOME_ICONDIR)/$$dest             ;\
579            done                                                              ;\
580         fi
581
582 install-kde:
583         @src="$(srcdir)/xscreensaver.kss" ;                                   \
584         if [ "$$KDEDIR" != "" ]; then                                         \
585           dir="$(install_prefix)$$KDEDIR/bin" ;                               \
586           dest="$$dir/xscreensaver.kss" ;                                     \
587           echo $(INSTALL_SCRIPT) $$src $$dest ;                               \
588           if $(INSTALL_SCRIPT) $$src $$dest ; then                            \
589             true ;                                                            \
590           else                                                                \
591             e=echo ;                                                          \
592  $$e ""                                                                      ;\
593  $$e "  ####################################################################";\
594  $$e "  Warning: unable to install $$dest"                                   ;\
595             if [ ! -d $(install_prefix)$$KDEDIR ]; then                       \
596  $$e "           $(install_prefix)$$KDEDIR (\$$KDEDIR) does not exist."      ;\
597             elif [ ! -d $(install_prefix)$$KDEDIR/bin ]; then                 \
598  $$e "           $(install_prefix)$$KDEDIR/bin (\$$KDEDIR/bin) does not exist.";\
599             elif [ -f $$dest ]; then                                          \
600  $$e "           That file exists, and is unwritable."                       ;\
601             else                                                              \
602  $$e "           The directory is unwritable."                               ;\
603             fi                                                               ;\
604  $$e "  ####################################################################";\
605  $$e ""                                                                      ;\
606             exit 1 ;                                                          \
607           fi ;                                                                \
608         fi
609
610 uninstall-kde:
611         @if [ "$$KDEDIR" != "" ]; then                                  \
612           dest="$(install_prefix)$$KDEDIR/bin/xscreensaver.kss" ;       \
613           echo rm -f $$dest ;                                           \
614           rm -f $$dest ;                                                \
615         fi
616
617 clean:
618         -rm -f *.o a.out core $(EXES) $(EXES2) $(TEST_EXES) XScreenSaver_ad.h
619
620 distclean: clean
621         -rm -f Makefile XScreenSaver.ad TAGS *~ "#"*
622
623 # Adds all current dependencies to Makefile
624 depend: XScreenSaver_ad.h
625         $(DEPEND) -s '# DO NOT DELETE: updated by make depend'              \
626         $(DEPEND_FLAGS) --                                                  \
627         $(INCLUDES) $(DEFS) $(DEPEND_DEFINES) $(CFLAGS) $(X_CFLAGS) --      \
628         $(SAVER_SRCS) $(CMD_SRCS) $(GETIMG_SRCS_1)
629
630 # Adds some dependencies to Makefile.in -- not totally accurate, but pretty
631 # close.  This excludes dependencies on files in /usr/include, etc.  It tries
632 # to include only dependencies on files which are themselves a part of this
633 # package.
634 distdepend: update_ad_version update_man_version XScreenSaver_ad.h
635         @echo updating dependencies in `pwd`/Makefile.in... ;               \
636         $(DEPEND) -w 0 -f -                                                 \
637         -s '# DO NOT DELETE: updated by make distdepend' $(DEPEND_FLAGS) -- \
638         $(INCLUDES) $(DEFS) $(DEPEND_DEFINES) $(CFLAGS) $(X_CFLAGS) --      \
639         $(SAVER_SRCS_1) $(MOTIF_SRCS) $(GTK_SRCS) $(GETIMG_SRCS_1)          \
640         $(PWENT_SRCS) $(LOCK_SRCS_1) $(DEMO_SRCS_1) $(CMD_SRCS)             \
641         $(TEST_SRCS) |                                                      \
642         (                                                                   \
643           awk '/^# .*Makefile.in ---/,/^# DO .*distdepend/' < Makefile.in ; \
644           sed -e 's@ \./@ @g;s@ /[^ ]*@@g;/^.*:$$/d'                        \
645               -e 's@\.\./utils@$$(UTILS_SRC)@g'                             \
646               -e 's@ \([^$$]\)@ $$(srcdir)/\1@g'                            \
647               -e 's@$$.*\(XScreenSaver_ad\)@\1@g'                           \
648               -e 's@ $$(srcdir)/\(.*config\.h\)@ \1@g' ;                    \
649           echo ''                                                           \
650         ) > /tmp/distdepend.$$$$ &&                                         \
651         mv Makefile.in Makefile.in.bak &&                                   \
652         mv /tmp/distdepend.$$$$ Makefile.in
653
654 # Updates the version number in the app-defaults file to be in sync with 
655 # the version number in version.h.  This is so people can tell when they
656 # have a version skew between the app-defaults file and the executable.
657 # Also update hacks/config/README in the same way.
658 update_ad_version::
659         @files="XScreenSaver.ad.in ../hacks/config/README" ;                \
660         U=$(UTILS_SRC)/version.h ;                                          \
661         V=`sed -n 's/.*\([0-9][0-9]*\.[0-9]*\).*/\1/p' < $$U` ;             \
662         D=`date '+%d-%b-%Y'` ;                                              \
663         for S in $$files ; do                                               \
664           echo -n "Updating version number in $$S to $$V $$D... " ;         \
665           T=/tmp/xs.$$$$ ;                                                  \
666           sed -e "s/\(.*version \)[0-9][0-9]*\.[0-9]*\(.*\)/\1$$V\2/"       \
667               -e "s/\([0-9][0-9]-[A-Z][a-z][a-z]-[0-9][0-9][0-9]*\)/$$D/"   \
668             < $$S > $$T ;                                                   \
669           if cmp -s $$S $$T ; then                                          \
670             echo "unchanged." ;                                             \
671           else                                                              \
672             cat $$T > $$S ;                                                 \
673             echo "done." ;                                                  \
674           fi ;                                                              \
675         done ;                                                              \
676         rm $$T
677
678 update_man_version::
679         @for S in $(MEN); do                                                \
680         U=$(UTILS_SRC)/version.h ;                                          \
681         V=`sed -n 's/.*\([0-9][0-9]*\.[0-9]*\).*/\1/p' < $$U` ;             \
682         V="`date '+%d-%b-%Y'` ($$V)" ;                                      \
683         echo -n "Updating footer in $$S to \"$$V\"... " ;                   \
684         T=/tmp/xs.$$$$ ;                                                    \
685         sed "s/^\(\.TH[^\"]*\)\"[^\"]*\"\(.*\)/\1\"$$V\"\2/"                \
686           < $$S > $$T ;                                                     \
687         if cmp -s $$S $$T ; then                                            \
688           echo "unchanged." ;                                               \
689         else                                                                \
690           cat $$T > $$S ;                                                   \
691           echo "done." ;                                                    \
692         fi ;                                                                \
693         rm $$T ;                                                            \
694         done
695
696 TAGS: tags
697 tags:
698         find $(srcdir) -name '*.[chly]' -print | xargs etags -a
699
700 echo_tarfiles:
701         @$(MAKE) XScreenSaver_ad.h 2>&1 >&- /dev/null
702         @echo $(TARFILES)
703
704
705 # Rules for noticing when the objects from the utils directory are out of
706 # date with respect to their sources, and going and building them according
707 # to the rules in their own Makefile...
708 #
709 $(UTILS_BIN)/fade.o:            $(UTILS_SRC)/fade.c
710 $(UTILS_BIN)/overlay.o:         $(UTILS_SRC)/overlay.c
711 $(UTILS_BIN)/resources.o:       $(UTILS_SRC)/resources.c
712 $(UTILS_BIN)/usleep.o:          $(UTILS_SRC)/usleep.c
713 $(UTILS_BIN)/visual.o:          $(UTILS_SRC)/visual.c
714 $(UTILS_BIN)/xmu.o:             $(UTILS_SRC)/xmu.c
715 $(UTILS_BIN)/logo.o:            $(UTILS_SRC)/logo.c
716 $(UTILS_BIN)/yarandom.o:        $(UTILS_SRC)/yarandom.c
717 $(UTILS_BIN)/colorbars.o:       $(UTILS_SRC)/colorbars.c
718
719 $(SAVER_UTIL_OBJS):
720         cd $(UTILS_BIN) ; \
721         $(MAKE) $(@F) CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
722
723 # How we build object files in this directory.
724 .c.o:
725         $(CC) -c $(INCLUDES) $(DEFS)  $(CFLAGS) $(X_CFLAGS) $<
726
727 # subprocs takes an extra -D option.
728 subprocs.o: subprocs.c
729         $(CC) -c $(INCLUDES) $(SUBP_DEFS) $(CFLAGS) $(X_CFLAGS) \
730           $(srcdir)/subprocs.c
731
732 # demo-Gtk takes an extra -D option, and an extra -I option.
733 demo-Gtk.o: demo-Gtk.c
734         $(CC) -c $(INCLUDES) $(SUBP_DEFS) -I$(ICON_SRC) $(GTK_DEFS) \
735           $(CFLAGS) $(X_CFLAGS) \
736           $(srcdir)/demo-Gtk.c
737
738 # demo-Gtk-conf takes an extra -D option.
739 demo-Gtk-conf.o: demo-Gtk-conf.c
740         $(CC) -c $(INCLUDES) $(CONF_DEFS) $(GTK_DEFS) $(CFLAGS) $(X_CFLAGS) \
741           $(srcdir)/demo-Gtk-conf.c
742
743
744 # How we build the default app-defaults file into the program.
745 #
746 XScreenSaver_ad.h: XScreenSaver.ad
747         $(SHELL) $(UTILS_SRC)/ad2c XScreenSaver.ad > XScreenSaver_ad.h
748
749 screensaver-properties.desktop: screensaver-properties.desktop.in Makefile
750         @echo generating $@... ;                                        \
751         sed "s%[@]bindir[@]%${bindir}%g"                                \
752           < ${srcdir}/screensaver-properties.desktop.in                 \
753           > $@
754
755 # The executables linked in this directory.
756 #
757 xscreensaver: $(SAVER_OBJS)
758         $(CC) $(LDFLAGS) -o $@ $(SAVER_OBJS) $(SAVER_LIBS)
759
760 xscreensaver-command: $(CMD_OBJS)
761         $(CC) $(LDFLAGS) -o $@ $(CMD_OBJS) $(CMD_LIBS)
762
763
764 xscreensaver-demo: @PREFERRED_DEMO_PROGRAM@
765         $(INSTALL_PROGRAM) @PREFERRED_DEMO_PROGRAM@ $@
766
767 xscreensaver-demo-Xm: $(DEMO_OBJS) $(MOTIF_OBJS)
768         $(CC) $(LDFLAGS) -o $@ $(DEMO_OBJS) $(MOTIF_OBJS) $(LIBS) $(X_LIBS) \
769         $(MOTIF_LIBS) $(X_PRE_LIBS) -lXt -lX11 $(XDPMS_LIBS) -lXext \
770         $(X_EXTRA_LIBS)
771
772 xscreensaver-demo-Gtk: $(DEMO_OBJS) $(GTK_OBJS)
773         $(CC) $(LDFLAGS) -o $@ $(DEMO_OBJS) $(GTK_OBJS) $(LIBS) $(X_LIBS) \
774         $(GTK_LIBS) $(XML_LIBS) $(X_PRE_LIBS) -lXt -lX11 $(XDPMS_LIBS) -lXext \
775         $(X_EXTRA_LIBS)
776
777 xscreensaver-getimage: $(GETIMG_OBJS)
778         $(CC) $(LDFLAGS) -o $@ $(GETIMG_OBJS) $(GETIMG_LIBS) -lm
779
780
781 TEST_PASSWD_OBJS = test-passwd.o $(LOCK_OBJS_1) $(PASSWD_OBJS) \
782          subprocs.o setuid.o splash.o prefs.o \
783         $(SAVER_UTIL_OBJS)
784 test-passwd.o: XScreenSaver_ad.h
785
786 test-passwd: $(TEST_PASSWD_OBJS) XScreenSaver_ad.h
787         $(CC) $(LDFLAGS) -o $@ $(TEST_PASSWD_OBJS) $(SAVER_LIBS)
788
789 test-uid: test-uid.o
790         $(CC) $(LDFLAGS) -o $@ test-uid.o
791
792 test-xdpms: test-xdpms.o
793         $(CC) $(LDFLAGS) -o $@ test-xdpms.o $(LIBS) $(X_LIBS) $(XDPMS_LIBS) \
794         $(X_PRE_LIBS) -lXt -lX11 -lXext $(X_EXTRA_LIBS)
795
796 test-grab: test-grab.o
797         $(CC) $(LDFLAGS) -o $@ test-grab.o $(SAVER_LIBS)
798
799 test-apm: test-apm.o
800         $(CC) $(LDFLAGS) -o $@ test-apm.o $(SAVER_LIBS) -lapm
801
802 TEST_FADE_OBJS = test-fade.o $(UTILS_SRC)/fade.o $(DEMO_UTIL_OBJS)
803 test-fade: test-fade.o $(UTILS_BIN)/fade.o
804         $(CC) $(LDFLAGS) -o $@ $(TEST_FADE_OBJS) $(SAVER_LIBS)
805
806
807 xdpyinfo.o: xdpyinfo.c
808         $(CC) -c $(INCLUDES) -DHAVE_GLX $(CFLAGS) $(X_CFLAGS) \
809           $(srcdir)/xdpyinfo.c
810
811 xdpyinfo: xdpyinfo.o
812         $(CC) $(LDFLAGS) -o $@ xdpyinfo.o \
813                 $(LIBS) $(X_LIBS) @GL_LIBS@ \
814                 $(X_PRE_LIBS) -lX11 -lXext $(X_EXTRA_LIBS) -lm
815
816
817 ##############################################################################
818 #
819 # DO NOT DELETE: updated by make distdepend
820 # $(srcdir)/DO $(srcdir)/NOT $(srcdir)/DELETE: $(srcdir)/updated $(srcdir)/by $(srcdir)/make $(srcdir)/distdepend
821
822 xscreensaver.o: ../config.h
823 xscreensaver.o: $(srcdir)/xscreensaver.h
824 xscreensaver.o: $(srcdir)/prefs.h
825 xscreensaver.o: XScreenSaver_ad.h
826 windows.o: ../config.h
827 windows.o: $(srcdir)/xscreensaver.h
828 windows.o: $(srcdir)/prefs.h
829 timers.o: ../config.h
830 timers.o: $(srcdir)/xscreensaver.h
831 timers.o: $(srcdir)/prefs.h
832 subprocs.o: ../config.h
833 subprocs.o: $(srcdir)/xscreensaver.h
834 subprocs.o: $(srcdir)/prefs.h
835 exec.o: ../config.h
836 xset.o: ../config.h
837 xset.o: $(srcdir)/xscreensaver.h
838 xset.o: $(srcdir)/prefs.h
839 splash.o: ../config.h
840 splash.o: $(srcdir)/xscreensaver.h
841 splash.o: $(srcdir)/prefs.h
842 setuid.o: ../config.h
843 setuid.o: $(srcdir)/xscreensaver.h
844 setuid.o: $(srcdir)/prefs.h
845 stderr.o: ../config.h
846 stderr.o: $(srcdir)/xscreensaver.h
847 stderr.o: $(srcdir)/prefs.h
848 demo-Xm.o: ../config.h
849 demo-Xm.o: $(srcdir)/prefs.h
850 demo-Xm.o: $(srcdir)/remote.h
851 demo-Xm.o: XScreenSaver_ad.h
852 demo-Xm-widgets.o: ../config.h
853 demo-Gtk.o: ../config.h
854 demo-Gtk.o: $(srcdir)/prefs.h
855 demo-Gtk.o: $(srcdir)/remote.h
856 demo-Gtk.o: $(srcdir)/demo-Gtk-widgets.h
857 demo-Gtk.o: $(srcdir)/demo-Gtk-support.h
858 demo-Gtk.o: $(srcdir)/demo-Gtk-conf.h
859 demo-Gtk.o: XScreenSaver_ad.h
860 demo-Gtk-conf.o: ../config.h
861 demo-Gtk-conf.o: $(srcdir)/demo-Gtk-conf.h
862 demo-Gtk-widgets.o: ../config.h
863 demo-Gtk-widgets.o: $(srcdir)/demo-Gtk-stubs.h
864 demo-Gtk-widgets.o: $(srcdir)/demo-Gtk-widgets.h
865 demo-Gtk-widgets.o: $(srcdir)/demo-Gtk-support.h
866 demo-Gtk-support.o: ../config.h
867 demo-Gtk-support.o: $(srcdir)/demo-Gtk-support.h
868 xscreensaver-getimage.o: ../config.h
869 xscreensaver-getimage.o: $(srcdir)/prefs.h
870 xscreensaver-getimage.o: XScreenSaver_ad.h
871 passwd-pwent.o: ../config.h
872 lock.o: ../config.h
873 lock.o: $(srcdir)/xscreensaver.h
874 lock.o: $(srcdir)/prefs.h
875 passwd.o: ../config.h
876 prefs.o: ../config.h
877 prefs.o: $(srcdir)/prefs.h
878 dpms.o: ../config.h
879 dpms.o: $(srcdir)/xscreensaver.h
880 dpms.o: $(srcdir)/prefs.h
881 remote.o: ../config.h
882 remote.o: $(srcdir)/remote.h
883 xscreensaver-command.o: ../config.h
884 xscreensaver-command.o: $(srcdir)/remote.h
885 test-passwd.o: ../config.h
886 test-passwd.o: $(srcdir)/xscreensaver.h
887 test-passwd.o: $(srcdir)/prefs.h
888 test-passwd.o: XScreenSaver_ad.h
889 test-uid.o: ../config.h
890 test-xdpms.o: ../config.h
891 test-grab.o: ../config.h
892 test-apm.o: ../config.h
893 test-fade.o: ../config.h
894 test-fade.o: $(srcdir)/xscreensaver.h
895 test-fade.o: $(srcdir)/prefs.h
896