#### include configury here
BUILDTOP=../..

SRCS	= \
	kadm_supp.c \
	kadm_stream.c \
	kadm_cli_wrap.c 

OBJS	= \
	kadm_cli_wrap.o \
	kadm_supp.o \
	kadm_stream.o \
	kadm_err.o

CODE=$(SRCS) kadm_err.et

all::

# comp_et_depend(kadm_err)
kadm_err.h: kadm_err.et
kadm_err.c: kadm_err.et
clean::
	$(RM) kadm_err.o kadm_err.c kadm_err.h

depend:: kadm_err.h

depend:: ${CODE}

depend:: kadm_err.h
	-if cmp kadm_err.h ../../include/kadm_err.h >/dev/null 2>&1; then \
		echo ; \
	else \
		$(RM) ../../include/kadm_err.h ; \
		$(CP) kadm_err.h ../../include/kadm_err.h; \
	fi

install::
	$(INSTALLRAW) kadm_err.h ${DESTDIR}${INCLDIR}/kadm_err.h

# install_library_target(kadm,$(OBJECTS),$(SRCS),${DES_LINTLIB} ${KRB_LINTLIB})
# install_library_target(ss,$(OBJS),$(SRCS),)
all:: libkadm.a

libkadm.a: $(OBJS)
	$(RM) $@.bak
	-$(MV) $@ $@.bak
	$(ARCHIVE) $@ $(OBJS)
	$(RANLIB) $@

clean::
	$(RM) libkadm.a
	$(RM) $(OBJS)

install::
	$(INSTALLLIB) libkadm.a $(DESTDIR)$(LIBDIR)/libkadm.a
	$(CHMOD) 644 $(DESTDIR)$(LIBDIR)/libkadm.a
	$(RANLIB)    $(DESTDIR)$(LIBDIR)/libkadm.a
	$(CHMOD) 444 $(DESTDIR)$(LIBDIR)/libkadm.a
## 
