1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
12 TOP_SRCDIR=@TOP_SRCDIR@
13 SYS_NAME=@AFS_SYSNAME@
18 #UNRESOLVED = -expect_unresolved \*
20 include ../config/Makefile.${SYS_NAME}
22 LIBS1 = ${DESTDIR}/lib/libubik.a ${DESTDIR}/lib/afs/libprot.a
23 LIBS2 = ${DESTDIR}/lib/librxkad.a ${DESTDIR}/lib/afs/libaudit.a \
24 ${DESTDIR}/lib/librx.a ${DESTDIR}/lib/liblwp.a \
25 ${DESTDIR}/lib/libdes.a ${DESTDIR}/lib/afs/libcmd.a \
26 ${DESTDIR}/lib/afs/libcom_err.a ${DESTDIR}/lib/afs/util.a \
27 ${DESTDIR}/lib/afs/libsys.a
29 LIBS = ${DESTDIR}/lib/afs/libkauth.a ${LIBS1} ${DESTDIR}/lib/afs/libauth.a ${LIBS2}
30 KLIBS = ${DESTDIR}/lib/afs/libkauth.krb.a ${LIBS1} ${DESTDIR}/lib/afs/libauth.krb.a ${LIBS2}
32 all: test-reauth ${DESTDIR}/lib/afs/libafssiad.so ${DESTDIR}/lib/afs/libafssiad.krb.so
35 $(RM) -f test-reauth libafssiad.so libafssiad.krb.so *.s *.o *.b core *~ *.com *.ld AFS_component_version_number.c
37 CFLAGS = $(DEBUG) -I${TOP_SRCDIR}/config -I${SRCDIR}/include ${XCFLAGS}
39 ${DESTDIR}/lib/afs/libafssiad.so: libafssiad.so
42 ${DESTDIR}/lib/afs/libafssiad.krb.so: libafssiad.krb.so
46 $(CC) $(CFLAGS) -c -g siad.c -o siad.o
49 $(CC) $(CFLAGS) -DAFS_KERBEROS_ENV -c -g siad.c -o siad_krb.o
52 $(LD) $(LDFLAGS) -g -shared -no_archive -o libafssiad.so \
53 ${UNRESOLVED} siad.o ${LIBS} -none -lc
55 libafssiad.krb.so: siad_krb.o
56 $(LD) $(LDFLAGS) -g -shared -no_archive -o libafssiad.krb.so \
57 ${UNRESOLVED} siad_krb.o ${KLIBS} ${LIBS} -none -lc
59 test-reauth: test-reauth.o
60 $(CC) $(CFLAGS) -g -o test-reauth test-reauth.o -lc