packages/net/miniupnpd/patches/001-makefile-tweaks.patch
pavlov 54cf03183b miniupnpd updated to RC8
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8829 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-17 22:46:42 +00:00

40 lines
1.1 KiB
Diff

Index: miniupnpd-1.0-RC8/Makefile.openwrt
===================================================================
--- miniupnpd-1.0-RC8.orig/Makefile.openwrt 2007-09-17 17:43:54.000000000 -0500
+++ miniupnpd-1.0-RC8/Makefile.openwrt 2007-09-17 17:43:54.000000000 -0500
@@ -2,7 +2,7 @@
# http://miniupnp.free.fr/
# Author : Thomas Bernard
# for use with GNU Make
-include $(TOPDIR)/rules.mk
+
#CFLAGS = -Wall -O -D_GNU_SOURCE -g
#CFLAGS = -Wall -Os -D_GNU_SOURCE
#CC = mipsel-linux-gcc
@@ -11,7 +11,7 @@
CFLAGS += -D_GNU_SOURCE
RM = rm -f
INSTALL = install
-IPTABLESINC=$(BUILD_DIR)/iptables-1.3.3/include
+IPTABLESINC=$(STAGING_DIR)/usr/include
BASEOBJS = miniupnpd.o upnphttp.o upnpdescgen.o upnpsoap.o \
upnpreplyparse.o minixml.o \
@@ -20,8 +20,6 @@
LNXOBJS = linux/getifstats.o linux/iptcrdr.o
-LIBS = $(BUILD_DIR)/iptables-1.3.3/libiptc/libiptc.a
-
TESTUPNPDESCGENOBJS = testupnpdescgen.o upnpdescgen.o
EXECUTABLES = miniupnpd testupnpdescgen
@@ -38,6 +36,7 @@
@echo no install for now...
miniupnpd: $(BASEOBJS) $(LNXOBJS) $(LIBS)
+ $(CC) $(CFLAGS) -o $@ $(BASEOBJS) $(LNXOBJS) $(LIBS)
testupnpdescgen: $(TESTUPNPDESCGENOBJS)