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
9 include @TOP_OBJDIR@/src/config/Makefile.config
12 # OS specific object files:
32 # System specific build commands and flags
33 KSRC = @BSD_KERNEL_PATH@
34 KBLD = @BSD_KERNEL_BUILD@
36 KDEFS=-Wall -nostdinc -I/usr/include -D_KERNEL -DKLD_MODULE \
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}
44 # Name of directory to hold object files and libraries.
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
52 #include Makefile.common
59 # Below this line are targets when in the COMMON directory:
61 LIBAFSNONFS = libafs.ko
63 INST_LIBAFS = ${DESTDIR}${afskerneldir}/${LIBAFS}
64 INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/${LIBAFSNONFS}
66 DEST_LIBAFS = ${DEST}/root.client/bin/${LIBAFS}
67 DEST_LIBAFSNONFS = ${DEST}/root.client/bin/${LIBAFSNONFS}
70 # Without this line, gmake tries to build libafs
73 # libafs: $(LIBAFS) $(LIBAFSNONFS)
74 libafs: $(LIBAFSNONFS)
75 # install_libafs: $(INST_LIBAFS) $(INST_LIBAFSNONFS)
76 install_libafs: $(INST_LIBAFSNONFS)
77 # dest_libafs: $(DEST_LIBAFS) $(DEST_LIBAFSNONFS)
78 dest_libafs: $(DEST_LIBAFSNONFS)
80 # echo WARNING: No kernel module for ${SYS_NAME}
83 # echo WARNING: No kernel module for ${SYS_NAME}
86 # echo WARNING: No kernel module for ${SYS_NAME}
89 $(INST_LIBAFS): $(LIBAFS)
92 $(INST_LIBAFSNONFS): $(LIBAFSNONFS)
95 $(DEST_LIBAFS): $(LIBAFS)
98 $(DEST_LIBAFSNONFS): $(LIBAFSNONFS)
101 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
102 echo "Skipping kernel module build"
104 ${LIBAFSNONFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
105 echo "Skipping kernel module build"