* ldap.m4: New. Moved from configure.ac.
[gnupg.git] / agent / Makefile.am
index 222a68b..400aa2f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2001 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 #
 # This file is part of GnuPG.
 #
 
 ## Process this file with automake to produce Makefile.in
 
+localedir = $(datadir)/locale
+INCLUDES = -I../intl -DLOCALEDIR=\"$(localedir)\"
+
 bin_PROGRAMS = gpg-agent
+pkglib_PROGRAMS = gpg-protect-tool
 
-INCLUDES = -I$(top_srcdir)/common -I$(top_srcdir)/intl
-LDFLAGS = @LDFLAGS@ 
+AM_CPPFLAGS = -I$(top_srcdir)/common $(LIBGCRYPT_CFLAGS) \
+              $(LIBASSUAN_CFLAGS) $(PTH_CFLAGS)
 
 gpg_agent_SOURCES = \
-       gpg-agent.c
-
-gpg_agent_LDADD = ../jnlib/libjnlib.a ../assuan/libassuan.a  \
-              ../../libgcrypt/src/.libs/libgcrypt.so.1 
-
+       gpg-agent.c agent.h \
+       command.c \
+       query.c \
+       cache.c \
+       trans.c \
+       findkey.c \
+       pksign.c \
+       pkdecrypt.c \
+       genkey.c \
+       protect.c \
+       trustlist.c \
+       divert-scd.c \
+       call-scd.c \
+       learncard.c \
+       sexp-parse.h
+
+
+gpg_agent_LDADD = ../jnlib/libjnlib.a ../common/libcommon.a \
+                $(LIBGCRYPT_LIBS) $(PTH_LIBS) $(LIBASSUAN_LIBS) \
+                -lgpg-error @INTLLIBS@
+
+gpg_protect_tool_SOURCES = \
+       protect-tool.c \
+       protect.c \
+       simple-pwquery.c simple-pwquery.h \
+       minip12.c minip12.h 
+
+gpg_protect_tool_LDADD = ../jnlib/libjnlib.a \
+        ../common/libcommon.a ../common/libsimple-pwquery.a \
+        $(LIBGCRYPT_LIBS) -lgpg-error @INTLLIBS@