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:
35 # System specific build commands and flags
36 KSRC = @BSD_KERNEL_PATH@
37 KBLD = @BSD_KERNEL_BUILD@
38 KARCHFLAGS = -march=pentiumpro -mtune=pentiumpro -mtune=pentiumpro
39 KOPTFLAGS = -D_KERNEL -DLKM -D_LKM -DDEBUG -DLOCKDEBUG
40 KDEFS=-Wall -ansi -nostdinc -I/usr/include \
41 ${KARCHFLAGS} ${KOPTFLAGS} \
42 -ffreestanding -Wno-pointer-sign -Wno-strict-aliasing \
43 -I${KSRC} -I${KSRC}/sys \
46 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
49 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
52 # Name of directory to hold object files and libraries.
55 # This tells Makefile.common to use it's single directory build target.
56 COMPDIRS = single_compdir
57 INSTDIRS = single_instdir
58 DESTDIRS = single_destdir
60 include Makefile.common
64 -$(RM) $(KOBJ)/Makefile $(KOBJ)/Makefile.common $(KOBJ)/config
65 ln -fs ../Makefile $(KOBJ)/Makefile
66 ln -fs ../Makefile.common $(KOBJ)/Makefile.common
67 ln -fs ../config $(KOBJ)/config
68 -$(RM) -f h net netinet rpc ufs nfs machine sys vm
69 -ln -fs ${KSRC}/net net
70 -ln -fs ${KSRC}/i386/include machine
71 -ln -fs ${KSRC}/netinet netinet
72 -ln -fs ${KSRC}/nfs nfs
73 -ln -fs /usr/include/rpc rpc
74 -ln -fs ${KSRC}/sys sys
75 -ln -fs ${KSRC}/ufs/ufs ufs
78 -touch $(KOBJ)/sec_net.h
81 # Below this line are targets when in the COMMON directory:
83 LIBAFSNONFS = libafs.nonfs.o
85 INST_LIBAFS = ${DESTDIR}${afskerneldir}/${LIBAFS}
86 INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/${LIBAFSNONFS}
88 DEST_LIBAFS = ${DEST}/root.client/bin/${LIBAFS}
89 DEST_LIBAFSNONFS = ${DEST}/root.client/bin/${LIBAFSNONFS}
92 # libafs: $(LIBAFS) $(LIBAFSNONFS)
93 libafs: $(LIBAFSNONFS)
94 # install_libafs: $(INST_LIBAFS) $(INST_LIBAFSNONFS)
95 install_libafs: $(INST_LIBAFSNONFS)
96 # dest_libafs: $(DEST_LIBAFS) $(DEST_LIBAFSNONFS)
97 dest_libafs: $(DEST_LIBAFSNONFS)
100 echo WARNING: No kernel module for ${SYS_NAME}
103 echo WARNING: No kernel module for ${SYS_NAME}
106 echo WARNING: No kernel module for ${SYS_NAME}
109 # for now, just skip it
110 #${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
111 # $(LD) -r -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS}
113 ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
114 $(LD) -r -o ${LIBAFSNONFS} ${AFSAOBJS} ${AFSNONFSOBJS}