1 #/* Copyright (C) 1995, 1989 Transarc Corporation - All rights reserved */
3 # MakefileProto for Digital Unix systems
7 # include ../config/Makefile.${SYS_NAME}
9 # OS specific object files:
26 # System specific build commands and flags
27 # KDEFS=-DLANGUAGE_C -I/usr/sys/include -I../include \
28 # -I/usr/src/sys/${HEADER_RT} -I/usr/src/sys/sys \
29 # -DSWAPTYPE=1 -DUERF -DOSF -DCOMPAT_43 -DUFS \
30 # -DRT -DKERNEL -D_KERNEL
31 KDEFS=-Wall -fformat-extensions -ansi -nostdinc -I/usr/include -D_KERNEL \
32 -elf -mpreferred-stack-boundary=2 -I/usr/src/sys/sys -I../afs
34 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
37 CFLAGS=-I. -I.. -I${TOP_SRCDIR}/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
40 # Name of directory to hold object files and libraries.
43 # This tells Makefile.common to use it's single directory build target.
44 COMPDIRS = single_compdir
46 include Makefile.common
50 -rm $(KOBJ)/Makefile $(KOBJ)/Makefile.common
51 ln -s ../Makefile $(KOBJ)/Makefile
52 ln -s ../Makefile.common $(KOBJ)/Makefile.common
53 -rm -f h net netinet rpc ufs nfs machine sys vm
54 -ln -s /usr/src/sys/net net
55 -ln -s /usr/src/sys/i386/include machine
56 -ln -s /usr/src/sys/netinet netinet
57 -ln -s /usr/src/sys/nfs nfs
58 -ln -s /usr/include/rpc rpc
59 -ln -s /usr/src/sys/sys sys
60 -ln -s /usr/src/sys/ufs/ufs ufs
61 -ln -s /usr/src/sys/sys h
62 -ln -s /usr/src/sys/vm vm
63 -touch $(KOBJ)/sec_net.h
66 # Below this line are targets when in the COMMON directory:
68 LIBAFSNONFS = libafs.nonfs.o
70 DEST_LIBAFS = ${DESTDIR}/root.client/bin/${LIBAFS}
71 DEST_LIBAFSNONFS = ${DESTDIR}/root.client/bin/${LIBAFSNONFS}
74 # libafs: $(DEST_LIBAFS) $(DEST_LIBAFSNONFS)
75 # libafs: $(DEST_LIBAFSNONFS)
77 echo WARNING: No kernel module for ${SYS_NAME}
80 $(DEST_LIBAFS): $(LIBAFS)
83 $(DEST_LIBAFSNONFS): $(LIBAFSNONFS)
86 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
87 $(LD) -r -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS}
89 ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
90 $(LD) -r -o ${LIBAFSNONFS} ${AFSAOBJS} ${AFSNONFSOBJS}
94 osi_groups.o: $(AFS)/osi_groups.c
96 osi_file.o: $(AFS)/osi_file.c
98 osi_inode.o: $(AFS)/osi_inode.c
100 osi_misc.o: $(AFS)/osi_misc.c
102 osi_sleep.o: $(AFS)/osi_sleep.c
104 osi_vfsops_nfs.o: $(AFS)/osi_vfsops.c
105 $(CRULE1) -o osi_vfsops_nfs.o
106 osi_vfsops.o: $(AFS)/osi_vfsops.c
107 $(CRULE1) -DAFS_NONFSTRANS
108 osi_vm.o: $(AFS)/osi_vm.c
110 osi_vnodeops.o: $(AFS)/osi_vnodeops.c