Windows: Add missing exports to libhcrypto-exports.def
[heimdal.git] / lib / hdb / Makefile.am
blob3775f59d4a5b0ed01f616fcb5b663e9d6abeb85d
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 AM_CPPFLAGS += -I../asn1 -I$(srcdir)/../asn1 $(INCLUDE_hcrypto)
6 AM_CPPFLAGS += $(INCLUDE_openldap) -DHDB_DB_DIR=\"$(DIR_hdbdir)\"
7 AM_CPPFLAGS += -I$(srcdir)/../krb5
8 AM_CPPFLAGS += $(INCLUDE_sqlite3)
9 if HAVE_DBHEADER
10 AM_CPPFLAGS += -I$(DBHEADER)
11 endif
13 BUILT_SOURCES = \
14         $(gen_files_hdb:.x=.c)  \
15         hdb_err.c \
16         hdb_err.h
18 gen_files_hdb = \
19         asn1_Salt.x \
20         asn1_Key.x \
21         asn1_Event.x \
22         asn1_HDBFlags.x \
23         asn1_GENERATION.x \
24         asn1_HDB_Ext_PKINIT_acl.x \
25         asn1_HDB_Ext_PKINIT_cert.x \
26         asn1_HDB_Ext_PKINIT_hash.x \
27         asn1_HDB_Ext_Constrained_delegation_acl.x \
28         asn1_HDB_Ext_Lan_Manager_OWF.x \
29         asn1_HDB_Ext_Password.x \
30         asn1_HDB_Ext_Aliases.x \
31         asn1_HDB_extension.x \
32         asn1_HDB_extensions.x \
33         asn1_hdb_entry.x \
34         asn1_hdb_entry_alias.x \
35         asn1_hdb_keyset.x
37 CLEANFILES = $(BUILT_SOURCES) $(gen_files_hdb) \
38         hdb_asn1{,-priv}.h* hdb_asn1_files hdb_asn1-template.c*
40 LDADD = libhdb.la \
41         $(LIB_openldap) \
42         ../krb5/libkrb5.la \
43         ../asn1/libasn1.la \
44         $(LIB_hcrypto) \
45         $(LIB_roken) \
46         $(LIB_ldopen)
49 if OPENLDAP_MODULE
51 ldap_so = hdb_ldap.la
52 hdb_ldap_la_SOURCES = hdb-ldap.c
53 hdb_ldap_la_LDFLAGS = -module -avoid-version
54 hdb_ldap_la_LIBADD = $(LIB_openldap) libhdb.la
56 else
58 ldap = hdb-ldap.c
59 ldap_lib = $(LIB_openldap)
61 endif
64 lib_LTLIBRARIES = libhdb.la $(ldap_so)
65 libhdb_la_LDFLAGS = -version-info 11:0:2
67 if versionscript
68 libhdb_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
69 endif
71 noinst_PROGRAMS = test_dbinfo test_hdbkeys test_mkey
73 dist_libhdb_la_SOURCES =                        \
74         common.c                                \
75         db.c                                    \
76         db3.c                                   \
77         ext.c                                   \
78         $(ldap)                                 \
79         hdb.c                                   \
80         hdb-sqlite.c                            \
81         hdb-keytab.c                            \
82         hdb-mitdb.c                             \
83         hdb_locl.h                              \
84         hdb-private.h                           \
85         keys.c                                  \
86         keytab.c                                \
87         dbinfo.c                                \
88         mkey.c                                  \
89         ndbm.c                                  \
90         print.c
92 nodist_libhdb_la_SOURCES = $(BUILT_SOURCES)
94 include_HEADERS = hdb.h hdb-protos.h
95 nodist_include_HEADERS =  hdb_err.h hdb_asn1.h
97 libhdb_la_LIBADD = \
98         $(LIB_com_err) \
99         ../krb5/libkrb5.la \
100         ../asn1/libasn1.la \
101         $(LIB_sqlite3) \
102         $(LIBADD_roken) \
103         $(ldap_lib) \
104         $(LIB_dlopen) \
105         $(DBLIB) \
106         $(LIB_NDBM)
108 $(libhdb_la_OBJECTS): $(srcdir)/hdb-protos.h $(srcdir)/hdb-private.h
109 $(libhdb_la_OBJECTS): hdb_asn1.h hdb_asn1-priv.h hdb_err.h
111 $(srcdir)/hdb-protos.h:
112         cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -o hdb-protos.h $(dist_libhdb_la_SOURCES) || rm -f hdb-protos.h
114 $(srcdir)/hdb-private.h:
115         cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -p hdb-private.h $(dist_libhdb_la_SOURCES) || rm -f hdb-private.h
117 $(gen_files_hdb) hdb_asn1.hx hdb_asn1-priv.hx: hdb_asn1_files
119 hdb_asn1_files: $(ASN1_COMPILE_DEP) $(srcdir)/hdb.asn1
120         $(ASN1_COMPILE) $(srcdir)/hdb.asn1 hdb_asn1
122 test_dbinfo_LIBS = libhdb.la
124 test_hdbkeys_LIBS = ../krb5/libkrb5.la libhdb.la
125 test_mkey_LIBS = $(test_hdbkeys_LIBS)
127 # to help stupid solaris make
129 hdb_err.h: hdb_err.et
131 EXTRA_DIST = \
132         hdb.asn1 \
133         hdb_err.et \
134         hdb.schema \
135         version-script.map \
136         data-mkey.mit.des3.le \
137         data-mkey.mit.des3.be