e169-stats: rework makefile patch to be more general

Allow the makefile patch to pass CFLAGS, CPPFLAGS, and LDFLAGS

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@39803 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian
2014-03-08 00:56:45 +00:00
parent 632b8c1325
commit a876275450
2 changed files with 6 additions and 3 deletions

View File

@ -5,7 +5,7 @@
e169-stats: e169-stats.c
- gcc -Wall -o e169-stats e169-stats.c -lcurses
+ $(CC) -Wall -o e169-stats e169-stats.c -lcurses -I$(STAGING_DIR)/usr/include -L$(STAGING_DIR)/usr/lib
+ $(CC) $(CFLAGS) -Wall -o e169-stats e169-stats.c $(CPPFLAGS) $(LDFLAGS)
clean:
-rm e169-stats *.core