CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE)

all::

LOCALINCLUDE=

OBJS= kadmin5.o \
	kadmin5_ct.o \
	network.o \
	convert.o \
	ss_wrapper.o \
	$(LIBOBJS)

SRCS= $(srcdir)/kadmin5.c \
	$(srcdir)/kadmin5_ct.c \
	$(srcdir)/ss_wrapper.c

all:: kadmin5

kadmin5: kadmin5.o $(DEPLIBS) $(OBJS)
	$(LD) $(LDFLAGS) $(LDARGS) -o kadmin5 $(OBJS) $(LIBS)

install::
	$(INSTALL_PROGRAM) kadmin5 ${DESTDIR}$(ADMIN_BINDIR)/kadmin5
	$(INSTALL_DATA) $(srcdir)/kadmin5.M ${DESTDIR}$(ADMIN_MANDIR)/kadmin5.8

# needed until we run makedepend
kadmin5_ct.c: kadmin5_ct.ct

kadmin5_ct.o: kadmin5_ct.c

clean::
	$(RM) kadmin5_ct.c

depend:: kadmin5_ct.c

clean::
	$(RM) kadmin5
