1999-09-19 14:19:32 +00:00
|
|
|
# $Id: Makefile.in,v 1.30 1999/03/10 19:01:14 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@
|
|
|
|
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@
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
KRB_KAFS_LIB = @KRB_KAFS_LIB@
|
|
|
|
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
libdir = @libdir@
|
|
|
|
transform=@program_transform_name@
|
|
|
|
EXECSUFFIX=@EXECSUFFIX@
|
|
|
|
|
|
|
|
PROGS = kinit$(EXECSUFFIX) \
|
|
|
|
kdestroy$(EXECSUFFIX) \
|
|
|
|
klist$(EXECSUFFIX)
|
|
|
|
|
|
|
|
SOURCES = kinit.c kdestroy.c klist.c
|
|
|
|
|
|
|
|
OBJECTS = kinit.o kdestroy.o klist.o
|
|
|
|
|
|
|
|
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 $(PROGS); 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
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
for x in $(PROGS); 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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
kinit$(EXECSUFFIX): kinit.o
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ kinit.o $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
kdestroy$(EXECSUFFIX): kdestroy.o
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ kdestroy.o $(KRB_KAFS_LIB) $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
klist$(EXECSUFFIX): klist.o
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ klist.o $(KRB_KAFS_LIB) $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
# su move to appl/bsd
|
|
|
|
|
|
|
|
$(OBJECTS): ../include/config.h
|
1999-09-19 14:19:32 +00:00
|
|
|
|
|
|
|
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean
|