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=-no-cpp-precomp -static -fno-common -finline -fno-keep-inline-functions -force_cpusubtype_ALL -msoft-float -mlong-branch
38 <ppc_darwin_14 ppc_darwin_13 ppc_darwin_12>
39 KOPTS=-no-precomp -static -fno-common -finline -fno-keep-inline-functions -force_cpusubtype_ALL -msoft-float -mlong-branch
41 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${KINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG} ${OPTMZ}
42 KINCLUDES=-I${KROOT}/System/Library/Frameworks/Kernel.Framework/Headers
45 # Name of directory to hold object files and libraries.
48 # This tells Makefile.common to use it's single directory build target.
49 COMPDIRS = single_compdir
50 INSTDIRS = single_instdir
51 DESTDIRS = single_destdir
53 include Makefile.common
57 -$(RM) $(KOBJ)/Makefile $(KOBJ)/Makefile.common $(KOBJ)/config
58 ln -fs ../Makefile $(KOBJ)/Makefile
59 ln -fs ../Makefile.common $(KOBJ)/Makefile.common
60 ln -fs ../config $(KOBJ)/config
61 -$(RM) -f h net netinet rpc ufs nfs machine sys vm mach kern
62 -ln -fs $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/net net
63 -ln -fs $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/machine machine
64 -ln -fs $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/netinet netinet
65 -ln -fs $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/nfs nfs
66 -ln -fs /usr/include/rpc rpc
67 -ln -fs $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/sys sys
68 -ln -fs $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/ufs ufs
69 -ln -fs $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/sys h
72 # Below this line are targets when in the COMMON directory:
74 LIBAFSNONFS = libafs.nonfs.o
76 INST_LIBAFS = ${DESTDIR}${afskerneldir}/afs-nfs.kext
77 INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/afs.kext
78 DEST_LIBAFS = ${DEST}/root.client/usr/vice/etc/afs-nfs.kext
79 DEST_LIBAFSNONFS = ${DEST}/root.client/usr/vice/etc/afs.kext
82 libafs: $(LIBAFSNONFS) ;
83 install_libafs: $(LIBAFSNONFS) ;
84 -mkdir -p ${INST_LIBAFSNONFS}
85 -mkdir -p ${INST_LIBAFSNONFS}/Contents
86 $(INSTALL) -f ../${DARWIN_INFOFILE} ${INST_LIBAFSNONFS}/Contents/Info.plist
87 -mkdir -p ${INST_LIBAFSNONFS}/Contents/MacOS
88 $(INSTALL) -f ${LIBAFSNONFS} ${INST_LIBAFSNONFS}/Contents/MacOS/afs
90 dest_libafs: $(LIBAFSNONFS) ;
91 -mkdir -p ${DEST_LIBAFSNONFS}
92 -mkdir -p ${DEST_LIBAFSNONFS}/Contents
93 $(INSTALL) -f ../${DARWIN_INFOFILE} ${DEST_LIBAFSNONFS}/Contents/Info.plist
94 -mkdir -p ${DEST_LIBAFSNONFS}/Contents/MacOS
95 $(INSTALL) -f ${LIBAFSNONFS} ${DEST_LIBAFSNONFS}/Contents/MacOS/afs
98 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
99 $(LD) -r -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS}
101 ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
102 $(LD) -r -o ${LIBAFSNONFS} ${AFSAOBJS} ${AFSNONFSOBJS}