thisconfigdir=.
myfulldir=lib/kadm5
mydir=.
BUILDTOP=$(REL)$(U)$(S)$(U)
LOCAL_SUBDIRS = clnt srv unit-test

##DOSBUILDTOP = ..\..

kadm_err.$(OBJEXT): kadm_err.c
adb_err.$(OBJEXT): adb_err.c
chpass_util_strings.$(OBJEXT): chpass_util_strings.c

kadm_err.c kadm_err.h: $(srcdir)/kadm_err.et
adb_err.c adb_err.h: $(srcdir)/adb_err.et
chpass_util_strings.c chpass_util_strings.h: $(srcdir)/chpass_util_strings.et

clean::
	$(RM) kadm_err.c kadm_err.h kadm_err.o
	$(RM) adb_err.c adb_err.h adb_err.o
	$(RM) chpass_util_strings.c chpass_util_strings.h chpass_util_strings.o

SRCS =	kadm_err.c \
	adb_err.c \
	chpass_util_strings.c \
	$(srcdir)/ovsec_glue.c \
	$(srcdir)/misc_free.c \
	$(srcdir)/kadm_rpc_xdr.c \
	$(srcdir)/chpass_util.c \
	$(srcdir)/alt_prof.c \
	$(srcdir)/str_conv.c \
	$(srcdir)/logger.c

OBJS =	kadm_err.$(OBJEXT) \
	adb_err.$(OBJEXT) \
	chpass_util_strings.$(OBJEXT) \
	ovsec_glue.$(OBJEXT) \
	misc_free.$(OBJEXT) \
	kadm_rpc_xdr.$(OBJEXT) \
	chpass_util.$(OBJEXT) \
	alt_prof.$(OBJEXT) \
	str_conv.$(OBJEXT) \
	logger.$(OBJEXT)

STLIBOBJS = \
	kadm_err.o \
	adb_err.o \
	chpass_util_strings.o \
	ovsec_glue.o \
	misc_free.o \
	kadm_rpc_xdr.o \
	chpass_util.o \
	alt_prof.o \
	str_conv.o \
	logger.o

HDRDIR=$(BUILDTOP)/include/kadm5
HDRS =	$(HDRDIR)/adb.h \
	$(HDRDIR)/admin.h \
	$(HDRDIR)/admin_internal.h \
	$(HDRDIR)/admin_xdr.h \
	$(HDRDIR)/kadm_rpc.h \
	$(HDRDIR)/server_internal.h \
	$(HDRDIR)/adb_err.h \
	$(HDRDIR)/chpass_util_strings.h \
	$(HDRDIR)/kadm_err.h

BUILD_HDRS = adb_err.h chpass_util_strings.h kadm_err.h
SRC_HDRS = adb.h admin.h admin_internal.h admin_xdr.h kadm_rpc.h \
		server_internal.h 

includes:: $(SRC_HDRS) $(BUILD_HDRS)
	if [ -d $(HDRDIR) ]; then :; else mkdir -p $(HDRDIR); fi
	for i in $(SRC_HDRS) ; do \
		i=`basename $$i`; \
		if cmp $(srcdir)/$$i $(HDRDIR)/$$i >/dev/null 2>&1; then :; \
		else \
			(set -x; $(RM) $(HDRDIR)/$$i; \
			 $(CP) $(srcdir)/$$i $(HDRDIR)/$$i) ; \
		fi ; \
	done
	for i in $(BUILD_HDRS) ; do \
		i=`basename $$i`; \
		if cmp $$i $(HDRDIR)/$$i >/dev/null 2>&1; then :; \
		else \
			(set -x; $(RM) $(HDRDIR)/$$i; \
			 $(CP) $$i $(HDRDIR)/$$i) ; \
		fi ; \
	done

clean-unix::
	$(RM) $(HDRS)

all-prerecurse:: includes
all-prerecurse:: all-libobjs

all-windows:: $(OBJS)

check-windows::

clean-unix:: clean-libobjs

clean-mac::
clean-windows::
