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 # System specific build commands and flags
15 KFLAGS= -Wall -nostdinc
17 KFLAGS+= -fno-stack-protector
21 -I/usr/include -I${KSRC}/sys \
22 -DLKM -DDIAGNOSTIC -DFIFO -DNFSCLIENT -DMFS -DFFS -D_KERNEL -DI586_CPU \
25 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
28 CFLAGS= ${FSINCLUDES} ${DEFINES} ${KDEFS} ${KOPTS} ${DBUG}
30 # Name of directory to hold object files and libraries.
33 # OS specific object files:
42 #AFS_OS_NFSOBJS = osi_vfsops_nfs.o
44 AFS_OS_NONFSOBJS = osi_vfsops.o
46 # This tells Makefile.common to use its single directory build target.
47 COMPDIRS = single_compdir
48 INSTDIRS = single_instdir
49 DESTDIRS = single_destdir
53 include Makefile.common
60 -I${TOP_SRCDIR}/afs/${MKAFS_OSTYPE} \
61 -I${TOP_SRCDIR}/config \
63 -I${TOP_SRCDIR}/rx/${MKAFS_OSTYPE} \
64 -I${TOP_SRCDIR}/rxkad \
65 -I${TOP_SRCDIR}/domestic \
66 -I${TOP_SRCDIR}/util \
67 -I${TOP_SRCDIR}/../include \
68 -I${TOP_SRCDIR}/../include/afs
72 -$(RM) -f $(KOBJ)/Makefile $(KOBJ)/Makefile.common $(KOBJ)/config
73 ln -fs ../Makefile $(KOBJ)/Makefile
74 ln -fs ../Makefile.common $(KOBJ)/Makefile.common
78 -touch $(KOBJ)/sec_net.h
81 # Below this line are targets when in the COMMON directory:
83 LIBAFSNONFS = libafs.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: $(LIBAFSNONFS)
94 install_libafs: $(INST_LIBAFSNONFS)
95 dest_libafs: $(DEST_LIBAFSNONFS)
97 $(INST_LIBAFS): $(LIBAFS)
100 $(INST_LIBAFSNONFS): $(LIBAFSNONFS)
103 $(DEST_LIBAFS): $(LIBAFS)
106 $(DEST_LIBAFSNONFS): $(LIBAFSNONFS)
109 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
110 $(LD) -r -o ${LIBAFS} ${AFSAOBJS} ${AFSNFSOBJS}
112 ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
113 $(LD) -r -o ${LIBAFSNONFS} ${AFSAOBJS} ${AFSNONFSOBJS}