aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-10-08 07:46:08 +0000
committerEric Andersen <andersen@codepoet.org>2004-10-08 07:46:08 +0000
commit7daa076d3e24e84ce1f4e9b6133783816575c4c8 (patch)
treee81ce57a92acc0653374e1d262039562855d16ec /networking
parent2842659cc02233274ca165ffb83a31b161d815cd (diff)
downloadbusybox-w32-7daa076d3e24e84ce1f4e9b6133783816575c4c8.tar.gz
busybox-w32-7daa076d3e24e84ce1f4e9b6133783816575c4c8.tar.bz2
busybox-w32-7daa076d3e24e84ce1f4e9b6133783816575c4c8.zip
egor duda writes:
Hi! I've created a patch to busybox' build system to allow building it in separate tree in a manner similar to kbuild from kernel version 2.6. That is, one runs command like 'make O=/build/some/where/for/specific/target/and/options' and everything is built in this exact directory, provided that it exists. I understand that applyingc such invasive changes during 'release candidates' stage of development is at best unwise. So, i'm currently asking for comments about this patch, starting from whether such thing is needed at all to whether it coded properly. 'make check' should work now, and one make creates Makefile in build directory, so one can run 'make' in build directory after that. One possible caveat is that if we build in some directory other than source one, the source directory should be 'distclean'ed first. egor
Diffstat (limited to 'networking')
-rw-r--r--networking/Makefile10
-rw-r--r--networking/Makefile.in7
-rw-r--r--networking/libiproute/Makefile10
-rw-r--r--networking/libiproute/Makefile.in6
-rw-r--r--networking/udhcp/Makefile10
-rw-r--r--networking/udhcp/Makefile.in5
6 files changed, 31 insertions, 17 deletions
diff --git a/networking/Makefile b/networking/Makefile
index 456c433fd..91726b1b2 100644
--- a/networking/Makefile
+++ b/networking/Makefile
@@ -17,13 +17,15 @@
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18# 18#
19 19
20TOPDIR:= ../ 20top_srcdir=..
21top_builddir=..
22srcdir=$(top_srcdir)/networking
21NETWORKING_DIR:=./ 23NETWORKING_DIR:=./
22include $(TOPDIR).config 24include $(top_builddir)/Rules.mak
23include $(TOPDIR)Rules.mak 25include $(top_builddir)/.config
24include Makefile.in 26include Makefile.in
25all: $(libraries-y) 27all: $(libraries-y)
26-include $(TOPDIR).depend 28-include $(top_builddir)/.depend
27 29
28clean: 30clean:
29 rm -f *.o *.a $(AR_TARGET) 31 rm -f *.o *.a $(AR_TARGET)
diff --git a/networking/Makefile.in b/networking/Makefile.in
index e15e61a3e..9bfe90176 100644
--- a/networking/Makefile.in
+++ b/networking/Makefile.in
@@ -19,9 +19,9 @@
19 19
20NETWORKING_AR:=networking.a 20NETWORKING_AR:=networking.a
21ifndef $(NETWORKING_DIR) 21ifndef $(NETWORKING_DIR)
22NETWORKING_DIR:=$(TOPDIR)networking/ 22NETWORKING_DIR:=$(top_builddir)/networking/
23endif 23endif
24 24srcdir=$(top_srcdir)/networking
25NETWORKING-y:= 25NETWORKING-y:=
26NETWORKING-$(CONFIG_ARPING) += arping.o 26NETWORKING-$(CONFIG_ARPING) += arping.o
27NETWORKING-$(CONFIG_FTPGET) += ftpgetput.o 27NETWORKING-$(CONFIG_FTPGET) += ftpgetput.o
@@ -63,3 +63,6 @@ endif
63$(NETWORKING_DIR)$(NETWORKING_AR): $(patsubst %,$(NETWORKING_DIR)%, $(NETWORKING-y)) 63$(NETWORKING_DIR)$(NETWORKING_AR): $(patsubst %,$(NETWORKING_DIR)%, $(NETWORKING-y))
64 $(AR) -ro $@ $(patsubst %,$(NETWORKING_DIR)%, $(NETWORKING-y)) 64 $(AR) -ro $@ $(patsubst %,$(NETWORKING_DIR)%, $(NETWORKING-y))
65 65
66$(NETWORKING_DIR)%.o: $(srcdir)/%.c
67 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
68
diff --git a/networking/libiproute/Makefile b/networking/libiproute/Makefile
index 0dc7191d3..d3aefaaf4 100644
--- a/networking/libiproute/Makefile
+++ b/networking/libiproute/Makefile
@@ -17,13 +17,15 @@
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18# 18#
19 19
20TOPDIR:= ../../ 20top_srcdir=../..
21top_builddir=../..
22srcdir=$(top_srcdir)/networking/libiproute
21LIBIPROUTE_DIR:=./ 23LIBIPROUTE_DIR:=./
22include $(TOPDIR).config 24include $(top_builddir)/Rules.mak
23include $(TOPDIR)Rules.mak 25include $(top_builddir)/.config
24include Makefile.in 26include Makefile.in
25all: $(libraries-y) 27all: $(libraries-y)
26-include $(TOPDIR).depend 28-include $(top_builddir)/.depend
27 29
28clean: 30clean:
29 rm -f *.o *.a $(AR_TARGET) 31 rm -f *.o *.a $(AR_TARGET)
diff --git a/networking/libiproute/Makefile.in b/networking/libiproute/Makefile.in
index 25c51999f..fcc7f48ce 100644
--- a/networking/libiproute/Makefile.in
+++ b/networking/libiproute/Makefile.in
@@ -19,8 +19,9 @@
19 19
20LIBIPROUTE_AR:=libiproute.a 20LIBIPROUTE_AR:=libiproute.a
21ifndef $(LIBIPROUTE_DIR) 21ifndef $(LIBIPROUTE_DIR)
22LIBIPROUTE_DIR:=$(TOPDIR)networking/libiproute/ 22LIBIPROUTE_DIR:=$(top_builddir)/networking/libiproute/
23endif 23endif
24srcdir=$(top_srcdir)/networking/libiproute
24 25
25LIBIPROUTE-$(CONFIG_IP) += \ 26LIBIPROUTE-$(CONFIG_IP) += \
26 ip_parse_common_args.o \ 27 ip_parse_common_args.o \
@@ -78,3 +79,6 @@ libraries-y+=$(LIBIPROUTE_DIR)$(LIBIPROUTE_AR)
78$(LIBIPROUTE_DIR)$(LIBIPROUTE_AR): $(patsubst %,$(LIBIPROUTE_DIR)%, $(LIBIPROUTE-y)) 79$(LIBIPROUTE_DIR)$(LIBIPROUTE_AR): $(patsubst %,$(LIBIPROUTE_DIR)%, $(LIBIPROUTE-y))
79 $(AR) -ro $@ $(patsubst %,$(LIBIPROUTE_DIR)%, $(LIBIPROUTE-y)) 80 $(AR) -ro $@ $(patsubst %,$(LIBIPROUTE_DIR)%, $(LIBIPROUTE-y))
80 81
82$(LIBIPROUTE_DIR)%.o: $(srcdir)/%.c
83 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
84
diff --git a/networking/udhcp/Makefile b/networking/udhcp/Makefile
index 2b79d2293..3d32db50a 100644
--- a/networking/udhcp/Makefile
+++ b/networking/udhcp/Makefile
@@ -17,13 +17,15 @@
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18# 18#
19 19
20TOPDIR:= ../../ 20top_srcdir=../..
21top_builddir=../..
22srcdir=$(top_srcdir)/networking/udhcp
21UDHCP_DIR:=./ 23UDHCP_DIR:=./
22include $(TOPDIR).config 24include $(top_builddir)/Rules.mak
23include $(TOPDIR)Rules.mak 25include $(top_builddir)/.config
24include Makefile.in 26include Makefile.in
25all: $(libraries-y) 27all: $(libraries-y)
26-include $(TOPDIR).depend 28-include $(top_builddir)/.depend
27 29
28clean: 30clean:
29 rm -f *.o *.a $(AR_TARGET) 31 rm -f *.o *.a $(AR_TARGET)
diff --git a/networking/udhcp/Makefile.in b/networking/udhcp/Makefile.in
index b48079429..2d7a08816 100644
--- a/networking/udhcp/Makefile.in
+++ b/networking/udhcp/Makefile.in
@@ -19,8 +19,9 @@
19 19
20UDHCP_AR:=udhcp.a 20UDHCP_AR:=udhcp.a
21ifndef $(UDHCP_DIR) 21ifndef $(UDHCP_DIR)
22UDHCP_DIR:=$(TOPDIR)networking/udhcp/ 22UDHCP_DIR:=$(top_builddir)/networking/udhcp/
23endif 23endif
24srcdir=$(top_srcdir)/networking/udhcp
24 25
25#ok, so I forgot how to do an or, but this is a quick and dirty hack 26#ok, so I forgot how to do an or, but this is a quick and dirty hack
26ifeq ($(CONFIG_UDHCPC), y) 27ifeq ($(CONFIG_UDHCPC), y)
@@ -48,6 +49,6 @@ libraries-y+=$(UDHCP_DIR)$(UDHCP_AR)
48$(UDHCP_DIR)$(UDHCP_AR): $(UDHCP_OBJS) 49$(UDHCP_DIR)$(UDHCP_AR): $(UDHCP_OBJS)
49 $(AR) -ro $@ $(UDHCP_OBJS) 50 $(AR) -ro $@ $(UDHCP_OBJS)
50 51
51$(UDHCP_OBJS): %.o : %.c 52$(UDHCP_OBJS): $(UDHCP_DIR)%.o : $(srcdir)/%.c
52 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -DIN_BUSYBOX -c $< -o $@ 53 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -DIN_BUSYBOX -c $< -o $@
53 54