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 include @TOP_OBJDIR@/src/config/Makefile.config
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16 # OS specific object files:
34 # System specific build commands and flags
35 KDEFS=-Wall -fformat-extensions -ansi -nostdinc -I/usr/include -D_KERNEL \
36 -elf -mpreferred-stack-boundary=2 -I/usr/src/sys/sys -I../afs
38 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
41 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
44 # Name of directory to hold object files and libraries.
47 # This tells Makefile.common to use it's single directory build target.
48 COMPDIRS = single_compdir
49 INSTDIRS = single_instdir
50 DESTDIRS = single_destdir
52 include Makefile.common
56 -$(RM) $(KOBJ)/Makefile $(KOBJ)/Makefile.common $(KOBJ)/config
57 ln -fs ../Makefile $(KOBJ)/Makefile
58 ln -fs ../Makefile.common $(KOBJ)/Makefile.common
59 ln -fs ../config $(KOBJ)/config
60 -$(RM) -f h net netinet rpc ufs nfs machine sys vm
61 -ln -fs /usr/src/sys/net net
62 -ln -fs /usr/src/sys/i386/include machine
63 -ln -fs /usr/src/sys/netinet netinet
64 -ln -fs /usr/src/sys/nfs nfs
65 -ln -fs /usr/include/rpc rpc
66 -ln -fs /usr/src/sys/sys sys
67 -ln -fs /usr/src/sys/ufs/ufs ufs
68 -ln -fs /usr/src/sys/sys h
69 -ln -fs /usr/src/sys/vm vm
70 -touch $(KOBJ)/sec_net.h
73 # Below this line are targets when in the COMMON directory:
75 LIBAFSNONFS = libafs.nonfs.o
77 INST_LIBAFS = ${DESTDIR}${afskerneldir}/${LIBAFS}
78 INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/${LIBAFSNONFS}
80 DEST_LIBAFS = ${DEST}/root.client/bin/${LIBAFS}
81 DEST_LIBAFSNONFS = ${DEST}/root.client/bin/${LIBAFSNONFS}
84 # libafs: $(LIBAFS) $(LIBAFSNONFS)
85 # libafs: $(LIBAFSNONFS)
86 # install_libafs: $(INST_LIBAFS) $(INST_LIBAFSNONFS)
87 # install_libafs: $(INST_LIBAFSNONFS)
88 # dest_libafs: $(DEST_LIBAFS) $(DEST_LIBAFSNONFS)
89 # dest_libafs: $(DEST_LIBAFSNONFS)
91 echo WARNING: No kernel module for ${SYS_NAME}
94 echo WARNING: No kernel module for ${SYS_NAME}
97 echo WARNING: No kernel module for ${SYS_NAME}
100 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
101 $(LD) -r -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS}
103 ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
104 $(LD) -r -o ${LIBAFSNONFS} ${AFSAOBJS} ${AFSNONFSOBJS}