5f24c4c354e0e2f803bf513ed6f6a1cd0c58eb21
[openafs.git] / src / libafs / MakefileProto.DFBSD.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3 #
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
7 #
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10
11
12 # OS specific object files:
13 AFS_OS_OBJS = \
14         osi_gcpags.o \
15         osi_groups.o \
16         osi_file.o \
17         osi_inode.o \
18         osi_misc.o \
19         osi_sleep.o \
20         osi_vm.o \
21         osi_vnodeops.o \
22         osi_module.o 
23
24 #AFS_OS_NFSOBJS = \
25 #       osi_vfsops_nfs.o
26
27 AFS_OS_NONFSOBJS = \
28         osi_vfsops.o
29
30
31 # System specific build commands and flags
32 KSRC = @BSD_KERNEL_PATH@
33 KBLD = @BSD_KERNEL_BUILD@
34
35 KDEFS=-Wall -nostdinc -I/usr/include -D_KERNEL -DKLD_MODULE \
36         -elf 
37
38 DBUG = -O2
39 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
40 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
41
42
43 # Name of directory to hold object files and libraries.
44 KOBJ = MODLOAD
45
46 # This tells Makefile.common to use it's single directory build target.
47 COMPDIRS = single_compdir
48 INSTDIRS = single_instdir
49 DESTDIRS = single_destdir
50
51 #include Makefile.common
52 all:
53         echo "skipping"
54
55 setup:
56         echo "skipping"
57
58 # Below this line are targets when in the COMMON directory:
59 LIBAFS = libafsnfs.ko
60 LIBAFSNONFS = libafs.ko
61
62 INST_LIBAFS = ${DESTDIR}${afskerneldir}/${LIBAFS}
63 INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/${LIBAFSNONFS}
64
65 DEST_LIBAFS = ${DEST}/root.client/bin/${LIBAFS}
66 DEST_LIBAFSNONFS = ${DEST}/root.client/bin/${LIBAFSNONFS}
67
68
69 # Without this line, gmake tries to build libafs
70 .PHONY: libafs
71
72 # libafs:       $(LIBAFS) $(LIBAFSNONFS)
73 libafs: $(LIBAFSNONFS)
74 # install_libafs:       $(INST_LIBAFS) $(INST_LIBAFSNONFS)
75 install_libafs: $(INST_LIBAFSNONFS)
76 # dest_libafs:  $(DEST_LIBAFS) $(DEST_LIBAFSNONFS)
77 dest_libafs:    $(DEST_LIBAFSNONFS)
78 #libafs:
79 #       echo WARNING: No kernel module for ${SYS_NAME}
80
81 #install_libafs:
82 #       echo WARNING: No kernel module for ${SYS_NAME}
83
84 #dest_libafs:
85 #       echo WARNING: No kernel module for ${SYS_NAME}
86
87
88 $(INST_LIBAFS): $(LIBAFS)
89         $(INSTALL) -f $? $@
90
91 $(INST_LIBAFSNONFS): $(LIBAFSNONFS)
92         $(INSTALL) -f $? $@
93
94 $(DEST_LIBAFS): $(LIBAFS)
95         $(INSTALL) -f $? $@
96
97 $(DEST_LIBAFSNONFS): $(LIBAFSNONFS)
98         $(INSTALL) -f $? $@
99
100 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
101            echo "Skipping kernel module build"
102
103 ${LIBAFSNONFS}:  $(AFSAOBJS) $(AFSNONFSOBJS)
104            echo "Skipping kernel module build"