From 0bc34d46d365253105daec7ee3c2f06b266e2bae Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Tue, 26 Aug 1997 22:26:48 +0000 Subject: [PATCH] Include hdb_err stuff. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3167 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hdb/Makefile.am | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/lib/hdb/Makefile.am b/lib/hdb/Makefile.am index 7793fc0ed..df79df30a 100644 --- a/lib/hdb/Makefile.am +++ b/lib/hdb/Makefile.am @@ -4,26 +4,47 @@ AUTOMAKE_OPTIONS = no-dependencies foreign INCLUDES = -I$(top_builddir)/include -SUFFIXES = .x +SUFFIXES = .x .et INCLUDES = -I../asn1 -I$(srcdir)/../asn1 -BUILT_SOURCES = asn1_Key.c asn1_Event.c asn1_HDBFlags.c asn1_hdb_entry.c +BUILT_SOURCES = asn1_Key.c asn1_Event.c asn1_HDBFlags.c asn1_hdb_entry.c \ + hdb_err.c hdb_err.h foo = asn1_Key.x asn1_Event.x asn1_HDBFlags.x asn1_hdb_entry.x CLEANFILES = $(BUILT_SOURCES) $(foo) hdb_asn1.h asn1_files - lib_LIBRARIES = libhdb.a libhdb_a_SOURCES = hdb.c db.c ndbm.c $(BUILT_SOURCES) +include_HEADERS = hdb.h +incdir = $(includedir) +inc_DATA = hdb_err.h hdb_asn1.h + +libhdb_a_LIBADD = ../error/error.o + +idir = $(top_builddir)/include + +all-local: + @for i in $(inc_DATA); do \ + if cmp -s $$i $(idir)/$$i 2> /dev/null ; then :; else\ + echo " $(INSTALL_DATA) $$i $(idir)/$$i"; \ + $(INSTALL_DATA) $$i $(idir)/$$i; \ + fi ; \ + done + $(foo) hdb_asn1.h: asn1_files asn1_files: ../asn1/asn1_compile $(srcdir)/hdb.asn1 ../asn1/asn1_compile $(srcdir)/hdb.asn1 hdb_asn1 $(libhdb_a_OBJECTS): hdb_asn1.h + .x.c: @cmp -s $< $@ 2> /dev/null || cp $< $@ + +.et.c: + $(SHELL) ../error/compile_et $< +