03656ac1b0
the "core" Kerberos functionality. The rest of the userland will get their own changes later.
97 lines
2.1 KiB
Makefile
97 lines
2.1 KiB
Makefile
# $Id: Makefile.in,v 1.12 1997/03/23 13:04:03 assar Exp $
|
|
|
|
SHELL = /bin/sh
|
|
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
CC = @CC@
|
|
AR = ar
|
|
DEFS = @DEFS@
|
|
CFLAGS = @CFLAGS@
|
|
LD_FLAGS = @LD_FLAGS@
|
|
INSTALL = @INSTALL@
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
LIBS = @LIBS@
|
|
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
|
|
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
libexecdir = @libexecdir@
|
|
libdir = @libdir@
|
|
bindir = @bindir@
|
|
transform=@program_transform_name@
|
|
EXECSUFFIX=@EXECSUFFIX@
|
|
|
|
PROG_BIN = kip$(EXECSUFFIX)
|
|
PROG_LIBEXEC = kipd$(EXECSUFFIX)
|
|
PROGS = $(PROG_BIN) $(PROG_LIBEXEC)
|
|
|
|
SOURCES_KIP = kip.c
|
|
SOURCES_KIPD = kipd.c
|
|
SOURCES_COMMON = common.c
|
|
|
|
OBJECTS_KIP = kip.o common.o
|
|
OBJECTS_KIPD = kipd.o common.o
|
|
|
|
OBJECTS = $(OBJECTS_KIP) $(OBJECTS_KIPD)
|
|
SOURCES = $(SOURCES_KIP) $(SOURCES_KIPD) $(SOURCES_COMMON)
|
|
|
|
all: $(PROGS)
|
|
|
|
Wall:
|
|
make CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"
|
|
|
|
.c.o:
|
|
$(CC) -c $(CPPFLAGS) $(DEFS) -I../../include -I$(srcdir) $(CFLAGS) $<
|
|
|
|
install: all
|
|
$(MKINSTALLDIRS) $(bindir) $(libexecdir)
|
|
for x in $(PROG_BIN); do \
|
|
$(INSTALL_PROGRAM) $$x $(bindir)/`echo $$x | sed '$(transform)'`; \
|
|
done
|
|
for x in $(PROG_LIBEXEC); do \
|
|
$(INSTALL_PROGRAM) $$x $(libexecdir)/`echo $$x | sed '$(transform)'`; \
|
|
done
|
|
|
|
uninstall:
|
|
for x in $(PROG_BIN); do \
|
|
rm -f $(bindir)/`echo $$x | sed '$(transform)'`; \
|
|
done
|
|
for x in $(PROG_LIBEXEC); do \
|
|
rm -f $(libexecdir)/`echo $$x | sed '$(transform)'`; \
|
|
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
|
|
|
|
dist: $(DISTFILES)
|
|
for file in $(DISTFILES); do \
|
|
ln $$file ../`cat ../.fname`/lib \
|
|
|| cp -p $$file ../`cat ../.fname`/lib; \
|
|
done
|
|
|
|
KLIB=-L../../lib/krb -lkrb -L../../lib/des -ldes
|
|
LIBROKEN=-L../../lib/roken -lroken
|
|
|
|
kip$(EXECSUFFIX): $(OBJECTS_KIP)
|
|
$(CC) $(LD_FLAGS) $(LDFLAGS) -o $@ $(OBJECTS_KIP) $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
|
|
|
kipd$(EXECSUFFIX): $(OBJECTS_KIPD)
|
|
$(CC) $(LD_FLAGS) $(LDFLAGS) -o $@ $(OBJECTS_KIPD) $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
|
|
|
$(OBJECTS): ../../include/config.h
|