dux-create-loadable-kernel-module-20010829
authorJohan Danielsson <joda@pdc.kth.se>
Wed, 29 Aug 2001 17:55:56 +0000 (17:55 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 29 Aug 2001 17:55:56 +0000 (17:55 +0000)
with minor correction by shadow@dementia.org to install the module, but
we now create a loadable kernel module for dux

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

actually build afs.mod

====================

fix typo

src/libafs/MakefileProto.DUX.in

index b13b232..a59d65a 100644 (file)
@@ -75,21 +75,26 @@ setup:
 # Below this line are targets when in the COMMON directory:
 LIBAFS = libafs.o
 LIBAFSNONFS = libafs.nonfs.o
+AFSMOD = afs.mod
 
 DEST_LIBAFS = ${DESTDIR}/root.client/bin/${LIBAFS}
 DEST_LIBAFSNONFS = ${DESTDIR}/root.client/bin/${LIBAFSNONFS}
+DEST_AFSMOD = ${DESTDIR}/root.client/bin/${AFSMOD}
 
 
-# libafs:      $(DEST_LIBAFS) $(DEST_LIBAFSNONFS)
+# libafs:      ${DEST_LIBAFS} ${DEST_LIBAFSNONFS} ${DEST_AFSMOD}
 
 .PHONY: libafs
-libafs:        $(DEST_LIBAFSNONFS)
+libafs:        ${DEST_LIBAFSNONFS} ${DEST_AFSMOD}
 
 
-$(DEST_LIBAFS): $(LIBAFS)
+${DEST_LIBAFS}: ${LIBAFS}
        $(INSTALL) -f $? $@
 
-$(DEST_LIBAFSNONFS): $(LIBAFSNONFS)
+${DEST_LIBAFSNONFS}: ${LIBAFSNONFS}
+       $(INSTALL) -f $? $@
+
+${DEST_AFSMOD}: ${AFSMOD}
        $(INSTALL) -f $? $@
 
 ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
@@ -98,6 +103,8 @@ ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
 ${LIBAFSNONFS}:  $(AFSAOBJS) $(AFSNONFSOBJS)
        $(LD) -r -o ${LIBAFSNONFS} ${AFSAOBJS} ${AFSNONFSOBJS}
 
+${AFSMOD}: ${LIBAFSNONFS}
+       $(LD) -dc -r -o ${AFSMOD} ${LIBAFSNONFS}
 
 # Object build rules:
 osi_groups.o: $(AFS)/osi_groups.c