1# $Id: Makefile.am,v 1.33 2000/01/06 21:45:41 assar Exp $ 2 3include $(top_srcdir)/Makefile.am.common 4 5INCLUDES += -I../asn1 -I$(srcdir)/../asn1 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 9 10foo = asn1_Key.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 ../krb5/libkrb5.la \ 17 ../asn1/libasn1.la \ 18 ../des/libdes.la \ 19 $(LIB_roken) \ 20 $(DBLIB) 21 22lib_LTLIBRARIES = libhdb.la 23libhdb_la_LDFLAGS = -version-info 4:1:1 24 25libhdb_la_SOURCES = \ 26 keytab.c \ 27 hdb.c \ 28 common.c \ 29 db.c \ 30 ndbm.c \ 31 print.c \ 32 $(BUILT_SOURCES) 33 34include_HEADERS = hdb.h hdb_err.h hdb_asn1.h hdb-protos.h hdb-private.h 35 36libhdb_la_LIBADD = 37 38$(libhdb_la_OBJECTS): $(srcdir)/hdb-protos.h $(srcdir)/hdb-private.h 39 40$(srcdir)/hdb-protos.h: 41 cd $(srcdir); perl ../../cf/make-proto.pl -o hdb-protos.h $(libhdb_la_SOURCES) || rm -f hdb-protos.h 42 43$(srcdir)/hdb-private.h: 44 cd $(srcdir); perl ../../cf/make-proto.pl -p hdb-private.h $(libhdb_la_SOURCES) || rm -f hdb-private.h 45 46$(foo) hdb_asn1.h: asn1_files 47 48asn1_files: ../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1 49 ../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1 hdb_asn1 50 51$(libhdb_la_OBJECTS): hdb_asn1.h hdb_err.h 52 53$(convert_db_OBJECTS): hdb_asn1.h hdb_err.h 54 55# to help stupid solaris make 56 57hdb_err.h: hdb_err.et 58