bcm963xx: fix cfe detection
[openwrt.git] / package / aodv-uu / patches / 001-normalize.patch
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
5 @@ -30,7 +30,7 @@
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)
9 -
10 +endif
11 .PHONY: clean clean-2.4 clean-2.6 indent default
12
13 # Check for kernel version
14 @@ -89,5 +89,3 @@
15 etags *.c *.h
16 indent:
17 indent -kr -i8 -ts8 -sob -l80 -ss -ncs *.c *.h
18 -endif
19 -
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
24 @@ -87,7 +87,7 @@
25 mips: aodvd-mips kaodv-mips
26
27 endian.h:
28 - $(CC) $(CFLAGS) -o endian endian.c
29 + gcc -o endian endian.c
30 ./endian > endian.h
31
32 $(OBJS): %.o: %.c Makefile
33 @@ -143,19 +143,18 @@
34 @makedepend -Y./ -- $(DEFS) -- $(SRC) &>/dev/null
35 @makedepend -a -Y./ -- $(KDEFS) kaodv.c &>/dev/null
36
37 -install: default
38 - install -s -m 755 aodvd /usr/sbin/aodvd
39 - @if [ ! -d /lib/modules/$(KERNEL)/aodv ]; then \
40 - mkdir /lib/modules/$(KERNEL)/aodv; \
41 - fi
42 -
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; \
46 - else \
47 - install -m 644 kaodv.o /lib/modules/$(KERNEL)/aodv/kaodv.o; \
48 - fi
49 - /sbin/depmod -a
50 +install: install-aodvd install-kaodv
51 +
52 +install-aodvd:
53 + @echo "Installing aodv in $(DESTDIR)/usr/sbin";
54 + install -d -m0755 $(DESTDIR)/usr/sbin/
55 + install -m0755 aodvd $(DESTDIR)/usr/sbin/aodvd
56 +
57 +install-kaodv:
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);
61 +
62 uninstall:
63 rm -f /usr/sbin/aodvd
64 rm -rf /lib/modules/$(KERNEL)/aodv
This page took 0.045771 seconds and 5 git commands to generate.