summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/lib/hdb/Makefile.am
blob: 6c4341e7d27fdcd830b3d0d5c682a4cc8f3073c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# $Id: Makefile.am,v 1.33 2000/01/06 21:45:41 assar Exp $

include $(top_srcdir)/Makefile.am.common

INCLUDES += -I../asn1 -I$(srcdir)/../asn1

BUILT_SOURCES = asn1_Key.c asn1_Event.c asn1_HDBFlags.c asn1_hdb_entry.c \
	asn1_Salt.c hdb_err.c hdb_err.h

foo = asn1_Key.x asn1_Event.x asn1_HDBFlags.x asn1_hdb_entry.x asn1_Salt.x

CLEANFILES = $(BUILT_SOURCES) $(foo) hdb_asn1.h asn1_files

noinst_PROGRAMS = convert_db
LDADD = libhdb.la \
	../krb5/libkrb5.la \
	../asn1/libasn1.la \
	../des/libdes.la \
	$(LIB_roken) \
	$(DBLIB)

lib_LTLIBRARIES = libhdb.la
libhdb_la_LDFLAGS = -version-info 4:1:1

libhdb_la_SOURCES = 				\
		    keytab.c			\
		    hdb.c			\
		    common.c			\
		    db.c			\
		    ndbm.c			\
		    print.c			\
		    $(BUILT_SOURCES)

include_HEADERS = hdb.h hdb_err.h hdb_asn1.h hdb-protos.h hdb-private.h

libhdb_la_LIBADD = 

$(libhdb_la_OBJECTS): $(srcdir)/hdb-protos.h $(srcdir)/hdb-private.h

$(srcdir)/hdb-protos.h:
	cd $(srcdir); perl ../../cf/make-proto.pl -o hdb-protos.h $(libhdb_la_SOURCES) || rm -f hdb-protos.h

$(srcdir)/hdb-private.h:
	cd $(srcdir); perl ../../cf/make-proto.pl -p hdb-private.h $(libhdb_la_SOURCES) || rm -f hdb-private.h

$(foo) hdb_asn1.h: asn1_files

asn1_files: ../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1
	../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1 hdb_asn1

$(libhdb_la_OBJECTS): hdb_asn1.h hdb_err.h

$(convert_db_OBJECTS): hdb_asn1.h hdb_err.h

# to help stupid solaris make

hdb_err.h: hdb_err.et
OpenPOWER on IntegriCloud