2000-11-04 10:01:08 +00:00
|
|
|
# Copyright 2000, International Business Machines Corporation and others.
|
|
|
|
# All Rights Reserved.
|
|
|
|
#
|
|
|
|
# This software has been released under the terms of the IBM Public
|
|
|
|
# License. For details, see the LICENSE file in the top-level source
|
|
|
|
# directory or online at http://www.openafs.org/dl/license10.html
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-10-18 00:06:58 +00:00
|
|
|
srcdir=@srcdir@
|
2001-11-01 04:59:26 +00:00
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
2006-08-03 03:37:12 +00:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
2001-08-02 16:45:35 +00:00
|
|
|
|
2000-11-04 02:13:13 +00:00
|
|
|
OBJS= cellconfig.o ktc.o userok.o writeconfig.o authcon.o \
|
2001-08-29 02:19:55 +00:00
|
|
|
acfg_errors.o ktc_errors.o
|
2000-11-04 02:13:13 +00:00
|
|
|
KOBJS= cellconfig.o ktc.krb.o userok.o writeconfig.o authcon.o \
|
2001-08-29 02:19:55 +00:00
|
|
|
acfg_errors.o ktc_errors.o
|
|
|
|
|
2001-09-10 20:15:57 +00:00
|
|
|
LIBS=libauth.a ${TOP_LIBDIR}/libsys.a \
|
|
|
|
${TOP_LIBDIR}/librxkad.a ${TOP_LIBDIR}/libdes.a \
|
|
|
|
${TOP_LIBDIR}/librx.a ${TOP_LIBDIR}/libsys.a \
|
2001-11-02 08:03:08 +00:00
|
|
|
${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/util.a
|
2001-08-29 02:19:55 +00:00
|
|
|
INCLS=cellconfig.h auth.h keys.h
|
2000-11-04 02:13:13 +00:00
|
|
|
KSRCS=auth.h
|
|
|
|
UKSRCS=${KSRCS} cellconfig.h acfg_errors.c keys.h cellconfig.c \
|
|
|
|
ktc.c authcon.c ktc_errors.c
|
|
|
|
|
2006-08-01 21:03:54 +00:00
|
|
|
all: ${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/libauth.krb.a depinstall copyauth setkey
|
|
|
|
|
|
|
|
depinstall: ${TOP_INCDIR}/afs/keys.h \
|
2006-07-13 18:24:29 +00:00
|
|
|
${TOP_INCDIR}/afs/cellconfig.h \
|
|
|
|
${TOP_INCDIR}/afs/auth.h \
|
|
|
|
${TOP_INCDIR}/afs/ktc.h
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2006-08-01 21:03:54 +00:00
|
|
|
${TOP_INCDIR}/afs/keys.h: keys.h
|
|
|
|
${INSTALL_DATA} keys.h $@
|
|
|
|
|
|
|
|
${TOP_INCDIR}/afs/cellconfig.h: cellconfig.h
|
|
|
|
${INSTALL_DATA} cellconfig.h $@
|
|
|
|
|
|
|
|
${TOP_INCDIR}/afs/auth.h: auth.h
|
|
|
|
${INSTALL_DATA} auth.h $@
|
|
|
|
|
|
|
|
${TOP_INCDIR}/afs/ktc.h: ktc.h
|
|
|
|
${INSTALL_DATA} ktc.h $@
|
|
|
|
|
|
|
|
${TOP_LIBDIR}/libauth.a: libauth.a
|
|
|
|
${INSTALL_DATA} libauth.a $@
|
|
|
|
|
|
|
|
${TOP_LIBDIR}/libauth.krb.a: libauth.krb.a
|
|
|
|
${INSTALL_DATA} libauth.krb.a $@
|
|
|
|
|
2000-11-04 02:13:13 +00:00
|
|
|
cellconfig.o: cellconfig.c ${INCLS}
|
2001-09-10 20:15:57 +00:00
|
|
|
ktc.o: ktc.c ${INCLS} ${TOP_INCDIR}/afs/vice.h
|
2000-11-04 02:13:13 +00:00
|
|
|
writeconfig.o: writeconfig.c ${INCLS}
|
|
|
|
authcon.o: authcon.c ${INCLS}
|
|
|
|
userok.o: userok.c ${INCLS}
|
|
|
|
cellconfig.o: cellconfig.c ${INCLS}
|
|
|
|
copyauth.o: copyauth.c ${INCLS} AFS_component_version_number.o
|
|
|
|
setkey.o: setkey.c ${INCLS} AFS_component_version_number.o
|
|
|
|
|
2001-09-10 20:15:57 +00:00
|
|
|
ktc.krb.o: ktc.c ${INCLS} ${TOP_INCDIR}/afs/vice.h
|
2004-10-18 07:08:14 +00:00
|
|
|
${CCOBJ} ${CFLAGS} -DAFS_KERBEROS_ENV -c ${srcdir}/ktc.c -o ktc.krb.o
|
2000-11-04 02:13:13 +00:00
|
|
|
|
|
|
|
libauth.a: $(OBJS) AFS_component_version_number.o
|
2001-08-30 00:22:17 +00:00
|
|
|
-$(RM) -f libauth.a
|
2001-09-10 21:21:01 +00:00
|
|
|
$(AR) crv $@ $(OBJS) AFS_component_version_number.o
|
2000-11-04 02:13:13 +00:00
|
|
|
$(RANLIB) libauth.a
|
|
|
|
|
|
|
|
libauth.krb.a: $(KOBJS) AFS_component_version_number.o
|
2001-09-10 21:21:01 +00:00
|
|
|
-$(RM) -f $@
|
|
|
|
$(AR) crv $@ $(KOBJS) AFS_component_version_number.o
|
|
|
|
$(RANLIB) $@
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-10-23 21:57:19 +00:00
|
|
|
copyauth: copyauth.o ${LIBS}
|
2001-11-02 08:03:08 +00:00
|
|
|
$(CC) $(CFLAGS) -o copyauth copyauth.o ${LIBS} ${XLIBS}
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-10-23 21:57:19 +00:00
|
|
|
setkey: setkey.o ${LIBS}
|
2001-11-02 08:03:08 +00:00
|
|
|
${CC} $(CFLAGS) -o setkey setkey.o ${LIBS} ${XLIBS}
|
2000-11-04 02:13:13 +00:00
|
|
|
|
|
|
|
acfg_errors.o: acfg_errors.c
|
|
|
|
|
|
|
|
acfg_errors.c cellconfig.h: acfg_errors.et cellconfig.p.h
|
2001-10-18 00:06:58 +00:00
|
|
|
$(RM) -f cellconfig.h acfg_errors.c
|
|
|
|
${COMPILE_ET} -p ${srcdir} acfg_errors -h cellconfig
|
2000-11-04 02:13:13 +00:00
|
|
|
|
|
|
|
ktc_errors.o: ktc_errors.c
|
|
|
|
|
|
|
|
ktc_errors.c auth.h: ktc_errors.et auth.p.h
|
2001-10-18 00:06:58 +00:00
|
|
|
$(RM) -f auth.h ktc_errors.c
|
|
|
|
${COMPILE_ET} -p ${srcdir} ktc_errors -h auth
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-08-29 02:19:55 +00:00
|
|
|
#
|
|
|
|
# Install targets
|
|
|
|
#
|
2006-08-01 21:03:54 +00:00
|
|
|
install: copyauth libauth.a libauth.krb.a auth.h cellconfig.h
|
|
|
|
${INSTALL} -d ${DESTDIR}${libdir}/afs
|
|
|
|
${INSTALL} -d ${DESTDIR}${includedir}/afs
|
|
|
|
${INSTALL_DATA} libauth.a ${DESTDIR}${libdir}/afs/libauth.a
|
|
|
|
${INSTALL_DATA} libauth.krb.a ${DESTDIR}${libdir}/afs/libauth.krb.a
|
|
|
|
${INSTALL_DATA} keys.h ${DESTDIR}${includedir}/afs/keys.h
|
|
|
|
${INSTALL_DATA} cellconfig.h ${DESTDIR}${includedir}/afs/cellconfig.h
|
|
|
|
${INSTALL_DATA} auth.h ${DESTDIR}${includedir}/afs/auth.h
|
|
|
|
${INSTALL_DATA} ktc.h ${DESTDIR}${includedir}/afs/ktc.h
|
|
|
|
${INSTALL_PROGRAM} copyauth ${DESTDIR}${sbindir}/copyauth
|
|
|
|
|
|
|
|
dest: copyauth libauth.a libauth.krb.a auth.h cellconfig.h
|
|
|
|
${INSTALL} -d ${DEST}/lib/afs
|
|
|
|
${INSTALL} -d ${DEST}/include/afs
|
|
|
|
${INSTALL_DATA} libauth.a ${DEST}/lib/afs/libauth.a
|
|
|
|
${INSTALL_DATA} libauth.krb.a ${DEST}/lib/afs/libauth.krb.a
|
|
|
|
${INSTALL_DATA} keys.h ${DEST}/include/afs/keys.h
|
|
|
|
${INSTALL_DATA} cellconfig.h ${DEST}/include/afs/cellconfig.h
|
|
|
|
${INSTALL_DATA} auth.h ${DEST}/include/afs/auth.h
|
|
|
|
${INSTALL_DATA} ktc.h ${DEST}/include/afs/ktc.h
|
|
|
|
${INSTALL_PROGRAM} copyauth ${DEST}/etc/copyauth
|
2001-08-29 02:19:55 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Misc. targets
|
|
|
|
#
|
|
|
|
test:
|
|
|
|
cd test; $(MAKE)
|
2001-04-30 08:03:55 +00:00
|
|
|
|
2000-11-04 02:13:13 +00:00
|
|
|
clean:
|
2006-03-17 19:54:26 +00:00
|
|
|
$(RM) -f *.o *.a copyauth setkey auth.h cellconfig.h acfg_errors.c ktc_errors.c core \
|
2000-11-04 02:13:13 +00:00
|
|
|
AFS_component_version_number.c
|
2001-08-29 02:19:55 +00:00
|
|
|
|
|
|
|
include ../config/Makefile.version
|