# Copyright 2000, International Business Machines Corporation and others. # All Rights Reserved. # # This software has been released under the terms of the IBM Public # License. For details, see the LICENSE file in the top-level source # directory or online at http://www.openafs.org/dl/license10.html # srcdir=@srcdir@ include @TOP_OBJDIR@/src/config/Makefile.config K5SSL_INC=@K5SSL_INC@ @ENABLE_AES@AFS_K5SSL_AES = e_aes.o aes_cbc.o aes_cfb.o aes_ecb.o aes_ofb.o rijndael.o @ENABLE_CAST@AFS_K5SSL_CAST = e_cast.o cast_cbc.o cast_cfb.o cast_ecb.o cast_ofb.o cast.o @ENABLE_DES3@AFS_K5SSL_DES3 = e_des3.o des3_cbc.o des3_cfb.o des3_ecb.o des3_ofb.o @ENABLE_DES@AFS_K5SSL_DES = e_des.o des_cbc.o des_cfb.o des_ecb.o des_ofb.o @ENABLE_DES_DES3@AFS_K5SSL_DES_O = des.o @ENABLE_RC4@AFS_K5SSL_RC4 = e_rc4.o rc4.o @ENABLE_RC6@AFS_K5SSL_RC6 = e_rc6.o rc6_cbc.o rc6_cfb.o rc6_ecb.o rc6_ofb.o rc6.o AFS_K5SSL_OBJS = k5s_ck.o k5s_evp.o k5s_rn.o k5s_cm.o k5s_in.o \ $(AFS_K5SSL_AES) $(AFS_K5SSL_CAST) \ $(AFS_K5SSL_DES) $(AFS_K5SSL_DES3) $(AFS_K5SSL_DES_O) \ $(AFS_K5SSL_RC4) $(AFS_K5SSL_RC6) \ m_crc32.o \ m_md4.o \ m_md5.o \ md4c.o \ md5c.o \ m_sha1.o \ shs.o AFS_RXK5_OBJS = \ rxk5_tkt.o \ rxkad_tkt.o \ afs_token.xdr.o \ rxk5_client.o \ rxk5_common.o \ rxk5c.xdr.o \ xdr_mem.o # OS specific object files: AFS_OS_OBJS = \ osi_groups.o \ osi_file.o \ osi_inode.o \ osi_misc.o \ osi_sleep.o \ osi_vm.o \ $(AFS_RXK5_OBJS) \ $(AFS_K5SSL_OBJS) \ osi_vnodeops.o AFS_OS_NFSOBJS = \ osi_vfsops_nfs.o AFS_OS_NONFSOBJS = \ osi_vfsops.o # System specific build commands and flags KDEFS=-Wall -fformat-extensions -ansi -nostdinc -I/usr/include -D_KERNEL \ ${K5SSL_INC} -I${TOP_SRCDIR}/rxk5 \ -elf -mpreferred-stack-boundary=2 -I/usr/src/sys/sys -I../afs DBUG = -O2 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT OPTF=${OPT} OPTF2=${OPT2} CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG} # Name of directory to hold object files and libraries. KOBJ = STATIC # This tells Makefile.common to use it's single directory build target. COMPDIRS = single_compdir INSTDIRS = single_instdir DESTDIRS = single_destdir include Makefile.common setup: -mkdir $(KOBJ) -$(RM) $(KOBJ)/Makefile $(KOBJ)/Makefile.common $(KOBJ)/config ln -fs ../Makefile $(KOBJ)/Makefile ln -fs ../Makefile.common $(KOBJ)/Makefile.common ln -fs ../config $(KOBJ)/config -$(RM) -f h net netinet rpc ufs nfs machine sys vm -ln -fs /usr/src/sys/net net -ln -fs /usr/src/sys/i386/include machine -ln -fs /usr/src/sys/netinet netinet -ln -fs /usr/src/sys/nfs nfs -ln -fs /usr/include/rpc rpc -ln -fs /usr/src/sys/sys sys -ln -fs /usr/src/sys/ufs/ufs ufs -ln -fs /usr/src/sys/sys h -ln -fs /usr/src/sys/vm vm -touch $(KOBJ)/sec_net.h # Below this line are targets when in the COMMON directory: LIBAFS = libafs.o LIBAFSNONFS = libafs.nonfs.o INST_LIBAFS = ${DESTDIR}${afskerneldir}/${LIBAFS} INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/${LIBAFSNONFS} DEST_LIBAFS = ${DEST}/root.client/bin/${LIBAFS} DEST_LIBAFSNONFS = ${DEST}/root.client/bin/${LIBAFSNONFS} # libafs: $(LIBAFS) $(LIBAFSNONFS) # libafs: $(LIBAFSNONFS) # install_libafs: $(INST_LIBAFS) $(INST_LIBAFSNONFS) # install_libafs: $(INST_LIBAFSNONFS) # dest_libafs: $(DEST_LIBAFS) $(DEST_LIBAFSNONFS) # dest_libafs: $(DEST_LIBAFSNONFS) libafs: echo WARNING: No kernel module for ${SYS_NAME} install_libafs: echo WARNING: No kernel module for ${SYS_NAME} dest_libafs: echo WARNING: No kernel module for ${SYS_NAME} $(INST_LIBAFS): $(LIBAFS) $(INSTALL) -f $? $@ $(INST_LIBAFSNONFS): $(LIBAFSNONFS) $(INSTALL) -f $? $@ $(DEST_LIBAFS): $(LIBAFS) $(INSTALL) -f $? $@ $(DEST_LIBAFSNONFS): $(LIBAFSNONFS) $(INSTALL) -f $? $@ ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS) $(LD) -r -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS} ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS) $(LD) -r -o ${LIBAFSNONFS} ${AFSAOBJS} ${AFSNONFSOBJS}