1 #/* Copyright (C) 1995, 1989 Transarc Corporation - All rights reserved */
4 include @TOP_OBJDIR@/src/config/Makefile.config
7 # OS specific object files:
24 # System specific build commands and flags
25 KDEFS=-Wall -fformat-extensions -ansi -nostdinc -I/usr/include -D_KERNEL \
26 -elf -mpreferred-stack-boundary=2 -I/usr/src/sys/sys -I../afs
28 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
31 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
34 # Name of directory to hold object files and libraries.
37 # This tells Makefile.common to use it's single directory build target.
38 COMPDIRS = single_compdir
39 INSTDIRS = single_instdir
40 DESTDIRS = single_destdir
42 include Makefile.common
46 -$(RM) $(KOBJ)/Makefile $(KOBJ)/Makefile.common $(KOBJ)/config
47 ln -fs ../Makefile $(KOBJ)/Makefile
48 ln -fs ../Makefile.common $(KOBJ)/Makefile.common
49 ln -fs ../config $(KOBJ)/config
50 -$(RM) -f h net netinet rpc ufs nfs machine sys vm
51 -ln -fs /usr/src/sys/net net
52 -ln -fs /usr/src/sys/i386/include machine
53 -ln -fs /usr/src/sys/netinet netinet
54 -ln -fs /usr/src/sys/nfs nfs
55 -ln -fs /usr/include/rpc rpc
56 -ln -fs /usr/src/sys/sys sys
57 -ln -fs /usr/src/sys/ufs/ufs ufs
58 -ln -fs /usr/src/sys/sys h
59 -ln -fs /usr/src/sys/vm vm
60 -touch $(KOBJ)/sec_net.h
63 # Below this line are targets when in the COMMON directory:
65 LIBAFSNONFS = libafs.nonfs.o
67 INST_LIBAFS = ${DESTDIR}${afskerneldir}/${LIBAFS}
68 INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/${LIBAFSNONFS}
70 DEST_LIBAFS = ${DEST}/root.client/bin/${LIBAFS}
71 DEST_LIBAFSNONFS = ${DEST}/root.client/bin/${LIBAFSNONFS}
74 # libafs: $(LIBAFS) $(LIBAFSNONFS)
75 # libafs: $(LIBAFSNONFS)
76 # install_libafs: $(INST_LIBAFS) $(INST_LIBAFSNONFS)
77 # install_libafs: $(INST_LIBAFSNONFS)
78 # dest_libafs: $(DEST_LIBAFS) $(DEST_LIBAFSNONFS)
79 # dest_libafs: $(DEST_LIBAFSNONFS)
81 echo WARNING: No kernel module for ${SYS_NAME}
84 echo WARNING: No kernel module for ${SYS_NAME}
87 echo WARNING: No kernel module for ${SYS_NAME}
90 $(INST_LIBAFS): $(LIBAFS)
93 $(INST_LIBAFSNONFS): $(LIBAFSNONFS)
96 $(DEST_LIBAFS): $(LIBAFS)
99 $(DEST_LIBAFSNONFS): $(LIBAFSNONFS)
102 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
103 $(LD) -r -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS}
105 ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
106 $(LD) -r -o ${LIBAFSNONFS} ${AFSAOBJS} ${AFSNONFSOBJS}