# Base directory for linux kernel source. Actually a prefix which is complete
# when LINUX_VERS is appended to it.
-LINUX_SRCDIR = /usr/src/linux-
+LINUX_SRCDIR = $(KSRC)
# Default list of Linux kernels to build. Build will run only if all
# can be built. To build a different set, specify LINUX_VERS to make.
-LINUX_VERS = 2.2.17
+LINUX_VERS = $(KVERS)
#
# compilation and link editor flags
setup:
-rm -f h net netinet sys rpc
-ln -s rx rpc
- for v in ${LINUX_VERS} ; do \
+ for v in notused; do \
for m in ${MPS} ; do \
- KDIR=$(KOBJ)-$$v-$$m; \
+ KDIR=$(KOBJ)-$$m; \
mkdir -p $${KDIR}; \
ln -fs ../Makefile $${KDIR}/Makefile ; \
ln -fs ../Makefile.common $${KDIR}/Makefile.common; \
LINUX_INCDIR=include/linux
${COMPDIRS}:
- for v in ${LINUX_VERS} ; do \
- IDIR=${LINUX_SRCDIR}$$v/${LINUX_INCDIR}; \
+ for v in notused ; do \
+ IDIR=${LINUX_SRCDIR}/${LINUX_INCDIR}; \
rm -f h; \
ln -s $${IDIR} h; \
rm -f linux; \
rm -f sys; \
ln -s $${IDIR} sys; \
rm -f asm; \
- ln -s ${LINUX_SRCDIR}$$v/include/asm-i386 asm ; \
+ ln -s ${LINUX_SRCDIR}/include/asm-i386 asm ; \
for m in ${MPS} ; do \
- KDIR=${KOBJ}-$$v-$$m ; \
+ KDIR=${KOBJ}-$$m ; \
echo Building in directory: $${KDIR} ; \
if [ "$$m" = "MP" ] ; then \
SMP_DEF="-DAFS_SMP" ; \
TARG=libafs ; \
fi ; \
cd $${KDIR} ; \
- $(MAKE) DESTDIR=${DESTDIR} SMP_DEF=$${SMP_DEF} $${TARG} CLIENT=$$v || exit $$?; \
+ $(MAKE) DESTDIR=${DESTDIR} SMP_DEF=$${SMP_DEF} $${TARG} CLIENT="" || exit $$?; \
cd ../ ; \
done \
done
# Below this line are targets when in the COMMON directory:
# For Linux there is no kernel NFS server.
-LIBAFS = libafs-${CLIENT}.o
-LIBAFS_MP = libafs-${CLIENT}.mp.o
+LIBAFS = libafs${CLIENT}.o
+LIBAFS_MP = libafs${CLIENT}.mp.o
DEST_LIBAFS = ${DESTDIR}/root.client/usr/vice/etc/modload/${LIBAFS}
DEST_LIBAFS_MP = ${DESTDIR}/root.client/usr/vice/etc/modload/${LIBAFS_MP}