ef96cd5f64bb0e7a1da93f77e52c3ac8e8fc97ac
[xscreensaver] / utils / Makefile.in
1 # utils/Makefile.in --- xscreensaver, Copyright (c) 1997 Jamie Zawinski.
2 # the `../configure' script generates `utils/Makefile' from this file.
3
4 @SET_MAKE@
5 .SUFFIXES:
6 .SUFFIXES: .c .o
7
8 srcdir          = @srcdir@
9 VPATH           = @srcdir@
10 prefix          = @prefix@
11
12 CC              = @CC@
13 CFLAGS          = @CFLAGS@
14 DEFS            = @DEFS@
15
16 DEPEND          = @DEPEND@
17 DEPEND_FLAGS    = @DEPEND_FLAGS@
18 DEPEND_DEFINES  = @DEPEND_DEFINES@
19
20 SHELL           = /bin/sh
21
22 X_CFLAGS        = @X_CFLAGS@
23
24 INCLUDES        = -I$(srcdir) -I.. @INCLUDES@
25
26 SRCS            = alpha.c colors.c fade.c grabscreen.c hsv.c overlay.c \
27                   resources.c spline.c usleep.c visual.c xmu.c xroger.c \
28                   yarandom.c erase.c sgivideo.c
29 OBJS            = alpha.o colors.o fade.o grabscreen.o hsv.o overlay.o \
30                   resources.o spline.o usleep.o visual.o xmu.o xroger.o \
31                   yarandom.o erase.o sgivideo.o
32 HDRS            = alpha.h colors.h fade.h grabscreen.h hsv.h resources.h \
33                   spline.h usleep.h utils.h version.h visual.h vroot.h xmu.h \
34                   yarandom.h erase.h sgivideo.h
35 EXTRAS          = README Makefile.in ad2c
36 VMSFILES        = compile_axp.com compile_decc.com vms-gtod.c vms-gtod.h \
37                   vms-strdup.c
38
39 TARFILES        = $(EXTRAS) $(VMSFILES) $(SRCS) $(HDRS)
40
41
42 all: $(OBJS)
43
44 install:   install-program   install-man
45 uninstall: uninstall-program uninstall-man
46
47 install-strip:
48         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
49
50 install-program:
51 install-man:
52 uninstall-program:
53 uninstall-man:
54
55 clean:
56         -rm -f *.o a.out core
57
58 distclean: clean
59         -rm -f config.h Makefile *~ "#"*
60
61 # Adds all current dependencies to Makefile
62 depend:
63         $(DEPEND) -s '# DO NOT DELETE: updated by make depend'              \
64         $(DEPEND_FLAGS) --                                                  \
65         $(INCLUDES) $(DEFS) $(DEPEND_DEFINES) $(CFLAGS) $(X_CFLAGS) --      \
66         $(SRCS)
67
68 # Adds some dependencies to Makefile.in -- not totally accurate, but pretty
69 # close.  This excludes dependencies on files in /usr/include, etc.  It tries
70 # to include only dependencies on files which are themselves a part of this
71 # package.
72 distdepend::
73         @echo updating dependencies in `pwd`/Makefile.in... ;               \
74         $(DEPEND) -w 0 -f -                                                 \
75         -s '# DO NOT DELETE: updated by make distdepend' $(DEPEND_FLAGS) -- \
76         $(INCLUDES) $(DEFS) $(DEPEND_DEFINES) $(CFLAGS) $(X_CFLAGS) --      \
77         $(SRCS) |                                                           \
78         (                                                                   \
79           awk '/^# .*Makefile.in ---/,/^# DO .*distdepend/' < Makefile.in ; \
80           sed -e 's@ \./@ @g;s@ /[^ ]*@@g;/^.*:$$/d'                        \
81               -e 's@ \([^$$]\)@ $$(srcdir)/\1@g'                            \
82               -e 's@ $$(srcdir)/\(.*config.h\)@ \1@g' ;                     \
83           echo ''                                                           \
84         ) > /tmp/distdepend.$$$$ &&                                         \
85         mv Makefile.in Makefile.in.bak &&                                   \
86         mv /tmp/distdepend.$$$$ Makefile.in
87
88 TAGS: tags
89 tags:
90         find $(srcdir) -name '*.[chly]' -print | xargs etags -a
91
92 echo_tarfiles:
93         @echo $(TARFILES)
94
95
96 # How we build object files in this directory.
97 .c.o:
98         $(CC) -c $(INCLUDES) $(DEFS) $(CFLAGS) $(X_CFLAGS) $<
99
100
101 # Rules for generating the VMS makefiles on Unix, so that it doesn't have to
102 # be done by hand...
103 #
104 VMS_AXP_COMPILE=$$ CC/DECC/PREFIX=ALL/DEFINE=(VMS,HAVE_CONFIG_H)/INCL=([],[-])
105
106 compile_axp.com: Makefile.in
107         @echo generating $@ from $<...  ;                                   \
108         ( ( for c in $(SRCS) vms-*.c ; do                                   \
109               c=`echo $$c | tr a-z A-Z` ;                                   \
110               echo "$(VMS_AXP_COMPILE) $$c" ;                               \
111             done ;                                                          \
112           ) | sort ;                                                        \
113           echo '$$ lib/cre utils.olb_axp' ;                                 \
114           echo '$$ lib utils.olb_axp *.obj' ;                               \
115           echo '$$! delete/noconf *.obj;' ;                                 \
116         ) > $@
117
118 compile_decc.com: compile_axp.com
119         @echo generating $@ from $<...  ;                                   \
120         sed 's/axp/decc/g' < $< > $@
121
122 distdepend:: compile_axp.com compile_decc.com
123
124
125 ##############################################################################
126 #
127 # DO NOT DELETE: updated by make distdepend
128
129 alpha.o: $(srcdir)/utils.h
130 alpha.o: ../config.h
131 alpha.o: $(srcdir)/alpha.h
132 alpha.o: $(srcdir)/hsv.h
133 alpha.o: $(srcdir)/yarandom.h
134 alpha.o: $(srcdir)/resources.h
135 colors.o: $(srcdir)/utils.h
136 colors.o: ../config.h
137 colors.o: $(srcdir)/hsv.h
138 colors.o: $(srcdir)/yarandom.h
139 colors.o: $(srcdir)/visual.h
140 colors.o: $(srcdir)/colors.h
141 fade.o: $(srcdir)/utils.h
142 fade.o: ../config.h
143 fade.o: $(srcdir)/visual.h
144 fade.o: $(srcdir)/usleep.h
145 fade.o: $(srcdir)/fade.h
146 grabscreen.o: $(srcdir)/utils.h
147 grabscreen.o: ../config.h
148 grabscreen.o: $(srcdir)/yarandom.h
149 grabscreen.o: $(srcdir)/usleep.h
150 grabscreen.o: $(srcdir)/colors.h
151 grabscreen.o: $(srcdir)/grabscreen.h
152 grabscreen.o: $(srcdir)/sgivideo.h
153 grabscreen.o: $(srcdir)/visual.h
154 grabscreen.o: $(srcdir)/resources.h
155 grabscreen.o: $(srcdir)/vroot.h
156 hsv.o: $(srcdir)/utils.h
157 hsv.o: ../config.h
158 hsv.o: $(srcdir)/hsv.h
159 overlay.o: $(srcdir)/utils.h
160 overlay.o: ../config.h
161 overlay.o: $(srcdir)/visual.h
162 resources.o: $(srcdir)/utils.h
163 resources.o: ../config.h
164 resources.o: $(srcdir)/resources.h
165 spline.o: $(srcdir)/utils.h
166 spline.o: ../config.h
167 spline.o: $(srcdir)/spline.h
168 usleep.o: ../config.h
169 visual.o: $(srcdir)/utils.h
170 visual.o: ../config.h
171 visual.o: $(srcdir)/resources.h
172 visual.o: $(srcdir)/visual.h
173 xmu.o: ../config.h
174 xroger.o: $(srcdir)/utils.h
175 xroger.o: ../config.h
176 xroger.o: $(srcdir)/spline.h
177 yarandom.o: ../config.h
178 yarandom.o: $(srcdir)/yarandom.h
179 erase.o: $(srcdir)/utils.h
180 erase.o: ../config.h
181 erase.o: $(srcdir)/yarandom.h
182 erase.o: $(srcdir)/usleep.h
183 erase.o: $(srcdir)/resources.h
184 sgivideo.o: $(srcdir)/utils.h
185 sgivideo.o: ../config.h
186 sgivideo.o: $(srcdir)/sgivideo.h
187 sgivideo.o: $(srcdir)/resources.h
188 sgivideo.o: $(srcdir)/visual.h
189 sgivideo.o: $(srcdir)/usleep.h
190