batman: cleanup and honor copts, updated to 0.2-rv478 as well
[openwrt/svn-archive/archive.git] / net / batman / patches / 100-makefile.patch
1 Index: batmand_0.2-rv478_sources/Makefile
2 ===================================================================
3 --- batmand_0.2-rv478_sources.orig/Makefile 2007-07-31 14:26:18.000000000 -0500
4 +++ batmand_0.2-rv478_sources/Makefile 2007-07-31 14:28:43.000000000 -0500
5 @@ -21,6 +21,7 @@
6 CFLAGS = -Wall -O1 -g3 -DDEBUG_MALLOC -DMEMORY_USAGE -DPROFILE_DATA
7 STRIP= strip
8 LDFLAGS = -lpthread -static
9 +SBINDIR = $(INSTALL_PREFIX)/usr/sbin
10
11 CFLAGS_MIPS = -Wall -O1 -g3
12 LDFLAGS_MIPS = -lpthread
13 @@ -264,3 +265,7 @@
14
15 clean-long:
16 rm -rf batmand_*
17 +
18 +install:
19 + mkdir -p $(SBINDIR)
20 + install -m 0755 batmand $(SBINDIR)