03656ac1b0
the "core" Kerberos functionality. The rest of the userland will get their own changes later.
93 lines
1.7 KiB
Makefile
93 lines
1.7 KiB
Makefile
#
|
|
# $Id: Makefile.in,v 1.30 1997/05/06 03:47:28 assar Exp $
|
|
#
|
|
|
|
SHELL = /bin/sh
|
|
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
CC = @CC@
|
|
AR = ar
|
|
RANLIB = @RANLIB@
|
|
LN_S = @LN_S@
|
|
DEFS = @DEFS@
|
|
CFLAGS = @CFLAGS@
|
|
|
|
INSTALL = @INSTALL@
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
|
|
|
|
COMPILE_ET = ../../util/et/compile_et$(EXECSUFFIX) -language ansi-c
|
|
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
libdir = @libdir@
|
|
|
|
PICFLAGS = @PICFLAGS@
|
|
|
|
LIBNAME = $(LIBPREFIX)kadm
|
|
LIBEXT = @LIBEXT@
|
|
LIBPREFIX = @LIBPREFIX@
|
|
EXECSUFFIX = @EXECSUFFIX@
|
|
SHLIBEXT = @SHLIBEXT@
|
|
LDSHARED = @LDSHARED@
|
|
LIB = $(LIBNAME).$(LIBEXT)
|
|
|
|
SOURCES = kadm_cli_wrap.c kadm_err.c kadm_stream.c kadm_supp.c
|
|
|
|
OBJECTS = kadm_cli_wrap.o kadm_err.o kadm_stream.o kadm_supp.o
|
|
|
|
all: $(LIB)
|
|
|
|
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) $(PICFLAGS) $<
|
|
|
|
install: all
|
|
$(MKINSTALLDIRS) $(libdir)
|
|
$(INSTALL_DATA) -m 0555 $(LIB) $(libdir)
|
|
|
|
uninstall:
|
|
rm -f $(libdir)/$(LIB)
|
|
|
|
TAGS: $(SOURCES)
|
|
etags $(SOURCES)
|
|
|
|
check:
|
|
|
|
clean:
|
|
rm -f $(LIB) *.o *.a kadm_err.c kadm_err.h
|
|
|
|
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
|
|
|
|
$(LIBNAME).a: $(OBJECTS)
|
|
rm -f $@
|
|
$(AR) cr $@ $(OBJECTS)
|
|
-$(RANLIB) $@
|
|
|
|
$(LIBNAME).$(SHLIBEXT): $(OBJECTS)
|
|
rm -f $@
|
|
$(LDSHARED) -o $@ $(OBJECTS)
|
|
|
|
kadm_err.c kadm_err.h: kadm_err.et
|
|
test -r kadm_err.et || (rm -f kadm_err.et && $(LN_S) $(srcdir)/kadm_err.et .)
|
|
$(COMPILE_ET) kadm_err.et
|
|
|
|
$(OBJECTS): ../../include/config.h
|
|
$(OBJECTS): kadm_err.h kadm_locl.h
|