Add heimdal-0.6.3
[dragonfly.git] / crypto / heimdal-0.6.3 / lib / hdb / Makefile.am
1 # $Id: Makefile.am,v 1.53.4.2 2003/10/14 16:13:14 joda Exp $
2
3 include $(top_srcdir)/Makefile.am.common
4
5 INCLUDES += -I../asn1 -I$(srcdir)/../asn1 $(INCLUDE_des)
6
7 BUILT_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
10 foo = asn1_Key.x asn1_GENERATION.x asn1_Event.x asn1_HDBFlags.x asn1_hdb_entry.x asn1_Salt.x
11
12 CLEANFILES = $(BUILT_SOURCES) $(foo) hdb_asn1.h asn1_files
13
14 noinst_PROGRAMS = convert_db
15 LDADD = libhdb.la \
16         $(LIB_openldap) \
17         ../krb5/libkrb5.la \
18         ../asn1/libasn1.la \
19         $(LIB_des) \
20         $(LIB_roken)
21
22 lib_LTLIBRARIES = libhdb.la
23 libhdb_la_LDFLAGS = -version-info 7:7:0
24
25 libhdb_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
37 INCLUDES += $(INCLUDE_openldap)
38
39 include_HEADERS = hdb.h hdb_err.h hdb_asn1.h hdb-protos.h hdb-private.h
40
41 libhdb_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
53 asn1_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
62 hdb_err.h: hdb_err.et