new release
[gnupg.git] / g10 / Makefile.in
index caffcd7..d954b68 100644 (file)
@@ -92,13 +92,12 @@ VERSION = @VERSION@
 ZLIBS = @ZLIBS@
 l = @l@
 
-INCLUDES = -I$(top_srcdir)/include
+INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/intl -I../intl
 EXTRA_DIST = OPTIONS  pubring.asc
 OMIT_DEPENDENCIES = zlib.h zconf.h
-BUILT_SOURCES = g10maint.c
 needed_libs = ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a
 
-bin_PROGRAMS = gpg gpgm
+bin_PROGRAMS = gpg gpgm gpgd
 
 common_source =  \
              build-packet.c    \
@@ -118,7 +117,9 @@ common_source =  \
              textfilter.c      \
              cipher.c          \
              elg.c             \
+             dsa.c             \
              rsa.c             \
+             misc.c            \
              options.h         \
              openfile.c        \
              keyid.c           \
@@ -136,22 +137,32 @@ common_source =  \
              status.c          \
              status.h          \
              sign.c            \
+             keyedit.c         \
              plaintext.c       \
              encr-data.c       \
              encode.c          \
              revoke.c          \
-             sig-check.c
+             keylist.c         \
+             sig-check.c       \
+             signal.c
 
 gpg_SOURCES  = g10.c           \
              $(common_source)  \
+             verify.c          \
+             decrypt.c         \
              keygen.c
 
-gpgm_SOURCES = g10maint.c   \
-             dearmor.c     \
-             keylist.c     \
+gpgm_SOURCES = dearmor.c     \
+             $(common_source)
+
+gpgd_SOURCES = gpgd.c \
+             ks-proto.h \
+             ks-proto.c \
              $(common_source)
 
 LDADD = @INTLLIBS@ $(needed_libs) @ZLIBS@
+
+gpgm_LDADD = g10maint.o $(LDADD)
 mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
 CONFIG_HEADER = ../config.h
 CONFIG_CLEAN_FILES = 
@@ -164,24 +175,36 @@ LDFLAGS = @LDFLAGS@
 LIBS = @LIBS@
 gpg_OBJECTS =  g10.o build-packet.o compress.o free-packet.o getkey.o \
 pkclist.o skclist.o ringedit.o kbnode.o mainproc.o armor.o mdfilter.o \
-textfilter.o cipher.o elg.o rsa.o openfile.o keyid.o trustdb.o \
-parse-packet.o passphrase.o pubkey-enc.o seckey-cert.o seskey.o \
-import.o export.o comment.o status.o sign.o plaintext.o encr-data.o \
-encode.o revoke.o sig-check.o keygen.o
+textfilter.o cipher.o elg.o dsa.o rsa.o misc.o openfile.o keyid.o \
+trustdb.o parse-packet.o passphrase.o pubkey-enc.o seckey-cert.o \
+seskey.o import.o export.o comment.o status.o sign.o keyedit.o \
+plaintext.o encr-data.o encode.o revoke.o keylist.o sig-check.o \
+signal.o verify.o decrypt.o keygen.o
 gpg_LDADD = $(LDADD)
 gpg_DEPENDENCIES =  ../cipher/libcipher.a ../mpi/libmpi.a \
 ../util/libutil.a
 gpg_LDFLAGS = 
-gpgm_OBJECTS =  g10maint.o dearmor.o keylist.o build-packet.o compress.o \
-free-packet.o getkey.o pkclist.o skclist.o ringedit.o kbnode.o \
-mainproc.o armor.o mdfilter.o textfilter.o cipher.o elg.o rsa.o \
-openfile.o keyid.o trustdb.o parse-packet.o passphrase.o pubkey-enc.o \
+gpgm_OBJECTS =  dearmor.o build-packet.o compress.o free-packet.o \
+getkey.o pkclist.o skclist.o ringedit.o kbnode.o mainproc.o armor.o \
+mdfilter.o textfilter.o cipher.o elg.o dsa.o rsa.o misc.o openfile.o \
+keyid.o trustdb.o parse-packet.o passphrase.o pubkey-enc.o \
 seckey-cert.o seskey.o import.o export.o comment.o status.o sign.o \
-plaintext.o encr-data.o encode.o revoke.o sig-check.o
-gpgm_LDADD = $(LDADD)
-gpgm_DEPENDENCIES =  ../cipher/libcipher.a ../mpi/libmpi.a \
+keyedit.o plaintext.o encr-data.o encode.o revoke.o keylist.o \
+sig-check.o signal.o
+gpgm_DEPENDENCIES =  g10maint.o ../cipher/libcipher.a ../mpi/libmpi.a \
 ../util/libutil.a
 gpgm_LDFLAGS = 
