more-makefiles-cleanup-20010829
[openafs.git] / src / sia / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
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
7
8 # */
9
10 DESTDIR=@DESTDIR@
11 SRCDIR=@SRCDIR@
12 TOP_SRCDIR=@TOP_SRCDIR@
13 SYS_NAME=@AFS_SYSNAME@
14
15 SHELL = /bin/sh
16
17 DEBUG = 
18 #UNRESOLVED = -expect_unresolved \*
19 UNRESOLVED =
20 include ../config/Makefile.${SYS_NAME}
21
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
28
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}
31
32 all: test-reauth ${DESTDIR}/lib/afs/libafssiad.so ${DESTDIR}/lib/afs/libafssiad.krb.so
33
34 clean:
35         $(RM) -f test-reauth libafssiad.so libafssiad.krb.so *.s *.o *.b core *~ *.com *.ld AFS_component_version_number.c
36
37 CFLAGS = $(DEBUG) -I${TOP_SRCDIR}/config -I${SRCDIR}/include ${XCFLAGS}
38
39 ${DESTDIR}/lib/afs/libafssiad.so: libafssiad.so
40         ${INSTALL} $? $@
41
42 ${DESTDIR}/lib/afs/libafssiad.krb.so: libafssiad.krb.so
43         ${INSTALL} $? $@
44
45 siad.o: siad.c
46         $(CC) $(CFLAGS) -c -g siad.c -o siad.o
47
48 siad_krb.o: siad.c
49         $(CC) $(CFLAGS) -DAFS_KERBEROS_ENV -c -g siad.c -o siad_krb.o
50
51 libafssiad.so: siad.o
52         $(LD) $(LDFLAGS) -g -shared -no_archive -o libafssiad.so \
53                  ${UNRESOLVED} siad.o ${LIBS} -none -lc
54
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
58
59 test-reauth: test-reauth.o
60         $(CC) $(CFLAGS) -g -o test-reauth test-reauth.o -lc
61
62 install: all
63
64
65