1 Index: aodv-uu-0.9.3/lnx/Makefile
2 ===================================================================
3 --- aodv-uu-0.9.3.orig/lnx/Makefile 2007-06-04 13:22:19.859836128 +0200
4 +++ aodv-uu-0.9.3/lnx/Makefile 2007-06-04 13:22:19.932825032 +0200
6 KCFLAGS=-Wall -Wno-strict-aliasing -O2 $(KDEFS) $(KINC) $(XDEFS)
7 KCFLAGS_ARM=-Wall -O2 -D__KERNEL__ -DMODULE -nostdinc $(shell $(ARM_CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp') -I$(KERNEL_INC)
8 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)
11 .PHONY: clean clean-2.4 clean-2.6 indent default
13 # Check for kernel version
17 indent -kr -i8 -ts8 -sob -l80 -ss -ncs *.c *.h
20 Index: aodv-uu-0.9.3/Makefile
21 ===================================================================
22 --- aodv-uu-0.9.3.orig/Makefile 2007-06-04 13:22:19.866835064 +0200
23 +++ aodv-uu-0.9.3/Makefile 2007-06-04 13:22:19.932825032 +0200
25 mips: aodvd-mips kaodv-mips
28 - $(CC) $(CFLAGS) -o endian endian.c
29 + gcc -o endian endian.c
32 $(OBJS): %.o: %.c Makefile
34 @makedepend -Y./ -- $(DEFS) -- $(SRC) &>/dev/null
35 @makedepend -a -Y./ -- $(KDEFS) kaodv.c &>/dev/null
38 - install -s -m 755 aodvd /usr/sbin/aodvd
39 - @if [ ! -d /lib/modules/$(KERNEL)/aodv ]; then \
40 - mkdir /lib/modules/$(KERNEL)/aodv; \
43 - @echo "Installing kernel module in /lib/modules/$(KERNEL)/aodv/";
44 - @if [ -f ./kaodv.ko ]; then \
45 - install -m 644 kaodv.ko /lib/modules/$(KERNEL)/aodv/kaodv.ko; \
47 - install -m 644 kaodv.o /lib/modules/$(KERNEL)/aodv/kaodv.o; \
50 +install: install-aodvd install-kaodv
53 + @echo "Installing aodv in $(DESTDIR)/usr/sbin";
54 + install -d -m0755 $(DESTDIR)/usr/sbin/
55 + install -m0755 aodvd $(DESTDIR)/usr/sbin/aodvd
58 + @echo "Installing kernel module in $(DESTDIR)/lib/modules/$(KERNEL)/";
59 + install -d -m0644 $(DESTDIR)/lib/modules/$(KERNEL)/
60 + install -m 644 lnx/kaodv.$(KMOD_SUFFIX) $(DESTDIR)/lib/modules/$(KERNEL)/kaodv.$(KMOD_SUFFIX);
64 rm -rf /lib/modules/$(KERNEL)/aodv