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
8 # MakefileProto for AIX systems
12 TOP_SRCDIR=@TOP_SRCDIR@
13 SYS_NAME=@AFS_SYSNAME@
15 include ../config/Makefile.${SYS_NAME}
17 # OS specific object files:
39 # Object files for iauth NFS->AFS authenticator.
47 # System specific build commands
53 IMPORTS = -bI:/lib/kernex.exp -bI:/lib/syscalls.exp -bI:/lib/sockets.exp \
54 -bI:/lib/netinet.exp \
55 -bI:${DESTDIR}/lib/afs/extras.exp -bI:${DESTDIR}/lib/afs/export.exp
56 KDEFS = -U_IBMR2 -D_POWER -D_AIX -DNLS -D_NLS -DMSG -D__STR31__ -Daiws \
57 -D_POWER_RS -D_POWER_PC -D_POWER_RS1 -D_POWER_RS2 -D_POWER_RSC \
58 -D_POWER_601 -D_POWER_603 -D_POWER_604 -D_THREADS -M -D_KERNEL \
59 -D_POWER_MP -UKOFF -DAFSDEBUG -DVICE -DNFS -DUFS -DINET -DQUOTA \
60 -DGETMOUNT -H8 -DAFS -DAFS_COMMON -D_VOPS -D_SUN -DKERNEL
61 LDSTUFF= -b"binder:/usr/lib/bind glink:/usr/lib/glink.o" -bnoentry -b h:4 \
63 LDFLAGS = -m -eafs_config -bexport:${DESTDIR}/lib/afs/afs.exp ${IMPORTS} \
66 CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(KDEFS) $(KOPTS) ${DBUG}
68 # Name of directory to hold object files and libraries.
71 # This tells Makefile.common to use it's single directory build target.
72 COMPDIRS = single_compdir
74 include Makefile.common
78 -rm $(KOBJ)/Makefile $(KOBJ)/Makefile.common
79 ln -s ../Makefile $(KOBJ)/Makefile
80 ln -s ../Makefile.common $(KOBJ)/Makefile.common
81 -rm -f h net netinet rpc ufs nfs machine sys
82 ln -s /usr/include/sys h
83 ln -s /usr/include/net net
84 ln -s /usr/include/netinet netinet
85 ln -s /usr/include/rpc rpc
86 ln -s /usr/include/sys sys
87 ln -s /usr/include/nfs nfs
88 ln -s /usr/include/jfs ufs
94 # Standard AFS->NFS translator support is removed in AFS 3.5 in favor of
95 # the iauth authentication mechanism. The model was changed by IBM in the
96 # middle of an OS release. So iauth is only supported on AIX 4.1.5 and
97 # later 4.1.x (if they are ever made) and AIX 4.2.1 (and later AIX 4.2.x if
98 # they are ever made. AIX 4.3 also uses the iauth translator.
100 CLIENTDIR = $(DESTDIR)root.client/usr/vice/etc/dkload
101 LIBAFSIAUTH = afs.ext.iauth
104 DEST_LIBAFSIAUTH = $(CLIENTDIR)/$(LIBAFSIAUTH)
105 DEST_LIBAFS = $(CLIENTDIR)/$(LIBAFS)
107 $(DEST_LIBAFS): $(LIBAFS)
110 $(INSTALL) -f $?.map $@.map
112 $(DEST_LIBAFSIAUTH): $(LIBAFSIAUTH)
115 $(INSTALL) -f $?.map $@.map
119 $(LIBAFSIAUTH): $(AFSAOBJS) $(AFSIAUTHOBJS)
120 ${LD} ${LDSTUFF} -bloadmap:afs.ext.iauth.loadmap \
121 -bmap:afs.ext.iauth.map -o afs.ext.iauth \
122 ${AFSAOBJS} ${AFSIAUTHOBJS} ${LIBS} ${LDFLAGS}
124 $(LIBAFS): $(AFSAOBJS) $(AFSNOIAUTHOBJS)
125 ${LD} ${LDSTUFF} -bloadmap:afs.ext.loadmap \
126 -bmap:afs.ext.map -o afs.ext \
127 ${AFSAOBJS} $(AFSNOIAUTHOBJS) ${LIBS} ${LDFLAGS}
129 libafs: $(DEST_LIBAFS) $(DEST_LIBAFSIAUTH)
132 # Object build rules:
136 xdr_int64.o: $(RX)/xdr_int64.c
139 xdr_array.o: $(RX)/xdr_array.c
142 osi_assem.o: ${AFS}/osi_assem.s
143 ${AS} -o osi_assem.o ${AFS}/osi_assem.s
144 osi_config.o: $(AFS)/osi_config.c
146 osi_groups.o: $(AFS)/osi_groups.c
148 osi_file.o: $(AFS)/osi_file.c
150 osi_inode.o: $(AFS)/osi_inode.c
152 osi_misc.o: $(AFS)/osi_misc.c
154 osi_sleep.o: $(AFS)/osi_sleep.c
156 osi_timeout.o: $(AFS)/osi_timeout.c
158 osi_vfsops.o: $(AFS)/osi_vfsops.c
160 osi_vm.o: $(AFS)/osi_vm.c
162 osi_vnodeops.o: $(AFS)/osi_vnodeops.c
166 # Build rules for iauth objects.
167 afs_call_iauth.o: $(AFS)/afs_call.c
168 $(CRULE1) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o afs_call_iauth.o;
169 afs_nfsclnt_iauth.o: $(AFS)/afs_nfsclnt.c
170 $(CRULE1) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o afs_nfsclnt_iauth.o;
171 afs_pioctl_iauth.o: $(AFS)/afs_pioctl.c
172 $(CRULE1) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o afs_pioctl_iauth.o;
173 osi_vfsops_iauth.o: $(AFS)/osi_vfsops.c
174 $(CRULE1) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o osi_vfsops_iauth.o;
175 osi_vnodeops_iauth.o: $(AFS)/osi_vnodeops.c
176 $(CRULE1) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o osi_vnodeops_iauth.o;