ignore doxyout
[heimdal.git] / lib / hdb / Makefile.am
blob295d7c8f8ffb7e026fca65bdf44e3b4cedc5058a
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)
10 BUILT_SOURCES = \
11         $(gen_files_hdb:.x=.c)  \
12         hdb_err.c \
13         hdb_err.h
15 gen_files_hdb = \
16         asn1_Salt.x \
17         asn1_Key.x \
18         asn1_Event.x \
19         asn1_HDBFlags.x \
20         asn1_GENERATION.x \
21         asn1_HDB_Ext_PKINIT_acl.x \
22         asn1_HDB_Ext_PKINIT_cert.x \
23         asn1_HDB_Ext_PKINIT_hash.x \
24         asn1_HDB_Ext_Constrained_delegation_acl.x \
25         asn1_HDB_Ext_Lan_Manager_OWF.x \
26         asn1_HDB_Ext_Password.x \
27         asn1_HDB_Ext_Aliases.x \
28         asn1_HDB_extension.x \
29         asn1_HDB_extensions.x \
30         asn1_hdb_entry.x \
31         asn1_hdb_entry_alias.x \
32         asn1_hdb_keyset.x
34 CLEANFILES = $(BUILT_SOURCES) $(gen_files_hdb) \
35         hdb_asn1{,-priv}.h* hdb_asn1_files hdb_asn1-template.c*
37 LDADD = libhdb.la \
38         $(LIB_openldap) \
39         ../krb5/libkrb5.la \
40         ../asn1/libasn1.la \
41         $(LIB_hcrypto) \
42         $(LIB_roken) \
43         $(LIB_ldopen)
46 if OPENLDAP_MODULE
48 ldap_so = hdb_ldap.la
49 hdb_ldap_la_SOURCES = hdb-ldap.c
50 hdb_ldap_la_LDFLAGS = -module -avoid-version
51 hdb_ldap_la_LIBADD = $(LIB_openldap) libhdb.la
53 else
55 ldap = hdb-ldap.c
56 ldap_lib = $(LIB_openldap)
58 endif
61 lib_LTLIBRARIES = libhdb.la $(ldap_so)
62 libhdb_la_LDFLAGS = -version-info 11:0:2
64 if versionscript
65 libhdb_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
66 endif
68 noinst_PROGRAMS = test_dbinfo test_hdbkeys test_mkey
70 dist_libhdb_la_SOURCES =                        \
71         common.c                                \
72         db.c                                    \
73         db3.c                                   \
74         ext.c                                   \
75         $(ldap)                                 \
76         hdb.c                                   \
77         hdb-sqlite.c                            \
78         hdb-keytab.c                            \
79         hdb-mitdb.c                             \
80         hdb_locl.h                              \
81         hdb-private.h                           \
82         keys.c                                  \
83         keytab.c                                \
84         dbinfo.c                                \
85         mkey.c                                  \
86         ndbm.c                                  \
87         print.c
89 nodist_libhdb_la_SOURCES = $(BUILT_SOURCES)
91 include_HEADERS = hdb.h hdb-protos.h
92 nodist_include_HEADERS =  hdb_err.h hdb_asn1.h
94 libhdb_la_LIBADD = \
95         $(LIB_com_err) \
96         ../krb5/libkrb5.la \
97         ../asn1/libasn1.la \
98         $(LIB_sqlite3) \
99         $(LIBADD_roken) \
100         $(ldap_lib) \
101         $(LIB_dlopen) \
102         $(DBLIB) \
103         $(LIB_NDBM)
105 $(libhdb_la_OBJECTS): $(srcdir)/hdb-protos.h $(srcdir)/hdb-private.h
106 $(libhdb_la_OBJECTS): hdb_asn1.h hdb_asn1-priv.h hdb_err.h
108 $(srcdir)/hdb-protos.h:
109         cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -o hdb-protos.h $(dist_libhdb_la_SOURCES) || rm -f hdb-protos.h
111 $(srcdir)/hdb-private.h:
112         cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -p hdb-private.h $(dist_libhdb_la_SOURCES) || rm -f hdb-private.h
114 $(gen_files_hdb) hdb_asn1.hx hdb_asn1-priv.hx: hdb_asn1_files
116 hdb_asn1_files: $(ASN1_COMPILE_DEP) $(srcdir)/hdb.asn1
117         $(ASN1_COMPILE) $(srcdir)/hdb.asn1 hdb_asn1
119 test_dbinfo_LIBS = libhdb.la
121 test_hdbkeys_LIBS = ../krb5/libkrb5.la libhdb.la
122 test_mkey_LIBS = $(test_hdbkeys_LIBS)
124 # to help stupid solaris make
126 hdb_err.h: hdb_err.et
128 EXTRA_DIST = \
129         hdb.asn1 \
130         hdb_err.et \
131         hdb.schema \
132         version-script.map \
133         data-mkey.mit.des3.le \
134         data-mkey.mit.des3.be