These are the changes I had made in my source tree between 4.2.6 and
[xboard.git] / Makefile.in
1 #
2 # Run ./configure to generate a Makefile from Makefile.in
3 # See INSTALL for more information
4 # $Id$
5 #
6
7 PRODUCT = @PRODUCT@
8 VERSION = @VERSION@
9 PATCHLEVEL = @PATCHLEVEL@
10
11 SHELL = /bin/sh
12 srcdir = @srcdir@
13 VPATH = @srcdir@
14
15 prefix = @prefix@
16 exec_prefix = @exec_prefix@
17 bindir = @bindir@
18 mandir = @mandir@
19 man6dir = $(mandir)/man6
20 man6ext = .6
21 # Yuck; the autoconf generated configure script sets an infodir variable
22 # and provides a command-line flag to change it, but the default is 
23 # /usr/info instead of /usr/share/info.
24 infodir = $(prefix)/share/info
25
26 CC = @CC@
27 CFLAGS = @CFLAGS@ @CPPFLAGS@ -DINFODIR=\"$(infodir)\"
28 ALL_CFLAGS = -I. -I$(srcdir) @X_CFLAGS@ @CONF_CFLAGS@ $(CFLAGS)
29 DEFINES = @DEFS@
30 INSTALL = @INSTALL@
31 INSTALL_DATA = @INSTALL_DATA@
32 INSTALL_PROGRAM = @INSTALL_PROGRAM@
33 LDFLAGS = @LDFLAGS@
34 ALL_LDFLAGS = @CONF_LDFLAGS@ $(LDFLAGS)
35 LEX = @LEX@
36 LEXFLAGS = 
37 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
38 LIBS = @X_LIBS@ @XAW_LIBS@ @PRE_XMULIB@ -lXmu @POST_XMULIB@ -lXt -lXext \
39         @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@ @LIBS@ -lm
40 NROFF = @NROFF@
41 NROFFFLAGS = @NROFFFLAGS@
42
43 DISTSOURCE = COPYING COPYRIGHT ChangeLog ChangeLog.2 FAQ FAQ.html \
44         INSTALL Makefile.in READ_ME ToDo backend.c backend.h \
45         backendz.h bitmaps bitmaps.xchess childio.c childio.h cmail.in \
46         cmail.man comment.in common.h config.guess config.sub \
47         configure configure.in engine-intf.html frontend.h gamelist.c \
48         ics-parsing.txt install-sh kk13.pgn lists.c \
49         lists.h mkinstalldirs moves.c moves.h parser.h parser.l pgntags.c \
50         pxboard xboard.c xboard.h xboard.man xedittags.c xedittags.h \
51         xgamelist.c xgamelist.h xhistory.c xhistory.h acconfig.h config.h.in \
52         xboard.texinfo.in xboard.texi gpl.texinfo zic2xpm.c zic2xpm.man \
53         pixmaps sounds xboard.ps bitmaps.unused winboard
54
55 ZIPPYSOURCE = zippy.README zippy.c zippy.h zippy.lines
56
57 DISTDIR = @PRODUCT@-@VERSION@.@PATCHLEVEL@
58
59 XBOARDOBJ = parser.o xboard.o backend.o moves.o childio.o gamelist.o \
60         lists.o pgntags.o xgamelist.o xedittags.o xhistory.o @ZIPPY_O@
61
62 ### Targets required by GNU standards #######################################
63
64 all: xboard zic2xpm xboard.doc cmail.doc zic2xpm.doc
65
66 more: all pseudo-source info FAQ html dvi ps
67
68 install: installdirs xboard zic2xpm cmail pxboard xboard.man cmail.man \
69                 zic2xpm.man
70         $(INSTALL_PROGRAM) -s xboard $(bindir)/xboard
71         $(INSTALL_PROGRAM) -s zic2xpm $(bindir)/zic2xpm
72         $(INSTALL_PROGRAM) cmail $(bindir)/cmail
73         $(INSTALL_PROGRAM) $(srcdir)/pxboard $(bindir)/pxboard
74         $(INSTALL_DATA) $(srcdir)/xboard.man $(man6dir)/xboard$(man6ext)
75         $(INSTALL_DATA) $(srcdir)/cmail.man $(man6dir)/cmail$(man6ext)
76         $(INSTALL_DATA) $(srcdir)/zic2xpm.man $(man6dir)/zic2xpm$(man6ext)
77         $(INSTALL_DATA) xboard.info $(infodir)/xboard.info
78         -PATH=$$PATH:/sbin:/usr/sbin install-info \
79                 $(infodir)/xboard.info $(infodir)/dir
80
81 installdirs: mkinstalldirs
82         $(srcdir)/mkinstalldirs $(bindir) $(mandir) $(man6dir) $(infodir)
83
84 uninstall:
85         rm -f $(bindir)/xboard $(bindir)/cmail $(bindir)/pxboard
86         rm -f $(bindir)/zic2xpm
87         rm -f $(man6dir)/xboard$(man6ext) $(man6dir)/cmail$(man6ext)
88         rm -f $(man6dir)/zic2xpm$(man6ext)
89         rm -f $(infodir)/xboard.info
90         -PATH=$$PATH:/sbin:/usr/sbin install-info --delete \
91                 $(infodir)/xboard.info $(infodir)/dir
92
93 clean:
94         rm -f xboard zic2xpm *.o *.doc $(LEX_OUTPUT_ROOT).c
95         rm -f xboard_*.html xboard.aux* xboard.cp* xboard.dvi xboard.fn*
96         rm -f xboard.ky* xboard.log xboard.pg* xboard.toc xboard.tp*
97         rm -f xboard.vr* xboard.ps
98
99 distclean: clean tidy
100         rm -f config.cache config.log config.status Makefile 
101         rm -f config.h stamp-h xboard.texinfo cmail comment.awk
102         cd winboard ; make -f cygwin.mak clean
103
104 mostlyclean: clean
105
106 maintainer-clean: distclean
107         @echo "This command is intended for maintainers to use;"
108         @echo "it deletes files that may require special tools to rebuild."
109         rm -f parser.c xboard.info FAQ
110         cd winboard ; make -f cygwin.mak maintainer-clean
111
112 TAGS:
113         etags *.c *.h
114
115 info: xboard.info
116
117 xboard.info: xboard.texinfo xboard.texi gpl.texinfo configure.in
118         makeinfo --no-split -I $(srcdir) xboard.texinfo
119
120 ps: xboard.ps
121
122 xboard.ps: xboard.dvi   
123         dvips -o xboard.ps xboard.dvi
124
125 dvi: xboard.dvi
126
127 xboard.dvi: xboard.texinfo xboard.texi gpl.texinfo configure.in
128         TEXINPUTS=.:$(srcdir): texi2dvi xboard.texinfo
129
130 html: xboard_toc.html
131
132 xboard_toc.html: xboard.texinfo xboard.texi gpl.texinfo configure.in
133         texi2html -split_chapter -I $(srcdir) xboard.texinfo
134
135 FAQ: FAQ.html
136         lynx -dump -nolist $(srcdir)/FAQ.html > FAQ
137
138 nothinglocked:
139         @echo -n Testing that no RCS files are locked...
140         @test `rlog -L -R RCS/*,v | tee .locked | wc -l` = 0 || \
141                 ( echo 'ERROR - the following are locked: ' 2>&1 ;\
142                   cat .locked 2>&1 ;\
143                   false )
144         @echo OK
145
146 pseudo-source: parser.c xboard.info FAQ
147
148 dist: nothinglocked
149         mkdir $(DISTDIR)
150         rlog -h RCS/*,v | egrep '^RCS file:|head:' > RCS/$(DISTDIR).rcs
151         cp -r $(DISTSOURCE) $(ZIPPYSOURCE) $(DISTDIR)/
152         if echo $(DISTDIR) | grep -i beta ; then \
153             cp -r READ_ME_FIRST $(DISTDIR)/ ; \
154         fi
155         cp parser.c xboard.info FAQ $(DISTDIR)/
156         tar cvf - $(DISTDIR) | gzip > $(DISTDIR).tar.gz
157
158 check: all
159
160 ### End targets required by GNU standards ###################################
161
162 .SUFFIXES:
163 .SUFFIXES: .c .o .man .doc
164
165 .c.o:
166         $(CC) $(DEFINES) $(ALL_CFLAGS) -c $<
167
168 .man.doc:
169         $(NROFF) $(NROFFFLAGS) $< > $*.doc
170
171 xboard: $(XBOARDOBJ)
172         $(CC) -o xboard $(ALL_LDFLAGS) $(XBOARDOBJ) $(LIBS)
173
174 zic2xpm: zic2xpm.o
175         $(CC) -o zic2xpm zic2xpm.o
176
177 parser.c: parser.l
178         $(LEX) $(LEXFLAGS) $(srcdir)/parser.l
179         mv $(LEX_OUTPUT_ROOT).c parser.c
180
181 parser.o: parser.c
182
183
184 tidy:
185         rm -f ,* .,* .emacs_[0-9]* core a.out *~ *.BAK *.CKP .nfs*
186
187 backend.o: backendz.h
188 backend.o: config.h
189 backend.o: common.h
190 backend.o: frontend.h
191 backend.o: backend.h lists.h
192 backend.o: parser.h
193 backend.o: moves.h
194 backend.o: @ZIPPY_H@
195 childio.o: config.h
196 childio.o: common.h
197 childio.o: frontend.h
198 gamelist.o: config.h
199 gamelist.o: common.h
200 gamelist.o: frontend.h
201 gamelist.o: backend.h lists.h
202 gamelist.o: parser.h
203 lists.o: config.h
204 lists.o: common.h
205 lists.o: lists.h
206 moves.o: config.h
207 moves.o: common.h
208 moves.o: backend.h lists.h
209 moves.o: moves.h
210 moves.o: parser.h
211 parser.o: config.h
212 parser.o: common.h
213 parser.o: backend.h
214 parser.o: frontend.h
215 parser.o: parser.h
216 parser.o: moves.h
217 pgntags.o: config.h
218 pgntags.o: common.h
219 pgntags.o: frontend.h
220 pgntags.o: backend.h lists.h
221 pgntags.o: parser.h
222 xboard.o: config.h
223 xboard.o: common.h
224 xboard.o: frontend.h
225 xboard.o: backend.h lists.h
226 xboard.o: moves.h
227 xboard.o: xboard.h
228 xboard.o: childio.h
229 xboard.o: $(srcdir)/bitmaps/bitmaps.h
230 xboard.o: xgamelist.h
231 xboard.o: xedittags.h
232 xboard.o: xhistory.h
233 xedittags.o: config.h
234 xedittags.o: common.h
235 xedittags.o: frontend.h
236 xedittags.o: backend.h lists.h
237 xedittags.o: xboard.h
238 xedittags.o: xedittags.h
239 xgamelist.o: config.h
240 xgamelist.o: common.h
241 xgamelist.o: frontend.h
242 xgamelist.o: backend.h lists.h
243 xgamelist.o: xboard.h
244 xgamelist.o: xgamelist.h
245 xhistory.o: config.h
246 xhistory.o: common.h
247 xhistory.o: frontend.h
248 xhistory.o: backend.h
249 xhistory.o: xboard.h
250 xhistory.o: xhistory.h
251 xhistory.o: lists.h
252 zippy.o: backend.h
253 zippy.o: backendz.h
254 zippy.o: config.h
255 zippy.o: common.h
256 zippy.o: zippy.h
257 zippy.o: frontend.h
258