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