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
8 # OpenBSD version by Jim Rees
11 include @TOP_OBJDIR@/src/config/Makefile.config
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
17 # System specific build commands and flags
18 KSRC = @BSD_KERNEL_PATH@
19 KFLAGS= -Wall -march=i486 -fno-builtin-printf -fno-builtin-log -fno-builtin-malloc -nostdinc
21 KFLAGS+= -fno-stack-protector
25 -I/usr/include -I${KSRC}/sys \
26 -DLKM -DDIAGNOSTIC -DFIFO -DNFSCLIENT -DMFS -DFFS -D_KERNEL -DI586_CPU \
29 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
32 CFLAGS= ${FSINCLUDES} ${DEFINES} ${KDEFS} ${KOPTS} ${DBUG}
34 # Name of directory to hold object files and libraries.
37 # OS specific object files:
49 #AFS_OS_NFSOBJS = osi_vfsops_nfs.o
51 AFS_OS_NONFSOBJS = osi_vfsops.o
53 # This tells Makefile.common to use its single directory build target.
54 COMPDIRS = single_compdir
55 INSTDIRS = single_instdir
56 DESTDIRS = single_destdir
60 include Makefile.common
64 -$(RM) -f $(KOBJ)/Makefile $(KOBJ)/Makefile.common $(KOBJ)/config
65 ln -fs ../Makefile $(KOBJ)/Makefile
66 ln -fs ../Makefile.common $(KOBJ)/Makefile.common
70 -touch $(KOBJ)/sec_net.h
73 # Below this line are targets when in the COMMON directory:
75 LIBAFSNONFS = libafs.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: $(LIBAFSNONFS)
87 install_libafs: $(LIBAFSNONFS)
88 ${INSTALL} -d ${DESTDIR}${afskerneldir}
89 ${INSTALL} -m 644 $(LIBAFSNONFS) $(INST_LIBAFSNONFS)
91 dest_libafs: $(LIBAFSNONFS)
92 ${INSTALL} -d ${DEST}/root.client/bin
93 $(INSTALL) -m 644 $(LIBAFSNONFS) $(DEST_LIBAFSNONFS)
95 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
96 $(LD) -r -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS}
98 ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
99 $(LD) -r -o ${LIBAFSNONFS} ${AFSAOBJS} ${AFSNONFSOBJS}