LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: PATCH: modules_install and modules_uninstall target in Makefile

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: PATCH: modules_install and modules_uninstall target in Makefile
From: Roberto Nibali <ratz@xxxxxxxxxxxx>
Date: Sat, 08 Jun 2002 02:25:57 +0200
Yo Horms,

 CC=gcc
 CFLAGS= -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DMODVERSIONS \
-       $(SMPFLAGS) $(DEBUGFLAGS) -O2 -Wall \
-       -Wstrict-prototypes -I/usr/src/linux/include \
+       $(SMPFLAGS) $(DEBUGFLAGS) -O2 -Wall -Wstrict-prototypes \
+       -I/home/horms/lang/c/kernel/linux-2.4.18/include \

:) I'm sure you don't want this.

 install:       ip_vs.o
        -rmmod ip_vs
        insmod ip_vs.o
        lsmod
+
+modules_install:
+       if [ ! -d "$(MODLIB)" ]; then mkdir -p "$(MODLIB)"; fi
+       install -m 600 -c $(CORE) $(SCHEDULERS) "$(MODLIB)"
+       depmod -a
+
+modules_uninstall:
+       (cd "$(MODLIB)"; rm $(CORE) $(SCHEDULERS))

s/rm/rm -f/, just to make sure and for the eye ;)

+       rmdir "$(MODLIB)"
clean:
        rm -f *.o *~ *.bak *.orig *.rej

Cheers,
Roberto Nibali, ratz

--
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc



<Prev in Thread] Current Thread [Next in Thread>