packages/net/miniupnpd/patches/001-makefile-tweaks.patch
pavlov e39ddf3b6d miniupnpd ported to kamikaze from xwrts whiterussian package
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5653 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-11-26 23:44:09 +00:00

38 lines
1.1 KiB
Diff

--- miniupnpd.orig/Makefile.openwrt 2006-11-23 06:31:06.000000000 -0600
+++ miniupnpd/Makefile.openwrt 2006-11-26 17:16:20.000000000 -0600
@@ -2,12 +2,13 @@
# http://miniupnp.free.fr/
# Author : Thomas Bernard
# for use with GNU Make
-#CFLAGS = -Wall -O -D_GNU_SOURCE -g
-CFLAGS = -Wall -Os -D_GNU_SOURCE
-CC = mipsel-linux-gcc
+include $(TOPDIR)/rules.mk
+CC = $(TARGET_CC)
+CFLAGS = $(TARGET_CFLAGS)
+CFLAGS += -D_GNU_SOURCE
RM = rm -f
INSTALL = install
-IPTABLESINC=/home/nanard/code/openwrt/iptables-1.3.3/include
+IPTABLESINC=$(STAGING_DIR)/usr/include
BASEOBJS = miniupnpd.o upnphttp.o upnpdescgen.o upnpsoap.o \
../miniupnpc/upnpreplyparse.o ../miniupnpc/minixml.o \
@@ -15,7 +16,7 @@
LNXOBJS = linux/getifstats.o linux/iptcrdr.o
-LIBS = /home/nanard/code/openwrt/iptables-1.3.3/libiptc/libiptc.a
+LIBS = $(STAGING_DIR)/usr/lib/libiptc.a
TESTUPNPDESCGENOBJS = testupnpdescgen.o upnpdescgen.o
@@ -32,6 +33,7 @@
@echo no install for now...
miniupnpd: $(BASEOBJS) $(LNXOBJS) $(LIBS)
+ $(CC) $(CFLAGS) -o $@ $(BASEOBJS) $(LNXOBJS) $(LIBS)
testupnpdescgen: $(TESTUPNPDESCGENOBJS)