1 #/* Copyright (C) 1995, 1989 Transarc Corporation - All rights reserved */
4 # MakefileProto for Digital Unix systems
8 TOP_SRCDIR=@TOP_SRCDIR@
11 include config/Makefile.${SYS_NAME}
14 # OS specific object files:
29 #AFS_OS_NFSOBJS = osi_vfsops_nfs.o
31 AFS_OS_NONFSOBJS = osi_vfsops.o
34 # System specific build commands and flags
37 DEFINES= -D_KERNEL -DKERNEL -DKERNEL_PRIVATE -DDIAGNOSTIC -DUSE_SELECT -DMACH_USER_API -DMACH_KERNEL
40 KOPTS=-traditional-cpp -static -fno-common -finline -fno-keep-inline-functions -force_cpusubtype_ALL -msoft-float -mlong-branch
41 #CFLAGS=-Werror-implicit-function-declaration -I. -I.. ${KINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
42 #CFLAGS=-framework Kernel -I. -I.. ${KINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
43 CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${KINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
46 # Name of directory to hold object files and libraries.
49 # This tells Makefile.common to use it's single directory build target.
50 COMPDIRS = single_compdir
51 INSTDIRS = single_instdir
53 include Makefile.common
57 -rm $(KOBJ)/Makefile $(KOBJ)/Makefile.common $(KOBJ)/config
58 ln -s ../Makefile $(KOBJ)/Makefile
59 ln -s ../Makefile.common $(KOBJ)/Makefile.common
60 ln -s ../config $(KOBJ)/config
61 -rm -f h net netinet rpc ufs nfs machine sys vm mach kern
62 -ln -s $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/net net
63 -ln -s $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/machine machine
64 -ln -s $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/netinet netinet
65 -ln -s $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/nfs nfs
66 -ln -s /usr/include/rpc rpc
67 -ln -s $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/sys sys
68 -ln -s $(KROOT)/System/Library/Frameworks/Kernel.framework/Headers/ufs ufs
69 -ln -s $(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 DEST_LIBAFS = ${DESTDIR}/root.client/usr/vice/etc/afs.kext/Contents/MacOS/afs-nfs
77 DEST_LIBAFSNONFS = ${DESTDIR}/root.client/usr/vice/etc/afs.kext/Contents/MacOS/afs
80 libafs: $(LIBAFSNONFS) ;
81 install_libafs: $(DEST_LIBAFSNONFS) ;
84 $(DEST_LIBAFS): $(LIBAFS)
87 $(DEST_LIBAFSNONFS): $(LIBAFSNONFS)
90 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
91 $(LD) -r -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS}
93 ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
94 $(LD) -r -o ${LIBAFSNONFS} ${AFSAOBJS} ${AFSNONFSOBJS}
98 osi_groups.o: $(AFS)/osi_groups.c
100 osi_file.o: $(AFS)/osi_file.c
102 osi_inode.o: $(AFS)/osi_inode.c
104 osi_misc.o: $(AFS)/osi_misc.c
106 osi_sleep.o: $(AFS)/osi_sleep.c
108 osi_vfsops_nfs.o: $(AFS)/osi_vfsops.c
109 $(CRULE1) -o osi_vfsops_nfs.o
110 osi_vfsops.o: $(AFS)/osi_vfsops.c
111 $(CRULE1) -DAFS_NONFSTRANS
112 osi_vm.o: $(AFS)/osi_vm.c
114 osi_vnodeops.o: $(AFS)/osi_vnodeops.c
116 osi_module.o: $(AFS)/osi_module.c
120 xdr_array.o: $(RX)/xdr_array.c
122 xdr_int64.o: $(RX)/xdr_int64.c