1999-09-19 14:19:32 +00:00
|
|
|
# $Id: Makefile.in,v 1.47 1999/03/10 19:01:13 joda Exp $
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
1999-09-19 14:19:32 +00:00
|
|
|
top_builddir=..
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
CC = @CC@
|
1999-09-19 14:19:32 +00:00
|
|
|
LINK = @LINK@
|
1997-09-04 06:04:33 +00:00
|
|
|
AR = ar
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
LN_S = @LN_S@
|
|
|
|
DEFS = @DEFS@
|
1999-09-19 14:19:32 +00:00
|
|
|
CFLAGS = @CFLAGS@ $(WFLAGS)
|
|
|
|
WFLAGS = @WFLAGS@
|
1997-09-04 06:04:33 +00:00
|
|
|
LD_FLAGS = @LD_FLAGS@
|
|
|
|
|
|
|
|
LIB_tgetent = @LIB_tgetent@
|
|
|
|
LIB_readline = @LIB_readline@
|
|
|
|
LIB_DBM = @LIB_DBM@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
|
|
|
|
|
|
|
|
CRACKLIB = @CRACKLIB@
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
libdir = @libdir@
|
|
|
|
libexecdir = @libexecdir@
|
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
transform=@program_transform_name@
|
|
|
|
EXECSUFFIX=@EXECSUFFIX@
|
|
|
|
|
|
|
|
PROG_BIN = kpasswd$(EXECSUFFIX) \
|
|
|
|
kadmin$(EXECSUFFIX)
|
|
|
|
PROG_SBIN = ksrvutil$(EXECSUFFIX)
|
|
|
|
PROG_LIBEXEC = kadmind$(EXECSUFFIX)
|
|
|
|
PROGS = $(PROG_BIN) $(PROG_SBIN) $(PROG_LIBEXEC)
|
|
|
|
|
|
|
|
SOURCES = kpasswd.c kadmin.c kadm_server.c kadm_funcs.c pw_check.c \
|
|
|
|
admin_server.c kadm_ser_wrap.c ksrvutil.c ksrvutil_get.c \
|
1999-09-19 14:19:32 +00:00
|
|
|
new_pwd.c random_password.c
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
OBJECTS = kpasswd.o kadmin.o kadm_server.o kadm_funcs.o \
|
|
|
|
admin_server.o kadm_ser_wrap.o ksrvutil.o ksrvutil_get.o \
|
1999-09-19 14:19:32 +00:00
|
|
|
new_pwd.o random_password.o
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
|
|
|
Wall:
|
|
|
|
make CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"
|
|
|
|
|
|
|
|
.c.o:
|
1999-09-19 14:19:32 +00:00
|
|
|
$(CC) -c $(DEFS) -I../include -I$(srcdir) $(CFLAGS) $(CPPFLAGS) $<
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
install: all
|
1999-09-19 14:19:32 +00:00
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
|
1997-09-04 06:04:33 +00:00
|
|
|
for x in $(PROG_BIN); do \
|
1999-09-19 14:19:32 +00:00
|
|
|
$(INSTALL_PROGRAM) $$x $(DESTDIR)$(bindir)/`echo $$x | sed '$(transform)'`; \
|
1997-09-04 06:04:33 +00:00
|
|
|
done
|
1999-09-19 14:19:32 +00:00
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
|
1997-09-04 06:04:33 +00:00
|
|
|
for x in $(PROG_SBIN); do \
|
1999-09-19 14:19:32 +00:00
|
|
|
$(INSTALL_PROGRAM) $$x $(DESTDIR)$(sbindir)/`echo $$x | sed '$(transform)'`; \
|
1997-09-04 06:04:33 +00:00
|
|
|
done
|
1999-09-19 14:19:32 +00:00
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(libexecdir)
|
1997-09-04 06:04:33 +00:00
|
|
|
for x in $(PROG_LIBEXEC); do \
|
1999-09-19 14:19:32 +00:00
|
|
|
$(INSTALL_PROGRAM) $$x $(DESTDIR)$(libexecdir)/`echo $$x | sed '$(transform)'`; \
|
1997-09-04 06:04:33 +00:00
|
|
|
done
|
|
|
|
@rm -f $(prefix)/sbin/kadmin
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
for x in $(PROG_BIN); do \
|
1999-09-19 14:19:32 +00:00
|
|
|
rm -f $(DESTDIR)$(bindir)/`echo $$x | sed '$(transform)'`; \
|
1997-09-04 06:04:33 +00:00
|
|
|
done
|
|
|
|
for x in $(PROG_SBIN); do \
|
1999-09-19 14:19:32 +00:00
|
|
|
rm -f $(DESTDIR)$(sbindir)/`echo $$x | sed '$(transform)'`; \
|
1997-09-04 06:04:33 +00:00
|
|
|
done
|
|
|
|
for x in $(PROG_LIBEXEC); do \
|
1999-09-19 14:19:32 +00:00
|
|
|
rm -f $(DESTDIR)$(libexecdir)/`echo $$x | sed '$(transform)'`; \
|
1997-09-04 06:04:33 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
TAGS: $(SOURCES)
|
|
|
|
etags $(SOURCES)
|
|
|
|
|
|
|
|
check:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.a *.o $(PROGS)
|
|
|
|
|
|
|
|
mostlyclean: clean
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile *.tab.c *~
|
|
|
|
|
|
|
|
realclean: distclean
|
|
|
|
rm -f TAGS
|
|
|
|
|
1999-09-19 14:19:32 +00:00
|
|
|
KLIB=-L../lib/kadm -lkadm -L../lib/krb -lkrb -L../lib/des -ldes -L../lib/com_err -lcom_err
|
1997-09-04 06:04:33 +00:00
|
|
|
LIBROKEN=-L../lib/roken -lroken
|
|
|
|
|
|
|
|
kpasswd$(EXECSUFFIX): kpasswd.o new_pwd.o
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ kpasswd.o new_pwd.o $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
1999-09-19 14:19:32 +00:00
|
|
|
kadmin_OBJECTS = kadmin.o new_pwd.o random_password.o
|
|
|
|
|
|
|
|
kadmin$(EXECSUFFIX): $(kadmin_OBJECTS)
|
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(kadmin_OBJECTS) $(KLIB) -L../lib/sl -lsl $(LIBROKEN) $(LIBS) $(LIB_readline) $(LIBROKEN)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
KADMIND_OBJECTS=kadm_server.o kadm_funcs.o admin_server.o kadm_ser_wrap.o pw_check.o
|
|
|
|
|
|
|
|
kadmind$(EXECSUFFIX): $(KADMIND_OBJECTS)
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(KADMIND_OBJECTS) -L../lib/kdb -lkdb -L../lib/acl -lacl $(KLIB) $(CRACKLIB) $(LIBROKEN) $(LIB_DBM) $(LIBS)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
ksrvutil$(EXECSUFFIX): ksrvutil.o ksrvutil_get.o
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ ksrvutil.o ksrvutil_get.o $(KLIB) $(LIBROKEN) $(LIBS)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
$(OBJECTS): ../include/config.h
|
1999-09-19 14:19:32 +00:00
|
|
|
|
|
|
|
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean
|