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
14 #UNRESOLVED = -expect_unresolved \*
16 include ../config/Makefile.${SYS_NAME}
18 LIBS1 = ${DESTDIR}/lib/libubik.a ${DESTDIR}/lib/afs/libprot.a
19 LIBS2 = ${DESTDIR}/lib/librxkad.a ${DESTDIR}/lib/afs/libaudit.a \
20 ${DESTDIR}/lib/librx.a ${DESTDIR}/lib/liblwp.a \
21 ${DESTDIR}/lib/libdes.a ${DESTDIR}/lib/afs/libcmd.a \
22 ${DESTDIR}/lib/afs/libcom_err.a ${DESTDIR}/lib/afs/util.a \
23 ${DESTDIR}/lib/afs/libsys.a
25 LIBS = ${DESTDIR}/lib/afs/libkauth.a ${LIBS1} ${DESTDIR}/lib/afs/libauth.a ${LIBS2}
26 KLIBS = ${DESTDIR}/lib/afs/libkauth.krb.a ${LIBS1} ${DESTDIR}/lib/afs/libauth.krb.a ${LIBS2}
28 all: test-reauth ${DESTDIR}/lib/afs/libafssiad.so ${DESTDIR}/lib/afs/libafssiad.krb.so
30 CFLAGS = $(DEBUG) -I${SRCDIR}include ${XCFLAGS}
32 ${DESTDIR}/lib/afs/libafssiad.so: libafssiad.so
35 ${DESTDIR}/lib/afs/libafssiad.krb.so: libafssiad.krb.so
39 $(CC) $(CFLAGS) -c -g siad.c -o siad.o
42 $(CC) $(CFLAGS) -DAFS_KERBEROS_ENV -c -g siad.c -o siad_krb.o
45 $(LD) $(LDFLAGS) -g -shared -no_archive -o libafssiad.so \
46 ${UNRESOLVED} siad.o ${LIBS} -none -lc
48 libafssiad.krb.so: siad_krb.o
49 $(LD) $(LDFLAGS) -g -shared -no_archive -o libafssiad.krb.so \
50 ${UNRESOLVED} siad_krb.o ${KLIBS} ${LIBS} -none -lc
52 test-reauth: test-reauth.o
53 $(CC) $(CFLAGS) -g -o test-reauth test-reauth.o -lc