xref: /freebsd/crypto/heimdal/lib/hdb/Makefile.am (revision 1669d8afc64812c8d2d1d147ae1fd42ff441e1b1)
1# $Id: Makefile.am,v 1.53.4.2 2003/10/14 16:13:14 joda Exp $
2
3include $(top_srcdir)/Makefile.am.common
4
5INCLUDES += -I../asn1 -I$(srcdir)/../asn1 $(INCLUDE_des)
6
7BUILT_SOURCES = asn1_Key.c asn1_Event.c asn1_HDBFlags.c asn1_hdb_entry.c \
8	asn1_Salt.c hdb_err.c hdb_err.h asn1_GENERATION.c
9
10foo = asn1_Key.x asn1_GENERATION.x asn1_Event.x asn1_HDBFlags.x asn1_hdb_entry.x asn1_Salt.x
11
12CLEANFILES = $(BUILT_SOURCES) $(foo) hdb_asn1.h asn1_files
13
14noinst_PROGRAMS = convert_db
15LDADD = libhdb.la \
16	$(LIB_openldap) \
17	../krb5/libkrb5.la \
18	../asn1/libasn1.la \
19	$(LIB_des) \
20	$(LIB_roken)
21
22lib_LTLIBRARIES = libhdb.la
23libhdb_la_LDFLAGS = -version-info 7:7:0
24
25libhdb_la_SOURCES =				\
26	common.c				\
27	db.c					\
28	db3.c					\
29	hdb-ldap.c				\
30	hdb.c					\
31	keytab.c				\
32	mkey.c					\
33	ndbm.c					\
34	print.c					\
35	$(BUILT_SOURCES)
36
37INCLUDES += $(INCLUDE_openldap)
38
39include_HEADERS = hdb.h hdb_err.h hdb_asn1.h hdb-protos.h hdb-private.h
40
41libhdb_la_LIBADD = ../krb5/libkrb5.la ../asn1/libasn1.la ../roken/libroken.la $(LIB_openldap) $(DBLIB) $(LIB_NDBM)
42
43$(libhdb_la_OBJECTS): $(srcdir)/hdb-protos.h $(srcdir)/hdb-private.h
44
45$(srcdir)/hdb-protos.h:
46	cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -o hdb-protos.h $(libhdb_la_SOURCES) || rm -f hdb-protos.h
47
48$(srcdir)/hdb-private.h:
49	cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -p hdb-private.h $(libhdb_la_SOURCES) || rm -f hdb-private.h
50
51$(foo) hdb_asn1.h: asn1_files
52
53asn1_files: ../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1
54	../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1 hdb_asn1
55
56$(libhdb_la_OBJECTS): hdb_asn1.h hdb_err.h
57
58$(convert_db_OBJECTS): hdb_asn1.h hdb_err.h
59
60# to help stupid solaris make
61
62hdb_err.h: hdb_err.et
63