1997-09-04 06:04:33 +00:00
|
|
|
#
|
1999-09-19 14:19:32 +00:00
|
|
|
# $Id: Makefile.in,v 1.40 1999/03/10 19:01:15 joda Exp $
|
1997-09-04 06:04:33 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
CC = @CC@
|
1999-09-19 14:19:32 +00:00
|
|
|
LINK = @LINK@
|
1997-09-04 06:04:33 +00:00
|
|
|
AR = ar
|
|
|
|
RANLIB = @RANLIB@
|
1999-09-19 14:19:32 +00:00
|
|
|
LN_S = @LN_S@
|
|
|
|
DEFS = @DEFS@ -DROKEN_RENAME
|
|
|
|
CFLAGS = @CFLAGS@ $(WFLAGS)
|
|
|
|
WFLAGS = @WFLAGS@
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
libdir = @libdir@
|
|
|
|
|
|
|
|
PICFLAGS = @PICFLAGS@
|
|
|
|
|
1999-09-19 14:19:32 +00:00
|
|
|
LIB_DBM = @LIB_DBM@
|
|
|
|
LIB_DEPS = @lib_deps_yes@ $(LIB_DBM) -lc
|
|
|
|
build_symlink_command = @build_symlink_command@
|
|
|
|
install_symlink_command = @install_symlink_command@
|
|
|
|
|
1997-09-04 06:04:33 +00:00
|
|
|
LIBNAME = $(LIBPREFIX)kdb
|
|
|
|
LIBEXT = @LIBEXT@
|
|
|
|
SHLIBEXT = @SHLIBEXT@
|
|
|
|
LIBPREFIX = @LIBPREFIX@
|
|
|
|
LDSHARED = @LDSHARED@
|
|
|
|
LIB = $(LIBNAME).$(LIBEXT)
|
|
|
|
|
1999-09-19 14:19:32 +00:00
|
|
|
SOURCES = krb_cache.c krb_kdb_utils.c copykey.c krb_lib.c \
|
|
|
|
krb_dbm.c print_princ.c
|
1997-09-04 06:04:33 +00:00
|
|
|
|
1999-09-19 14:19:32 +00:00
|
|
|
OBJECTS = krb_cache.o krb_kdb_utils.o copykey.o krb_lib.o \
|
|
|
|
krb_dbm.o print_princ.o
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|
|
|
|
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) -I. $(CFLAGS) $(CPPFLAGS) $(PICFLAGS) $<
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
install: all
|
1999-09-19 14:19:32 +00:00
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
|
|
|
|
$(INSTALL_DATA) -m 0555 $(LIB) $(DESTDIR)$(libdir)/$(LIB)
|
|
|
|
@install_symlink_command@
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
uninstall:
|
1999-09-19 14:19:32 +00:00
|
|
|
rm -f $(DESTDIR)$(libdir)/$(LIB)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
TAGS: $(SOURCES)
|
|
|
|
etags $(SOURCES)
|
|
|
|
|
|
|
|
check:
|
|
|
|
|
|
|
|
clean:
|
1999-09-19 14:19:32 +00:00
|
|
|
rm -f $(LIB) *.o *.a *.so *.so.* so_locations
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
mostlyclean: clean
|
|
|
|
|
|
|
|
distclean: clean
|
1999-09-19 14:19:32 +00:00
|
|
|
rm -f Makefile *.tab.c *~ roken_rename.h
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
realclean: distclean
|
|
|
|
rm -f TAGS
|
|
|
|
|
|
|
|
$(LIBNAME).a: $(OBJECTS)
|
|
|
|
rm -f $@
|
|
|
|
$(AR) cr $@ $(OBJECTS)
|
|
|
|
-$(RANLIB) $@
|
|
|
|
|
|
|
|
$(LIBNAME).$(SHLIBEXT): $(OBJECTS)
|
|
|
|
rm -f $@
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LDSHARED) -o $@ $(OBJECTS) $(LIB_DEPS)
|
|
|
|
@build_symlink_command@
|
|
|
|
|
|
|
|
$(OBJECTS): ../../include/config.h roken_rename.h
|
|
|
|
|
|
|
|
roken_rename.h:
|
|
|
|
$(LN_S) $(srcdir)/../krb/roken_rename.h .
|
1997-09-04 06:04:33 +00:00
|
|
|
|
1999-09-19 14:19:32 +00:00
|
|
|
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean
|