2000-12-29 21:00:22 +00:00
|
|
|
# $Id: Makefile.in,v 1.40.16.1 2000/06/23 02:52:31 assar 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@
|
|
|
|
DEFS = @DEFS@ -DBINDIR='"$(bindir)"'
|
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@
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
2000-12-29 21:00:22 +00:00
|
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
1997-09-04 06:04:33 +00:00
|
|
|
LIBS = @LIBS@
|
|
|
|
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
libdir = @libdir@
|
|
|
|
libexecdir = @libexecdir@
|
|
|
|
bindir = @bindir@
|
|
|
|
transform=@program_transform_name@
|
|
|
|
EXECSUFFIX=@EXECSUFFIX@
|
|
|
|
|
2000-12-29 21:00:22 +00:00
|
|
|
PROG_BIN = kauth$(EXECSUFFIX)
|
|
|
|
SCRIPT_BIN = ksrvtgt
|
1997-09-04 06:04:33 +00:00
|
|
|
PROG_LIBEXEC = kauthd$(EXECSUFFIX)
|
2000-12-29 21:00:22 +00:00
|
|
|
PROGS = $(PROG_BIN) $(SCRIPT_BIN) $(PROG_LIBEXEC)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
SOURCES_KAUTH = kauth.c rkinit.c
|
|
|
|
SOURCES_KAUTHD = kauthd.c
|
|
|
|
SOURCES_COMMON = encdata.c marshall.c
|
|
|
|
|
|
|
|
OBJECTS_KAUTH = kauth.o rkinit.o
|
|
|
|
OBJECTS_KAUTHD = kauthd.o
|
|
|
|
OBJECTS_COMMON = marshall.o encdata.o
|
|
|
|
|
|
|
|
OBJECTS = $(OBJECTS_KAUTH) $(OBJECTS_KAUTHD)
|
|
|
|
SOURCES = $(SOURCES_KAUTH) $(SOURCES_KAUTHD) $(SOURCES_COMMON)
|
|
|
|
|
|
|
|
KRB_KAFS_LIB = @KRB_KAFS_LIB@
|
|
|
|
|
|
|
|
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) $(DESTDIR)$(libexecdir)
|
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
|
2000-12-29 21:00:22 +00:00
|
|
|
for x in $(SCRIPT_BIN); do \
|
|
|
|
$(INSTALL_SCRIPT) $$x $(DESTDIR)$(bindir)/`echo $$x| sed '$(transform)'`; \
|
|
|
|
done
|
1999-09-19 14:19:32 +00:00
|
|
|
if test -f $(DESTDIR)$(bindir)/zrefresh -o -r $(DESTDIR)$(bindir)/zrefresh; then \
|
1997-09-04 06:04:33 +00:00
|
|
|
true; \
|
|
|
|
else \
|
1999-09-19 14:19:32 +00:00
|
|
|
$(INSTALL_PROGRAM) $(srcdir)/zrefresh $(DESTDIR)$(bindir)/`echo zrefresh | sed '$(transform)'`; \
|
1997-09-04 06:04:33 +00:00
|
|
|
fi
|
|
|
|
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
|
|
|
|
|
|
|
|
uninstall:
|
2000-12-29 21:00:22 +00:00
|
|
|
for x in $(PROG_BIN) $(SCRIPT_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_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
|
|
|
|
|
|
|
|
KLIB=-L../../lib/krb -lkrb -L../../lib/des -ldes
|
|
|
|
LIBROKEN=-L../../lib/roken -lroken
|
|
|
|
|
|
|
|
kauth$(EXECSUFFIX): $(OBJECTS_KAUTH) $(OBJECTS_COMMON)
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(OBJECTS_KAUTH) $(OBJECTS_COMMON) $(KRB_KAFS_LIB) $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
kauthd$(EXECSUFFIX): $(OBJECTS_KAUTHD) $(OBJECTS_COMMON)
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(OBJECTS_KAUTHD) $(OBJECTS_COMMON) $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
ksrvtgt: ksrvtgt.in
|
|
|
|
sed -e "s!%bindir%!$(bindir)!" $(srcdir)/ksrvtgt.in > $@
|
|
|
|
chmod +x $@
|
|
|
|
|
|
|
|
|
|
|
|
$(OBJECTS): ../../include/config.h
|
1999-09-19 14:19:32 +00:00
|
|
|
|
|
|
|
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean
|