miniupnpd ported to kamikaze from xwrts whiterussian package
[openwrt/svn-archive/archive.git] / net / miniupnpd / patches / 001-makefile-tweaks.patch
1 --- miniupnpd.orig/Makefile.openwrt 2006-11-23 06:31:06.000000000 -0600
2 +++ miniupnpd/Makefile.openwrt 2006-11-26 17:16:20.000000000 -0600
3 @@ -2,12 +2,13 @@
4 # http://miniupnp.free.fr/
5 # Author : Thomas Bernard
6 # for use with GNU Make
7 -#CFLAGS = -Wall -O -D_GNU_SOURCE -g
8 -CFLAGS = -Wall -Os -D_GNU_SOURCE
9 -CC = mipsel-linux-gcc
10 +include $(TOPDIR)/rules.mk
11 +CC = $(TARGET_CC)
12 +CFLAGS = $(TARGET_CFLAGS)
13 +CFLAGS += -D_GNU_SOURCE
14 RM = rm -f
15 INSTALL = install
16 -IPTABLESINC=/home/nanard/code/openwrt/iptables-1.3.3/include
17 +IPTABLESINC=$(STAGING_DIR)/usr/include
18
19 BASEOBJS = miniupnpd.o upnphttp.o upnpdescgen.o upnpsoap.o \
20 ../miniupnpc/upnpreplyparse.o ../miniupnpc/minixml.o \
21 @@ -15,7 +16,7 @@
22
23 LNXOBJS = linux/getifstats.o linux/iptcrdr.o
24
25 -LIBS = /home/nanard/code/openwrt/iptables-1.3.3/libiptc/libiptc.a
26 +LIBS = $(STAGING_DIR)/usr/lib/libiptc.a
27
28 TESTUPNPDESCGENOBJS = testupnpdescgen.o upnpdescgen.o
29
30 @@ -32,6 +33,7 @@
31 @echo no install for now...
32
33 miniupnpd: $(BASEOBJS) $(LNXOBJS) $(LIBS)
34 + $(CC) $(CFLAGS) -o $@ $(BASEOBJS) $(LNXOBJS) $(LIBS)
35
36 testupnpdescgen: $(TESTUPNPDESCGENOBJS)
37