some cleanups
[gnupg.git] / g10 / Makefile.in
1 # Makefile.in generated automatically by automake 1.2f from Makefile.am
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
4 # This Makefile.in is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13
14 SHELL = /bin/sh
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 prefix = @prefix@
20 exec_prefix = @exec_prefix@
21
22 bindir = @bindir@
23 sbindir = @sbindir@
24 libexecdir = @libexecdir@
25 datadir = @datadir@
26 sysconfdir = @sysconfdir@
27 sharedstatedir = @sharedstatedir@
28 localstatedir = @localstatedir@
29 libdir = @libdir@
30 infodir = @infodir@
31 mandir = @mandir@
32 includedir = @includedir@
33 oldincludedir = /usr/include
34
35 pkgdatadir = $(datadir)/@PACKAGE@
36 pkglibdir = $(libdir)/@PACKAGE@
37 pkgincludedir = $(includedir)/@PACKAGE@
38
39 top_builddir = ..
40
41 ACLOCAL = @ACLOCAL@
42 AUTOCONF = @AUTOCONF@
43 AUTOMAKE = @AUTOMAKE@
44 AUTOHEADER = @AUTOHEADER@
45
46 INSTALL = @INSTALL@
47 INSTALL_PROGRAM = @INSTALL_PROGRAM@
48 INSTALL_DATA = @INSTALL_DATA@
49 INSTALL_SCRIPT = @INSTALL_SCRIPT@
50 transform = @program_transform_name@
51
52 NORMAL_INSTALL = :
53 PRE_INSTALL = :
54 POST_INSTALL = :
55 NORMAL_UNINSTALL = :
56 PRE_UNINSTALL = :
57 POST_UNINSTALL = :
58 build_alias = @build_alias@
59 build_triplet = @build@
60 host_alias = @host_alias@
61 host_triplet = @host@
62 target_alias = @target_alias@
63 target_triplet = @target@
64 CATALOGS = @CATALOGS@
65 CATOBJEXT = @CATOBJEXT@
66 CC = @CC@
67 CIPHER_EXTRA_DIST = @CIPHER_EXTRA_DIST@
68 CIPHER_EXTRA_OBJS = @CIPHER_EXTRA_OBJS@
69 CPP = @CPP@
70 DATADIRNAME = @DATADIRNAME@
71 G10_LOCALEDIR = @G10_LOCALEDIR@
72 GENCAT = @GENCAT@
73 GMOFILES = @GMOFILES@
74 GMSGFMT = @GMSGFMT@
75 GT_NO = @GT_NO@
76 GT_YES = @GT_YES@
77 INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
78 INSTOBJEXT = @INSTOBJEXT@
79 INTLDEPS = @INTLDEPS@
80 INTLLIBS = @INTLLIBS@
81 INTLOBJS = @INTLOBJS@
82 MKINSTALLDIRS = @MKINSTALLDIRS@
83 MPI_EXTRA_ASM_OBJS = @MPI_EXTRA_ASM_OBJS@
84 MSGFMT = @MSGFMT@
85 PACKAGE = @PACKAGE@
86 POFILES = @POFILES@
87 POSUB = @POSUB@
88 RANLIB = @RANLIB@
89 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
90 USE_NLS = @USE_NLS@
91 VERSION = @VERSION@
92 ZLIBS = @ZLIBS@
93 l = @l@
94
95 INCLUDES = -I$(top_srcdir)/include
96 EXTRA_DIST = OPTIONS  pubring.asc
97 OMIT_DEPENDENCIES = zlib.h zconf.h
98 BUILT_SOURCES = g10maint.c
99 needed_libs = ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a
100
101 bin_PROGRAMS = gpg gpgm
102
103 common_source =  \
104               build-packet.c    \
105               compress.c        \
106               filter.h          \
107               free-packet.c     \
108               getkey.c          \
109               keydb.h           \
110               pkclist.c         \
111               skclist.c         \
112               ringedit.c        \
113               kbnode.c          \
114               main.h            \
115               mainproc.c        \
116               armor.c           \
117               mdfilter.c        \
118               textfilter.c      \
119               cipher.c          \
120               elg.c             \
121               dsa.c             \
122               rsa.c             \
123               options.h         \
124               openfile.c        \
125               keyid.c           \
126               trustdb.c         \
127               trustdb.h         \
128               packet.h          \
129               parse-packet.c    \
130               passphrase.c      \
131               pubkey-enc.c      \
132               seckey-cert.c     \
133               seskey.c          \
134               import.c          \
135               export.c          \
136               comment.c         \
137               status.c          \
138               status.h          \
139               sign.c            \
140               plaintext.c       \
141               encr-data.c       \
142               encode.c          \
143               revoke.c          \
144               keylist.c         \
145               sig-check.c       \
146               signal.c
147
148 gpg_SOURCES  = g10.c            \
149               $(common_source)  \
150               verify.c          \
151               decrypt.c         \
152               keygen.c
153
154 gpgm_SOURCES = g10maint.c   \
155               dearmor.c     \
156               $(common_source)
157
158 LDADD = @INTLLIBS@ $(needed_libs) @ZLIBS@
159 mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
160 CONFIG_HEADER = ../config.h
161 CONFIG_CLEAN_FILES = 
162 PROGRAMS =  $(bin_PROGRAMS)
163
164
165 DEFS = @DEFS@ -I. -I$(srcdir) -I..
166 CPPFLAGS = @CPPFLAGS@
167 LDFLAGS = @LDFLAGS@
168 LIBS = @LIBS@
169 gpg_OBJECTS =  g10.o build-packet.o compress.o free-packet.o getkey.o \
170 pkclist.o skclist.o ringedit.o kbnode.o mainproc.o armor.o mdfilter.o \
171 textfilter.o cipher.o elg.o dsa.o rsa.o openfile.o keyid.o trustdb.o \
172 parse-packet.o passphrase.o pubkey-enc.o seckey-cert.o seskey.o \
173 import.o export.o comment.o status.o sign.o plaintext.o encr-data.o \
174 encode.o revoke.o keylist.o sig-check.o signal.o verify.o decrypt.o \
175 keygen.o
176 gpg_LDADD = $(LDADD)
177 gpg_DEPENDENCIES =  ../cipher/libcipher.a ../mpi/libmpi.a \
178 ../util/libutil.a
179 gpg_LDFLAGS = 
180 gpgm_OBJECTS =  g10maint.o dearmor.o build-packet.o compress.o \
181 free-packet.o getkey.o pkclist.o skclist.o ringedit.o kbnode.o \
182 mainproc.o armor.o mdfilter.o textfilter.o cipher.o elg.o dsa.o rsa.o \
183 openfile.o keyid.o trustdb.o parse-packet.o passphrase.o pubkey-enc.o \
184 seckey-cert.o seskey.o import.o export.o comment.o status.o sign.o \
185 plaintext.o encr-data.o encode.o revoke.o keylist.o sig-check.o \
186 signal.o
187 gpgm_LDADD = $(LDADD)
188 gpgm_DEPENDENCIES =  ../cipher/libcipher.a ../mpi/libmpi.a \
189 ../util/libutil.a
190 gpgm_LDFLAGS = 
191 CFLAGS = @CFLAGS@
192 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
193 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
194 DIST_COMMON =  ChangeLog Makefile.am Makefile.in
195
196
197 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
198
199 TAR = tar
200 GZIP = --best
201 DEP_FILES =  .deps/armor.P .deps/build-packet.P .deps/cipher.P \
202 .deps/comment.P .deps/compress.P .deps/dearmor.P .deps/decrypt.P \
203 .deps/dsa.P .deps/elg.P .deps/encode.P .deps/encr-data.P .deps/export.P \
204 .deps/free-packet.P .deps/g10.P .deps/g10maint .deps/g10maint.P \
205 .deps/getkey.P .deps/import.P .deps/kbnode.P .deps/keygen.P \
206 .deps/keyid.P .deps/keylist.P .deps/mainproc.P .deps/mdfilter.P \
207 .deps/openfile.P .deps/parse-packet.P .deps/passphrase.P \
208 .deps/pkclist.P .deps/plaintext.P .deps/pubkey-enc.P .deps/revoke.P \
209 .deps/ringedit.P .deps/rsa.P .deps/seckey-cert.P .deps/seskey.P \
210 .deps/sig-check.P .deps/sign.P .deps/signal.P .deps/skclist.P \
211 .deps/status.P .deps/textfilter.P .deps/trustdb.P .deps/verify.P
212 SOURCES = $(gpg_SOURCES) $(gpgm_SOURCES)
213 OBJECTS = $(gpg_OBJECTS) $(gpgm_OBJECTS)
214
215 default: all
216
217 .SUFFIXES:
218 .SUFFIXES: .S .c .o .s
219 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
220         cd $(top_srcdir) && $(AUTOMAKE) --gnu g10/Makefile
221
222 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
223         cd $(top_builddir) \
224           && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
225
226
227 mostlyclean-binPROGRAMS:
228
229 clean-binPROGRAMS:
230         -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
231
232 distclean-binPROGRAMS:
233
234 maintainer-clean-binPROGRAMS:
235
236 install-binPROGRAMS: $(bin_PROGRAMS)
237         @$(NORMAL_INSTALL)
238         $(mkinstalldirs) $(bindir)
239         @list='$(bin_PROGRAMS)'; for p in $$list; do \
240           if test -f $$p; then \
241             echo "  $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
242              $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
243           else :; fi; \
244         done
245
246 uninstall-binPROGRAMS:
247         @$(NORMAL_UNINSTALL)
248         list='$(bin_PROGRAMS)'; for p in $$list; do \
249           rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
250         done
251
252 .s.o:
253         $(COMPILE) -c $<
254
255 .S.o:
256         $(COMPILE) -c $<
257
258 mostlyclean-compile:
259         -rm -f *.o core *.core
260
261 clean-compile:
262
263 distclean-compile:
264         -rm -f *.tab.c
265
266 maintainer-clean-compile:
267
268 gpg: $(gpg_OBJECTS) $(gpg_DEPENDENCIES)
269         @rm -f gpg
270         $(LINK) $(gpg_LDFLAGS) $(gpg_OBJECTS) $(gpg_LDADD) $(LIBS)
271
272 gpgm: $(gpgm_OBJECTS) $(gpgm_DEPENDENCIES)
273         @rm -f gpgm
274         $(LINK) $(gpgm_LDFLAGS) $(gpgm_OBJECTS) $(gpgm_LDADD) $(LIBS)
275
276 tags: TAGS
277
278 ID: $(HEADERS) $(SOURCES) $(LISP)
279         here=`pwd` && cd $(srcdir) \
280           && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
281
282 TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
283         tags=; \
284         here=`pwd`; \
285         list='$(SOURCES) $(HEADERS)'; \
286         unique=`for i in $$list; do echo $$i; done | \
287           awk '    { files[$$0] = 1; } \
288                END { for (i in files) print i; }'`; \
289         test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
290           || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
291
292 mostlyclean-tags:
293
294 clean-tags:
295
296 distclean-tags:
297         -rm -f TAGS ID
298
299 maintainer-clean-tags:
300
301 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
302
303 subdir = g10
304
305 distdir: $(DISTFILES)
306         here=`cd $(top_builddir) && pwd`; \
307         top_distdir=`cd $(top_distdir) && pwd`; \
308         distdir=`cd $(distdir) && pwd`; \
309         cd $(top_srcdir) \
310           && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu g10/Makefile
311         @for file in $(DISTFILES); do \
312           d=$(srcdir); \
313           test -f $(distdir)/$$file \
314           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
315           || cp -p $$d/$$file $(distdir)/$$file; \
316         done
317
318 DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
319
320 -include $(DEP_FILES)
321
322 mostlyclean-depend:
323
324 clean-depend:
325
326 distclean-depend:
327
328 maintainer-clean-depend:
329         -rm -rf .deps
330
331 %.o: %.c
332         @echo '$(COMPILE) -c $<'; \
333         $(COMPILE) -Wp,-MD,.deps/$(*F).P -c $<
334
335 %.lo: %.c
336         @echo '$(LTCOMPILE) -c $<'; \
337         $(LTCOMPILE) -Wp,-MD,.deps/$(*F).p -c $<
338         @-sed -e 's/^\([^:]*\)\.o:/\1.lo \1.o:/' \
339           < .deps/$(*F).p > .deps/$(*F).P
340         @-rm -f .deps/$(*F).p
341 info:
342 dvi:
343 check: all
344         $(MAKE)
345 installcheck:
346 install-exec: install-binPROGRAMS
347         @$(NORMAL_INSTALL)
348
349 install-data: 
350         @$(NORMAL_INSTALL)
351
352 install: install-exec install-data all
353         @:
354
355 uninstall: uninstall-binPROGRAMS
356
357 all: Makefile $(PROGRAMS)
358
359 install-strip:
360         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
361 installdirs:
362         $(mkinstalldirs)  $(bindir)
363
364
365 mostlyclean-generic:
366         -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
367
368 clean-generic:
369         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
370
371 distclean-generic:
372         -rm -f Makefile $(DISTCLEANFILES)
373         -rm -f config.cache config.log stamp-h stamp-h[0-9]*
374         -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
375
376 maintainer-clean-generic:
377         -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
378         -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
379 mostlyclean:  mostlyclean-binPROGRAMS mostlyclean-compile \
380                 mostlyclean-tags mostlyclean-depend mostlyclean-generic
381
382 clean:  clean-binPROGRAMS clean-compile clean-tags clean-depend \
383                 clean-generic mostlyclean
384
385 distclean:  distclean-binPROGRAMS distclean-compile distclean-tags \
386                 distclean-depend distclean-generic clean
387         -rm -f config.status
388
389 maintainer-clean:  maintainer-clean-binPROGRAMS maintainer-clean-compile \
390                 maintainer-clean-tags maintainer-clean-depend \
391                 maintainer-clean-generic distclean
392         @echo "This command is intended for maintainers to use;"
393         @echo "it deletes files that may require special tools to rebuild."
394
395 .PHONY: default mostlyclean-binPROGRAMS distclean-binPROGRAMS \
396 clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
397 install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
398 maintainer-clean-compile tags mostlyclean-tags distclean-tags \
399 clean-tags maintainer-clean-tags distdir mostlyclean-depend \
400 distclean-depend clean-depend maintainer-clean-depend info dvi \
401 installcheck install-exec install-data install uninstall all \
402 installdirs mostlyclean-generic distclean-generic clean-generic \
403 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
404
405
406 g10maint.c : g10.c
407             $(CPP) $(DEFS) $(INCLUDES) -DIS_G10MAINT  $<  > $@ || rm $@
408
409 $(PROGRAMS): $(needed_libs)
410
411 # Tell versions [3.59,3.63) of GNU make to not export all variables.
412 # Otherwise a system limit (for SysV at least) may be exceeded.
413 .NOEXPORT: