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:
38 # Object files for iauth NFS->AFS authenticator.
46 # System specific build commands
52 IMPORTS = -bI:/lib/kernex.exp -bI:/lib/syscalls.exp -bI:/lib/sockets.exp \
53 -bI:/lib/netinet.exp \
54 -bI:${DESTDIR}lib/afs/extras.exp -bI:${DESTDIR}lib/afs/export.exp
55 KDEFS = -U_IBMR2 -D_POWER -D_AIX -DNLS -D_NLS -DMSG -D__STR31__ -Daiws \
56 -D_POWER_RS -D_POWER_PC -D_POWER_RS1 -D_POWER_RS2 -D_POWER_RSC \
57 -D_POWER_601 -D_POWER_603 -D_POWER_604 -D_THREADS -M -D_KERNEL \
58 -D_POWER_MP -UKOFF -DAFSDEBUG -DVICE -DNFS -DUFS -DINET -DQUOTA \
59 -DGETMOUNT -H8 -DAFS -DAFS_COMMON -D_VOPS -D_SUN -DKERNEL
60 LDSTUFF= -b"binder:/usr/lib/bind glink:/usr/lib/glink.o" -bnoentry -b h:4 \
62 LDFLAGS = -m -eafs_config -bexport:${DESTDIR}/lib/afs/afs.exp ${IMPORTS} \
65 CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(KDEFS) $(KOPTS) ${DBUG}
67 # Name of directory to hold object files and libraries.
70 # This tells Makefile.common to use it's single directory build target.
71 COMPDIRS = single_compdir
73 include Makefile.common
77 -rm $(KOBJ)/Makefile $(KOBJ)/Makefile.common
78 ln -s ../Makefile $(KOBJ)/Makefile
79 ln -s ../Makefile.common $(KOBJ)/Makefile.common
80 -rm -f h net netinet rpc ufs nfs machine sys
81 ln -s /usr/include/sys h
82 ln -s /usr/include/net net
83 ln -s /usr/include/netinet netinet
84 ln -s /usr/include/rpc rpc
85 ln -s /usr/include/sys sys
86 ln -s /usr/include/nfs nfs
87 ln -s /usr/include/jfs ufs
93 # Standard AFS->NFS translator support is removed in AFS 3.5 in favor of
94 # the iauth authentication mechanism. The model was changed by IBM in the
95 # middle of an OS release. So iauth is only supported on AIX 4.1.5 and
96 # later 4.1.x (if they are ever made) and AIX 4.2.1 (and later AIX 4.2.x if
97 # they are ever made. AIX 4.3 also uses the iauth translator.
99 CLIENTDIR = $(DESTDIR)root.client/usr/vice/etc/dkload
100 LIBAFSIAUTH = afs.ext.iauth
103 DEST_LIBAFSIAUTH = $(CLIENTDIR)/$(LIBAFSIAUTH)
104 DEST_LIBAFS = $(CLIENTDIR)/$(LIBAFS)
106 $(DEST_LIBAFS): $(LIBAFS)
109 $(INSTALL) -f $?.map $@.map
111 $(DEST_LIBAFSIAUTH): $(LIBAFSIAUTH)
114 $(INSTALL) -f $?.map $@.map
118 $(LIBAFSIAUTH): $(AFSAOBJS) $(AFSIAUTHOBJS)
119 ${LD} ${LDSTUFF} -bloadmap:afs.ext.iauth.loadmap \
120 -bmap:afs.ext.iauth.map -o afs.ext.iauth \
121 ${AFSAOBJS} ${AFSIAUTHOBJS} ${LIBS} ${LDFLAGS}
123 $(LIBAFS): $(AFSAOBJS) $(AFSNOIAUTHOBJS)
124 ${LD} ${LDSTUFF} -bloadmap:afs.ext.loadmap \
125 -bmap:afs.ext.map -o afs.ext \
126 ${AFSAOBJS} $(AFSNOIAUTHOBJS) ${LIBS} ${LDFLAGS}
128 libafs: $(DEST_LIBAFS) $(DEST_LIBAFSIAUTH)
131 # Object build rules:
135 xdr_int64.o: $(RX)/xdr_int64.c
138 xdr_array.o: $(RX)/xdr_array.c
141 osi_assem.o: ${AFS}/osi_assem.s
142 ${AS} -o osi_assem.o ${AFS}/osi_assem.s
143 osi_config.o: $(AFS)/osi_config.c
145 osi_groups.o: $(AFS)/osi_groups.c
147 osi_file.o: $(AFS)/osi_file.c
149 osi_inode.o: $(AFS)/osi_inode.c
151 osi_misc.o: $(AFS)/osi_misc.c
153 osi_sleep.o: $(AFS)/osi_sleep.c
155 osi_timeout.o: $(AFS)/osi_timeout.c
157 osi_vfsops.o: $(AFS)/osi_vfsops.c
159 osi_vm.o: $(AFS)/osi_vm.c
161 osi_vnodeops.o: $(AFS)/osi_vnodeops.c
165 # Build rules for iauth objects.
166 afs_call_iauth.o: $(AFS)/afs_call.c
167 $(CRULE1) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o afs_call_iauth.o;
168 afs_nfsclnt_iauth.o: $(AFS)/afs_nfsclnt.c
169 $(CRULE1) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o afs_nfsclnt_iauth.o;
170 afs_pioctl_iauth.o: $(AFS)/afs_pioctl.c
171 $(CRULE1) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o afs_pioctl_iauth.o;
172 osi_vfsops_iauth.o: $(AFS)/osi_vfsops.c
173 $(CRULE1) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o osi_vfsops_iauth.o;
174 osi_vnodeops_iauth.o: $(AFS)/osi_vnodeops.c
175 $(CRULE1) -DAFS_NONFSTRANS -DAFS_AIX_IAUTH_ENV -o osi_vnodeops_iauth.o;