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

all::

OBJS= 	ktutil.o \
	ktutil_ct.o \
	ktutil_funcs.o

SRCS= 	$(srcdir)/ktutil.c \
	$(srcdir)/ktutil_ct.c \
	$(srcdir)/ktutil_funcs.c

all:: ktutil

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

install::
	$(INSTALL_PROGRAM) ktutil ${DESTDIR}$(ADMIN_BINDIR)/ktutil

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

ktutil_ct.o: ktutil_ct.c

clean::
	$(RM) ktutil_ct.c

depend:: ktutil_ct.c

clean::
	$(RM) ktutil
