* app-openpgp.c (do_sign): Replace asprintf by direct allocation.
[gnupg.git] / kbx / Makefile.am
index 5226077..0b35587 100644 (file)
@@ -1,5 +1,5 @@
 # Keybox Makefile 
-# Copyright (C) 2001 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 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)\"
+
 EXTRA_DIST = mkerrors
-AM_CPPFLAGS =   $(LIBKSBA_CFLAGS) $(LIBGCRYPT_CLFAGS)
-BUILT_SOURCES = keybox-errors.c
+AM_CPPFLAGS = -I$(top_srcdir)/common -I$(top_srcdir)/intl \
+              $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS)
 
 noinst_LIBRARIES = libkeybox.a
 bin_PROGRAMS = kbxutil
@@ -29,22 +32,22 @@ bin_PROGRAMS = kbxutil
 common_sources = \
        keybox.h keybox-defs.h keybox-search-desc.h \
        keybox-util.c \
-       keybox-errors.c \
        keybox-init.c \
        keybox-blob.c \
        keybox-file.c \
        keybox-search.c \
        keybox-update.c \
+       keybox-openpgp.c \
        keybox-dump.c 
 
 
 libkeybox_a_SOURCES = $(common_sources)
 
 kbxutil_SOURCES = kbxutil.c $(common_sources)
-kbxutil_LDADD   = ../jnlib/libjnlib.a  $(LIBKSBA_LIBS) $(LIBGCRYPT_LIBS)
+kbxutil_LDADD   = ../jnlib/libjnlib.a  $(KSBA_LIBS) $(LIBGCRYPT_LIBS) \
+                  -lgpg-error @LIBINTL@ 
+
 
-keybox-errors.c : keybox.h mkerrors
-       $(srcdir)/mkerrors < $(srcdir)/keybox.h > keybox-errors.c