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 # MakefileProto for Digital Unix systems
12 include @TOP_OBJDIR@/src/config/Makefile.config
15 # OS specific object files:
27 #AFS_OS_NFSOBJS = osi_vfsops_nfs.o
29 AFS_OS_NONFSOBJS = osi_vfsops.o
32 # System specific build commands and flags
35 DEFINES= -D_KERNEL -DKERNEL -DKERNEL_PRIVATE -DDIAGNOSTIC -DUSE_SELECT -DMACH_USER_API -DMACH_KERNEL
37 KOPTS=-static -g -nostdinc -nostdlib -no-cpp-precomp -fno-builtin -finline -fno-keep-inline-functions -msoft-float -fsigned-bitfields -arch ppc -Dppc -DPPC -D__PPC__ -DPAGE_SIZE_FIXED -O2 -mcpu=750 -mmultiple -fschedule-insns
39 KOPTS=-static -fno-common -finline -fno-keep-inline-functions -force_cpusubtype_ALL -msoft-float -mlong-branch
41 KOPTS=-no-cpp-precomp -static -fno-common -finline -fno-keep-inline-functions -force_cpusubtype_ALL -msoft-float -mlong-branch
42 <ppc_darwin_14 ppc_darwin_13 ppc_darwin_12>
43 KOPTS=-no-precomp -static -fno-common -finline -fno-keep-inline-functions -force_cpusubtype_ALL -msoft-float -mlong-branch
45 CFLAGS=${KINCLUDES} -I. -I.. -I${TOP_OBJDIR}/src/config $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG} ${OPTMZ}
46 KINCLUDES=-I${KROOT}/System/Library/Frameworks/Kernel.Framework/Headers
49 # Name of directory to hold object files and libraries.
52 # This tells Makefile.common to use it's single directory build target.
53 COMPDIRS = single_compdir
54 INSTDIRS = single_instdir
55 DESTDIRS = single_destdir
57 include Makefile.common
61 -$(RM) $(KOBJ)/Makefile $(KOBJ)/Makefile.common $(KOBJ)/config
62 ln -fs ../Makefile $(KOBJ)/Makefile
63 ln -fs ../Makefile.common $(KOBJ)/Makefile.common
64 ln -fs ../config $(KOBJ)/config
65 -$(RM) -f h net netinet rpc ufs nfs machine sys vm mach kern
66 -ln -fs $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/net net
67 -ln -fs $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/machine machine
68 -ln -fs $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/netinet netinet
69 -ln -fs $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/nfs nfs
70 -ln -fs /usr/include/rpc rpc
71 -ln -fs $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/sys sys
72 -ln -fs $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/ufs ufs
73 -ln -fs $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/sys h
76 # Below this line are targets when in the COMMON directory:
78 LIBAFSNONFS = libafs.nonfs.o
80 INST_LIBAFS = ${DESTDIR}${afskerneldir}/afs-nfs.kext
81 INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/afs.kext
82 DEST_LIBAFS = ${DEST}/root.client/usr/vice/etc/afs-nfs.kext
83 DEST_LIBAFSNONFS = ${DEST}/root.client/usr/vice/etc/afs.kext
86 libafs: $(LIBAFSNONFS) ;
87 install_libafs: $(LIBAFSNONFS) ;
88 -mkdir -p ${INST_LIBAFSNONFS}
89 -mkdir -p ${INST_LIBAFSNONFS}/Contents
90 $(INSTALL) -f ../${DARWIN_INFOFILE} ${INST_LIBAFSNONFS}/Contents/Info.plist
91 -mkdir -p ${INST_LIBAFSNONFS}/Contents/MacOS
92 $(INSTALL) -f ${LIBAFSNONFS} ${INST_LIBAFSNONFS}/Contents/MacOS/afs
94 dest_libafs: $(LIBAFSNONFS) ;
95 -mkdir -p ${DEST_LIBAFSNONFS}
96 -mkdir -p ${DEST_LIBAFSNONFS}/Contents
97 $(INSTALL) -f ../${DARWIN_INFOFILE} ${DEST_LIBAFSNONFS}/Contents/Info.plist
98 -mkdir -p ${DEST_LIBAFSNONFS}/Contents/MacOS
99 $(INSTALL) -f ${LIBAFSNONFS} ${DEST_LIBAFSNONFS}/Contents/MacOS/afs
102 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
103 $(LD) -r -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS} -lcc_kext
105 ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
106 $(LD) -r -o ${LIBAFSNONFS} ${AFSAOBJS} ${AFSNONFSOBJS} -lcc_kext