1 diff -urN aodv-uu-0.9.1/lnx/Makefile aodv-uu-0.9.1.new/lnx/Makefile
2 --- aodv-uu-0.9.1/lnx/Makefile 2005-03-17 22:37:59.000000000 +0100
3 +++ aodv-uu-0.9.1.new/lnx/Makefile 2006-07-25 15:46:02.000000000 +0200
5 KCFLAGS=-Wall -Wno-strict-aliasing -O2 $(KDEFS) $(KINC) $(XDEFS)
6 KCFLAGS_ARM=-Wall -O2 -D__KERNEL__ -DMODULE -nostdinc $(shell $(ARM_CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp') -I$(KERNEL_INC)
7 KCFLAGS_MIPS=-Wall -mips2 -O2 -fno-pic -mno-abicalls -mlong-calls -G0 -msoft-float -D__KERNEL__ -DMODULE -nostdinc $(shell $(MIPS_CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp') -I$(KERNEL_INC) $(XDEFS)
10 .PHONY: clean clean-2.4 clean-2.6 indent default
12 # Check for kernel version
16 indent -kr -i8 -ts8 -sob -l80 -ss -ncs *.c *.h
19 diff -urN aodv-uu-0.9.1/Makefile aodv-uu-0.9.1.new/Makefile
20 --- aodv-uu-0.9.1/Makefile 2006-07-25 15:03:49.000000000 +0200
21 +++ aodv-uu-0.9.1.new/Makefile 2006-07-25 15:03:59.000000000 +0200
23 mips: aodvd-mips kaodv-mips
26 - $(CC) $(CFLAGS) -o endian endian.c
27 + gcc -o endian endian.c
30 $(OBJS): %.o: %.c Makefile
32 @makedepend -Y./ -- $(DEFS) -- $(SRC) &>/dev/null
33 @makedepend -a -Y./ -- $(KDEFS) kaodv.c &>/dev/null
36 - install -s -m 755 aodvd /usr/sbin/aodvd
37 - @if [ ! -d /lib/modules/$(KERNEL)/aodv ]; then \
38 - mkdir /lib/modules/$(KERNEL)/aodv; \
41 - @echo "Installing kernel module in /lib/modules/$(KERNEL)/aodv/";
42 - @if [ -f ./kaodv.ko ]; then \
43 - install -m 644 kaodv.ko /lib/modules/$(KERNEL)/aodv/kaodv.ko; \
45 - install -m 644 kaodv.o /lib/modules/$(KERNEL)/aodv/kaodv.o; \
48 +install: install-aodvd install-kaodv
51 + @echo "Installing aodv in $(DESTDIR)/usr/sbin";
52 + install -d -m0755 $(DESTDIR)/usr/sbin/
53 + install -m0755 aodvd $(DESTDIR)/usr/sbin/aodvd
56 + @echo "Installing kernel module in $(DESTDIR)/lib/modules/$(KERNEL)/";
57 + install -d -m0644 $(DESTDIR)/lib/modules/$(KERNEL)/
58 + install -m 644 lnx/kaodv.$(KMOD_SUFFIX) $(DESTDIR)/lib/modules/$(KERNEL)/kaodv.$(KMOD_SUFFIX);
62 rm -rf /lib/modules/$(KERNEL)/aodv