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
9 include @TOP_OBJDIR@/src/config/Makefile.config
12 # OS specific object files:
31 # Object files for iauth NFS->AFS authenticator.
39 # System specific build commands
45 IMPORTS = -bI:/lib/kernex.exp -bI:/lib/syscalls.exp -bI:/lib/sockets.exp \
46 -bI:/lib/netinet.exp \
47 -bI:${TOP_LIBDIR}/extras.exp -bI:${TOP_LIBDIR}/export.exp
48 KDEFS = -U_IBMR2 -D_POWER -D_AIX -DNLS -D_NLS -DMSG -D__STR31__ -Daiws \
49 -D_POWER_RS -D_POWER_PC -D_POWER_RS1 -D_POWER_RS2 -D_POWER_RSC \
50 -D_POWER_601 -D_POWER_603 -D_POWER_604 -D_THREADS -M -D_KERNEL \
51 -D_POWER_MP -UKOFF -DAFSDEBUG -DVICE -DNFS -DUFS -DINET -DQUOTA \
52 -DGETMOUNT -H8 -DAFS -DAFS_COMMON -D_VOPS -D_SUN -DKERNEL
53 LDSTUFF= -b"binder:/usr/lib/bind glink:/usr/lib/glink.o" -bnoentry -b h:4 \
55 LDFLAGS = -m -eafs_config -bexport:${TOP_LIBDIR}/afs.exp ${IMPORTS} \
58 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(KDEFS) $(KOPTS) ${DBUG}
60 # Name of directory to hold object files and libraries.
63 # This tells Makefile.common to use it's single directory build target.
64 COMPDIRS = single_compdir
65 INSTDIRS = single_instdir
66 DESTDIRS = single_destdir
68 include Makefile.common
72 -$(RM) $(KOBJ)/Makefile $(KOBJ)/Makefile.common $(KOBJ)/config
73 ln -fs ../Makefile $(KOBJ)/Makefile
74 ln -fs ../Makefile.common $(KOBJ)/Makefile.common
75 ln -fs ../config $(KOBJ)/config
76 -$(RM) -f h net netinet rpc ufs nfs machine sys
77 ln -fs /usr/include/sys h
78 ln -fs /usr/include/net net
79 ln -fs /usr/include/netinet netinet
80 ln -fs /usr/include/rpc rpc
81 ln -fs /usr/include/sys sys
82 ln -fs /usr/include/nfs nfs
83 ln -fs /usr/include/jfs ufs
86 # Standard AFS->NFS translator support is removed in AFS 3.5 in favor of
87 # the iauth authentication mechanism. The model was changed by IBM in the
88 # middle of an OS release. So iauth is only supported on AIX 4.1.5 and
89 # later 4.1.x (if they are ever made) and AIX 4.2.1 (and later AIX 4.2.x if
90 # they are ever made. AIX 4.3 also uses the iauth translator.
92 LIBAFSIAUTH = afs.ext.iauth
95 DEST_LIBAFSIAUTH = $(DEST)/root.client/usr/vice/etc/dkload/$(LIBAFSIAUTH)
96 DEST_LIBAFS = $(DEST)/root.client/usr/vice/etc/dkload/$(LIBAFS)
98 INST_LIBAFSIAUTH = ${DESTDIR}${afskerneldir}/$(LIBAFSIAUTH)
99 INST_LIBAFS = ${DESTDIR}${afskerneldir}/$(LIBAFS)
101 $(DEST_LIBAFS): $(LIBAFS)
104 $(INSTALL) -f $?.map $@.map
106 $(DEST_LIBAFSIAUTH): $(LIBAFSIAUTH)
109 $(INSTALL) -f $?.map $@.map
111 $(INST_LIBAFS): $(LIBAFS)
114 $(INSTALL) -f $?.map $@.map
116 $(INST_LIBAFSIAUTH): $(LIBAFSIAUTH)
119 $(INSTALL) -f $?.map $@.map
122 $(LIBAFSIAUTH): $(AFSAOBJS) $(AFSIAUTHOBJS)
123 ${LD} ${LDSTUFF} -bloadmap:afs.ext.iauth.loadmap \
124 -bmap:afs.ext.iauth.map -o afs.ext.iauth \
125 ${AFSAOBJS} ${AFSIAUTHOBJS} ${LIBS} ${LDFLAGS}
127 $(LIBAFS): $(AFSAOBJS) $(AFSNOIAUTHOBJS)
128 ${LD} ${LDSTUFF} -bloadmap:afs.ext.loadmap \
129 -bmap:afs.ext.map -o afs.ext \
130 ${AFSAOBJS} ${AFSNOIAUTHOBJS} ${LIBS} ${LDFLAGS}
132 libafs: $(LIBAFS) $(LIBAFSIAUTH)
133 install_libafs: $(INST_LIBAFS) $(INST_LIBAFSIAUTH)
134 dest_libafs: $(DEST_LIBAFS) $(DEST_LIBAFSIAUTH)
137 osi_assem.o: $(TOP_SRCDIR)/afs/$(MKAFS_OSTYPE)/osi_assem.s
138 ${AS} -o osi_assem.o $(TOP_SRCDIR)/afs/$(MKAFS_OSTYPE)/osi_assem.s
140 # Build rules for iauth objects.
141 afs_call_iauth.o: $(AFS)/afs_call.c
142 $(CRULE_NOOPT) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o afs_call_iauth.o
143 afs_nfsclnt_iauth.o: $(AFS)/afs_nfsclnt.c
144 $(CRULE_NOOPT) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o afs_nfsclnt_iauth.o
145 afs_pioctl_iauth.o: $(AFS)/afs_pioctl.c
146 $(CRULE_NOOPT) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o afs_pioctl_iauth.o
147 osi_vfsops_iauth.o: $(TOP_SRCDIR)/afs/$(MKAFS_OSTYPE)/osi_vnodeops.c
148 $(CRULE_NOOPT) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o osi_vfsops_iauth.o
149 osi_vnodeops_iauth.o: $(TOP_SRCDIR)/afs/$(MKAFS_OSTYPE)/osi_vnodeops.c
150 $(CRULE_NOOPT) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o osi_vnodeops_iauth.o