freebsd-nq/crypto/heimdal/lib/hdb/Makefile.am
2000-01-09 20:58:00 +00:00

58 lines
1.4 KiB
Makefile

# $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