LINUX: afs_create infinite fetchStatus loop
[pkg-k5-afs_openafs.git] / src / libafs / MakefileProto.NBSD.in
blob892dea2e9b2e42cd76ee8f80b20af01386e92357
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
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 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 INSTALL = @INSTALL@
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16 # OS specific object files:
17 AFS_OS_OBJS = \
18         osi_crypto.o \
19         osi_gcpags.o \
20         osi_groups.o \
21         osi_file.o \
22         osi_inode.o \
23         osi_misc.o \
24         osi_sleep.o \
25         osi_vcache.o \
26         osi_vm.o \
27         osi_vnodeops.o
29 AFS_OS_NFSOBJS = \
30         osi_vfsops_nfs.o
32 AFS_OS_NONFSOBJS = \
33         osi_vfsops.o
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 \
44 <i386_nbsd50>
45         -std=gnu99 \
46 <all>
47         -I${KSRC} -I${KSRC}/sys \
48         -I${KBLD} -I../afs
49 DBUG = -O2 -g3
50 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
51 OPTF=${OPT} 
52 OPTF2=${OPT2} 
53 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
56 # Name of directory to hold object files and libraries.
57 KOBJ = MODLOAD
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
66 setup:
67         -mkdir $(KOBJ)
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
80         -ln -fs ${KSRC}/sys h
81         -ln -fs ${KSRC}/vm vm
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:
89 LIBAFS = libafs.o
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)
103 install_libafs: 
104 # dest_libafs:  $(DEST_LIBAFS) $(DEST_LIBAFSNONFS)
105 dest_libafs:    $(DEST_LIBAFSNONFS)
106 <all -i386_nbsd40 -i386_nbsd50>
107 libafs:
108         echo WARNING: No kernel module for ${SYS_NAME}
110 install_libafs:
111         echo WARNING: No kernel module for ${SYS_NAME}
113 dest_libafs:
114         echo WARNING: No kernel module for ${SYS_NAME}
115 <all>
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}