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