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