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:
36 # System specific build commands and flags
37 KSRC = @BSD_KERNEL_PATH@
38 KBLD = @BSD_KERNEL_BUILD@
39 KARCHFLAGS = -Di386 -march=pentiumpro -mtune=pentiumpro
40 KOPTFLAGS = -D_KERNEL -DLKM -D_LKM -DDEBUG -DLOCKDEBUG
41 KDEFS=-Wall -ansi -nostdinc -I/usr/include \
42 ${KARCHFLAGS} ${KOPTFLAGS} \
43 -ffreestanding -Wno-pointer-sign -Wno-strict-aliasing \
47 -I${KSRC} -I${KSRC}/sys \
50 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
53 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
56 # Name of directory to hold object files and libraries.
59 # This tells Makefile.common to use it's single directory build target.
60 COMPDIRS = single_compdir
61 INSTDIRS = single_instdir
62 DESTDIRS = single_destdir
64 include Makefile.common
68 -$(RM) $(KOBJ)/Makefile $(KOBJ)/Makefile.common $(KOBJ)/config
69 ln -fs ../Makefile $(KOBJ)/Makefile
70 ln -fs ../Makefile.common $(KOBJ)/Makefile.common
71 ln -fs ../config $(KOBJ)/config
72 -$(RM) -f h net netinet rpc ufs nfs machine sys vm
73 -ln -fs ${KSRC}/net net
74 -ln -fs ${KSRC}/i386/include machine
75 -ln -fs ${KSRC}/netinet netinet
76 -ln -fs ${KSRC}/nfs nfs
77 -ln -fs /usr/include/rpc rpc
78 -ln -fs ${KSRC}/sys sys
79 -ln -fs ${KSRC}/ufs/ufs ufs
82 -ln -fs ${KSRC}/arch/x86/include/via_padlock.h /usr/include/x86/via_padlock.h
83 -ln -fs ${KSRC}/arch/x86/include/cpufunc.h /usr/include/x86/cpufunc.h
84 -ln -fs ${KSRC}/arch/x86/include/pic.h /usr/include/machine/pic.h
85 -touch $(KOBJ)/sec_net.h
88 # Below this line are targets when in the COMMON directory:
90 LIBAFSNONFS = libafs.nonfs.o
92 INST_LIBAFS = ${DESTDIR}${afskerneldir}/${LIBAFS}
93 INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/${LIBAFSNONFS}
95 DEST_LIBAFS = ${DEST}/root.client/bin/${LIBAFS}
96 DEST_LIBAFSNONFS = ${DEST}/root.client/bin/${LIBAFSNONFS}
98 <i386_nbsd40 i386_nbsd50>
99 # libafs: $(LIBAFS) $(LIBAFSNONFS)
100 libafs: $(LIBAFSNONFS)
101 # install_libafs: $(INST_LIBAFS) $(INST_LIBAFSNONFS)
102 #install_libafs: $(INST_LIBAFSNONFS)
104 # dest_libafs: $(DEST_LIBAFS) $(DEST_LIBAFSNONFS)
105 dest_libafs: $(DEST_LIBAFSNONFS)
106 <all -i386_nbsd40 -i386_nbsd50>
108 echo WARNING: No kernel module for ${SYS_NAME}
111 echo WARNING: No kernel module for ${SYS_NAME}
114 echo WARNING: No kernel module for ${SYS_NAME}
117 # for now, just skip it
118 #${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
119 # $(LD) -r -z muldefs -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS}
121 ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
122 $(LD) -r -z muldefs -o ${LIBAFSNONFS} ${AFSAOBJS} ${AFSNONFSOBJS}