Makefile.am revision 72445
1# $Id: Makefile.am,v 1.43 2001/01/30 01:49:16 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 $(LIB_openldap) \ 17 ../krb5/libkrb5.la \ 18 ../asn1/libasn1.la \ 19 $(LIB_des) \ 20 $(LIB_roken) \ 21 $(DBLIB) 22 23lib_LTLIBRARIES = libhdb.la 24libhdb_la_LDFLAGS = -version-info 7:0:0 25 26libhdb_la_SOURCES = \ 27 common.c \ 28 db.c \ 29 db3.c \ 30 hdb-ldap.c \ 31 hdb.c \ 32 keytab.c \ 33 mkey.c \ 34 ndbm.c \ 35 print.c \ 36 $(BUILT_SOURCES) 37 38INCLUDES += $(INCLUDE_openldap) 39 40include_HEADERS = hdb.h hdb_err.h hdb_asn1.h hdb-protos.h hdb-private.h 41 42libhdb_la_LIBADD = $(LIB_openldap) 43 44$(libhdb_la_OBJECTS): $(srcdir)/hdb-protos.h $(srcdir)/hdb-private.h 45 46$(srcdir)/hdb-protos.h: 47 cd $(srcdir); perl ../../cf/make-proto.pl -o hdb-protos.h $(libhdb_la_SOURCES) || rm -f hdb-protos.h 48 49$(srcdir)/hdb-private.h: 50 cd $(srcdir); perl ../../cf/make-proto.pl -p hdb-private.h $(libhdb_la_SOURCES) || rm -f hdb-private.h 51 52$(foo) hdb_asn1.h: asn1_files 53 54asn1_files: ../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1 55 ../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1 hdb_asn1 56 57$(libhdb_la_OBJECTS): hdb_asn1.h hdb_err.h 58 59$(convert_db_OBJECTS): hdb_asn1.h hdb_err.h 60 61# to help stupid solaris make 62 63hdb_err.h: hdb_err.et 64