summaryrefslogtreecommitdiff
path: root/package/net-tools/patches/patch-Makefile
blob: 9a27f7e646ee9582cbbf5e3fac3a483c93ceb7f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- net-tools-1.60.orig/Makefile	2001-04-15 16:34:31.000000000 +0200
+++ net-tools-1.60/Makefile	2011-11-15 11:30:52.379769328 +0100
@@ -76,7 +76,7 @@
 NET_LIB_PATH = lib
 NET_LIB_NAME = net-tools
 
-PROGS	:= ifconfig hostname arp netstat route rarp slattach plipconfig nameif
+PROGS	:= arp 
 
 -include config.make
 ifeq ($(HAVE_IP_TOOLS),1)
@@ -113,8 +113,10 @@ endif
 
 NET_LIB = $(NET_LIB_PATH)/lib$(NET_LIB_NAME).a
 
-CFLAGS	= $(COPTS) -I. -idirafter ./include/ -I$(NET_LIB_PATH)
-LDFLAGS	= $(LOPTS) -L$(NET_LIB_PATH)
+CFLAGS ?=
+CFLAGS	+= $(COPTS) -I. -idirafter ./include/ -I$(NET_LIB_PATH)
+LDFLAGS ?=
+LDFLAGS	+= $(LOPTS) -L$(NET_LIB_PATH) 
 
 SUBDIRS	= man/ $(NET_LIB_PATH)/
 
@@ -160,11 +162,6 @@ dist: 		clobber
 
 
 config.h: 	config.in Makefile 
-		@echo "Configuring the Linux net-tools (NET-3 Base Utilities)..." ; echo
-		@if [ config.status -nt config.in ]; \
-			then ./configure.sh config.status; \
-		   else ./configure.sh config.in; \
-		 fi
 
 
 version.h:	Makefile