+gpgd_OBJECTS =  gpgd.o ks-proto.o build-packet.o compress.o \
+free-packet.o getkey.o pkclist.o skclist.o ringedit.o kbnode.o \
+mainproc.o armor.o mdfilter.o textfilter.o cipher.o elg.o dsa.o rsa.o \
+misc.o openfile.o keyid.o trustdb.o parse-packet.o passphrase.o \
+pubkey-enc.o seckey-cert.o seskey.o import.o export.o comment.o \
+status.o sign.o keyedit.o plaintext.o encr-data.o encode.o revoke.o \
+keylist.o sig-check.o signal.o
+gpgd_LDADD = $(LDADD)
+gpgd_DEPENDENCIES =  ../cipher/libcipher.a ../mpi/libmpi.a \
+../util/libutil.a
+gpgd_LDFLAGS = 
 CFLAGS = @CFLAGS@
 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
@@ -193,18 +216,19 @@ DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 TAR = tar
 GZIP = --best
 DEP_FILES =  .deps/armor.P .deps/build-packet.P .deps/cipher.P \
-.deps/comment.P .deps/compress.P .deps/dearmor.P .deps/elg.P \
-.deps/encode.P .deps/encr-data.P .deps/export.P .deps/free-packet.P \
-.deps/g10.P .deps/g10maint .deps/g10maint.P .deps/getkey.P \
-.deps/import.P .deps/kbnode.P .deps/keygen.P .deps/keyid.P \
-.deps/keylist.P .deps/mainproc.P .deps/mdfilter.P .deps/openfile.P \
-.deps/parse-packet.P .deps/passphrase.P .deps/pkclist.P \
-.deps/plaintext.P .deps/pubkey-enc.P .deps/revoke.P .deps/ringedit.P \
-.deps/rsa.P .deps/seckey-cert.P .deps/seskey.P .deps/sig-check.P \
-.deps/sign.P .deps/skclist.P .deps/status.P .deps/textfilter.P \
-.deps/trustdb.P
-SOURCES = $(gpg_SOURCES) $(gpgm_SOURCES)
-OBJECTS = $(gpg_OBJECTS) $(gpgm_OBJECTS)
+.deps/comment.P .deps/compress.P .deps/dearmor.P .deps/decrypt.P \
+.deps/dsa.P .deps/elg.P .deps/encode.P .deps/encr-data.P .deps/export.P \
+.deps/free-packet.P .deps/g10.P .deps/getkey.P .deps/gpgd.P \
+.deps/import.P .deps/kbnode.P .deps/keyedit.P .deps/keygen.P \
+.deps/keyid.P .deps/keylist.P .deps/ks-proto.P .deps/mainproc.P \
+.deps/mdfilter.P .deps/misc.P .deps/openfile.P .deps/parse-packet.P \
+.deps/passphrase.P .deps/pkclist.P .deps/plaintext.P .deps/pubkey-enc.P \
+.deps/revoke.P .deps/ringedit.P .deps/rsa.P .deps/seckey-cert.P \
+.deps/seskey.P .deps/sig-check.P .deps/sign.P .deps/signal.P \
+.deps/skclist.P .deps/status.P .deps/textfilter.P .deps/trustdb.P \
+.deps/verify.P
+SOURCES = $(gpg_SOURCES) $(gpgm_SOURCES) $(gpgd_SOURCES)
+OBJECTS = $(gpg_OBJECTS) $(gpgm_OBJECTS) $(gpgd_OBJECTS)
 
 default: all
 
@@ -267,6 +291,10 @@ gpgm: $(gpgm_OBJECTS) $(gpgm_DEPENDENCIES)
        @rm -f gpgm
        $(LINK) $(gpgm_LDFLAGS) $(gpgm_OBJECTS) $(gpgm_LDADD) $(LIBS)
 
+gpgd: $(gpgd_OBJECTS) $(gpgd_DEPENDENCIES)
+       @rm -f gpgd
+       $(LINK) $(gpgd_LDFLAGS) $(gpgd_OBJECTS) $(gpgd_LDADD) $(LIBS)
+
 tags: TAGS
 
 ID: $(HEADERS) $(SOURCES) $(LISP)
@@ -397,8 +425,8 @@ installdirs mostlyclean-generic distclean-generic clean-generic \
 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
 
 
-g10maint.: g10.c
-           $(CPP) $(DEFS) $(INCLUDES) -DIS_G10MAINT  $<  > $@ || rm $@
+g10maint.o: g10.c
+       $(COMPILE) -DIS_G10MAINT  -o g10maint.o -c g10.c
 
 $(PROGRAMS): $(needed_libs)