* argparse.c (default_strusage): Update copyright year to 2006.
[gnupg.git] / util / Makefile.am
index a143199..2a3f07c 100644 (file)
@@ -22,33 +22,52 @@ INCLUDES = -I.. -I$(top_srcdir)/include -I$(top_srcdir)/intl
 
 noinst_LIBRARIES = libutil.a
 
-EXTRA_libutil_a_SOURCES = regcomp.c regex.c regexec.c regex_internal.c \
-                         regex_internal.h
+libutil_a_SOURCES = logger.c fileutil.c miscutil.c strgutil.c \
+                   ttyio.c argparse.c memory.c secmem.c errors.c iobuf.c \
+                   dotlock.c http.c pka.c membuf.c cert.c
+
+if USE_SIMPLE_GETTEXT
+libutil_a_SOURCES+=simple-gettext.c
+endif
+
+if HAVE_W32_SYSTEM
+libutil_a_SOURCES+=w32reg.c
+endif
 
-# We build the assuan support only if it has been requested.
 if ENABLE_AGENT_SUPPORT
-assuan_source = assuan-buffer.c assuan-client.c assuan-defs.h \
-                 assuan-errors.c assuan-logging.c assuan-socket-connect.c \
-                assuan-connect.c assuan-socket.c assuan-util.c
-else
-assuan_source =
+libutil_a_SOURCES+=assuan-buffer.c assuan-client.c assuan-defs.h \
+                   assuan-errors.c assuan-logging.c assuan-socket-connect.c \
+                  assuan-connect.c assuan-socket.c assuan-util.c
 endif
 
+if USE_INTERNAL_REGEX
+libutil_a_SOURCES+=regex.c
+endif
 
-#libutil_a_LDFLAGS =
-libutil_a_SOURCES = logger.c fileutil.c miscutil.c strgutil.c  \
-                    ttyio.c  argparse.c memory.c secmem.c errors.c iobuf.c \
-                    dotlock.c http.c srv.h srv.c simple-gettext.c \
-                    membuf.c w32reg.c $(assuan_source)
+if USE_DNS_SRV
+libutil_a_SOURCES+=srv.c srv.h
+endif
+
+# The internal regex code #includes these.
+EXTRA_libutil_a_SOURCES = regcomp.c regexec.c regex_internal.c \
+                         regex_internal.h
 
-libutil_a_DEPENDENCIES = @LIBOBJS@ @REGEX_O@
 # LIBOBJS is for the replacement functions
-libutil_a_LIBADD = @LIBOBJS@ @REGEX_O@
+libutil_a_DEPENDENCIES = @LIBOBJS@
+libutil_a_LIBADD = @LIBOBJS@
 
 http-test:  http.c
-       gcc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
+       cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
            -DTEST -o http-test http.c libutil.a @LIBINTL@ @SRVLIBS@ @CAPLIBS@
 
 srv-test:  srv.c
-       gcc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
+       cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
            -DTEST -o srv-test srv.c libutil.a @LIBINTL@ @SRVLIBS@ @CAPLIBS@
+
+pka-test:  pka.c
+       cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
+          -DTEST -o pka-test pka.c libutil.a @LIBINTL@ @SRVLIBS@ @CAPLIBS@
+
+cert-test:  cert.c
+       cc -DHAVE_CONFIG_H -I. -I. -I.. $(INCLUDES) $(LDFLAGS) -g -Wall \
+          -DTEST -o cert-test cert.c libutil.a @LIBINTL@ @SRVLIBS@ @CAPLIBS@