# Makefile.am - for the KSBA ASN.1 and X.509 library # Copyright (C) 2001, 2002, 2004, 2005 g10 Code GmbH # # This file is part of KSBA. # # KSBA is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # KSBA is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. ## Process this file with automake to produce Makefile.in asn1_modules = tmttv2.asn cms.asn EXTRA_DIST = ksba-config.in $(asn1_modules) ksba.m4 libksba.vers \ asn1-parse.c asn1-tables.c BUILT_SOURCES = asn1-parse.c asn1-tables.c bin_SCRIPTS = ksba-config include_HEADERS = ksba.h lib_LTLIBRARIES = libksba.la if ! CROSS_COMPILING noinst_PROGRAMS = asn1-gentables ber-dump endif m4datadir = $(datadir)/aclocal m4data_DATA = ksba.m4 AM_CPPFLAGS = -I$(top_srcdir)/gl AM_CFLAGS = $(GPG_ERROR_CFLAGS) if HAVE_LD_VERSION_SCRIPT libksba_version_script_cmd = -Wl,--version-script=$(srcdir)/libksba.vers else libksba_version_script_cmd = endif libksba_la_LDFLAGS = $(libksba_version_script_cmd) -version-info \ @LIBKSBA_LT_CURRENT@:@LIBKSBA_LT_REVISION@:@LIBKSBA_LT_AGE@ libksba_la_INCLUDES = -I$(top_srcdir)/lib libksba_la_DEPENDENCIES = $(srcdir)/libksba.vers libksba_la_SOURCES = \ ksba.h \ reader.c reader.h \ writer.c writer.h \ asn1-parse.y asn1-parse.h \ asn1-func.c asn1-func2.c asn1-func.h \ ber-help.c ber-help.h \ ber-decoder.c ber-decoder.h \ der-encoder.c der-encoder.h \ cert.c cert.h \ cms.c cms.h cms-parser.c \ crl.c crl.h \ certreq.c certreq.h \ ocsp.c ocsp.h \ keyinfo.c keyinfo.h \ oid.c name.c dn.c time.c convert.h \ version.c util.c util.h shared.h \ sexp-parse.h \ asn1-tables.c asn1_gentables_SOURCES = asn1-gentables.c asn1-parse.c asn1-func.c oid.c util.c asn1_gentables_LDADD = $(GPG_ERROR_LIBS) ../gl/libgnu.la # Note that we need to use per-target flags to force renaming of the # object files to avoid clashes with libtool. asn1_gentables_CFLAGS = $(AM_CFLAGS) ber_dump_SOURCES = ber-dump.c \ ber-decoder.c ber-help.c reader.c writer.c asn1-parse.c \ asn1-func.c oid.c util.c ber_dump_LDADD = $(GPG_ERROR_LIBS) ../gl/libgnu.la ber_dump_CFLAGS = $(AM_CFLAGS) asn1-parse.c : asn1-func.h if ! CROSS_COMPILING asn1-tables.c : $(asn1_modules) $(MAKE) $(AM_MAKEFLAGS) asn1-gentables @set -e; list=""; \ for file in $(asn1_modules); do list="$$list $(srcdir)/$$file";done;\ ./asn1-gentables $$list > asn1-tables.c endif