aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
commit7d219aab70e6951ab82c27c202cac05016696723 (patch)
tree4c0679bfa391f71aee9b51505a5d3dc8f60a0cf7 /networking/udhcp
parent8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (diff)
downloadbusybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.gz
busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.bz2
busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.zip
build system overhaul
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/Config.in18
-rw-r--r--networking/udhcp/Kbuild17
-rw-r--r--networking/udhcp/Makefile23
-rw-r--r--networking/udhcp/Makefile.in53
4 files changed, 26 insertions, 85 deletions
diff --git a/networking/udhcp/Config.in b/networking/udhcp/Config.in
index f01340192..13dbcee9c 100644
--- a/networking/udhcp/Config.in
+++ b/networking/udhcp/Config.in
@@ -3,7 +3,7 @@
3# see scripts/kbuild/config-language.txt. 3# see scripts/kbuild/config-language.txt.
4# 4#
5 5
6config CONFIG_APP_UDHCPD 6config APP_UDHCPD
7 bool "udhcp Server (udhcpd)" 7 bool "udhcp Server (udhcpd)"
8 default n 8 default n
9 help 9 help
@@ -12,10 +12,10 @@ config CONFIG_APP_UDHCPD
12 12
13 See http://udhcp.busybox.net for further details. 13 See http://udhcp.busybox.net for further details.
14 14
15config CONFIG_APP_DUMPLEASES 15config APP_DUMPLEASES
16 bool "Lease display utility (dumpleases)" 16 bool "Lease display utility (dumpleases)"
17 default n 17 default n
18 depends on CONFIG_APP_UDHCPD 18 depends on APP_UDHCPD
19 help 19 help
20 dumpleases displays the leases written out by the udhcpd server. 20 dumpleases displays the leases written out by the udhcpd server.
21 Lease times are stored in the file by time remaining in lease, or 21 Lease times are stored in the file by time remaining in lease, or
@@ -23,7 +23,7 @@ config CONFIG_APP_DUMPLEASES
23 23
24 See http://udhcp.busybox.net for further details. 24 See http://udhcp.busybox.net for further details.
25 25
26config CONFIG_APP_UDHCPC 26config APP_UDHCPC
27 bool "udhcp Client (udhcpc)" 27 bool "udhcp Client (udhcpc)"
28 default n 28 default n
29 help 29 help
@@ -35,21 +35,21 @@ config CONFIG_APP_UDHCPC
35 35
36 See http://udhcp.busybox.net for further details. 36 See http://udhcp.busybox.net for further details.
37 37
38config CONFIG_FEATURE_UDHCP_SYSLOG 38config FEATURE_UDHCP_SYSLOG
39 bool "Log udhcp messages to syslog" 39 bool "Log udhcp messages to syslog"
40 default n 40 default n
41 depends on CONFIG_APP_UDHCPD || CONFIG_APP_UDHCPC 41 depends on APP_UDHCPD || APP_UDHCPC
42 select CONFIG_FEATURE_SYSLOG 42 select FEATURE_SYSLOG
43 help 43 help
44 If not daemonized, udhcpd prints its messages to stdout/stderr. 44 If not daemonized, udhcpd prints its messages to stdout/stderr.
45 If this option is selected, it will also log them to syslog. 45 If this option is selected, it will also log them to syslog.
46 46
47 See http://udhcp.busybox.net for further details. 47 See http://udhcp.busybox.net for further details.
48 48
49config CONFIG_FEATURE_UDHCP_DEBUG 49config FEATURE_UDHCP_DEBUG
50 bool "Compile udhcp with noisy debugging messages" 50 bool "Compile udhcp with noisy debugging messages"
51 default n 51 default n
52 depends on CONFIG_APP_UDHCPD || CONFIG_APP_UDHCPC 52 depends on APP_UDHCPD || APP_UDHCPC
53 help 53 help
54 If selected, udhcpd will output extra debugging output. If using 54 If selected, udhcpd will output extra debugging output. If using
55 this option, compile uDHCP with "-g", and do not fork the daemon to 55 this option, compile uDHCP with "-g", and do not fork the daemon to
diff --git a/networking/udhcp/Kbuild b/networking/udhcp/Kbuild
new file mode 100644
index 000000000..90047c174
--- /dev/null
+++ b/networking/udhcp/Kbuild
@@ -0,0 +1,17 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6#
7
8lib-y:=
9lib-$(CONFIG_APP_UDHCPC) += common.o options.o packet.o pidfile.o \
10 signalpipe.o socket.o
11lib-$(CONFIG_APP_UDHCPD) += common.o options.o packet.o pidfile.o \
12 signalpipe.o socket.o
13lib-$(CONFIG_APP_UDHCPC) += dhcpc.o clientpacket.o clientsocket.o \
14 script.o
15lib-$(CONFIG_APP_UDHCPD) += dhcpd.o arpping.o files.o leases.o \
16 serverpacket.o static_leases.o
17lib-$(CONFIG_APP_DUMPLEASES) += dumpleases.o
diff --git a/networking/udhcp/Makefile b/networking/udhcp/Makefile
deleted file mode 100644
index 23131f8f0..000000000
--- a/networking/udhcp/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
6
7#ifndef top_srcdir
8#top_srcdir=../..
9#endif
10#ifndef top_builddir
11#top_builddir=../..
12#endif
13srcdir=$(top_srcdir)/networking/udhcp
14UDHCP_DIR:=./
15include $(top_srcdir)/Rules.mak
16include $(top_builddir)/.config
17include Makefile.in
18all: $(libraries-y)
19-include $(top_builddir)/.depend
20
21clean:
22 rm -f *.o *.a $(AR_TARGET)
23
diff --git a/networking/udhcp/Makefile.in b/networking/udhcp/Makefile.in
deleted file mode 100644
index cbc6f2b39..000000000
--- a/networking/udhcp/Makefile.in
+++ /dev/null
@@ -1,53 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6#
7
8UDHCP_AR:=udhcp.a
9ifndef $(UDHCP_DIR)
10UDHCP_DIR:=$(top_builddir)/networking/udhcp/
11endif
12srcdir=$(top_srcdir)/networking/udhcp
13
14#ok, so I forgot how to do an or, but this is a quick and dirty hack
15ifeq ($(strip $(CONFIG_APP_UDHCPC)),y)
16CONFIG_UDHCP_SHARED=y
17else
18ifeq ($(strip $(CONFIG_APP_UDHCPD)),y)
19CONFIG_UDHCP_SHARED=y
20else
21CONFIG_UDHCP_SHARED=n
22endif
23endif
24
25UDHCP-y:=
26UDHCP-$(CONFIG_UDHCP_SHARED) += common.c options.c packet.c pidfile.c \
27 signalpipe.c socket.c
28UDHCP-$(CONFIG_APP_UDHCPC) += dhcpc.c clientpacket.c clientsocket.c \
29 script.c
30UDHCP-$(CONFIG_APP_UDHCPD) += dhcpd.c arpping.c files.c leases.c \
31 serverpacket.c static_leases.c
32UDHCP-$(CONFIG_APP_DUMPLEASES) += dumpleases.c
33UDHCP_OBJS:=$(patsubst %.c,$(UDHCP_DIR)%.o, $(UDHCP-y))
34
35ifneq ($(strip $(UDHCP-y)),)
36libraries-y+=$(UDHCP_DIR)$(UDHCP_AR)
37endif
38
39UDHCP-y:=$(patsubst %,$(srcdir)/%,$(UDHCP-y))
40UDHCP-a:=$(wildcard $(srcdir)/*.c)
41APPLET_SRC-y+=$(UDHCP-y)
42APPLET_SRC-a+=$(UDHCP-a)
43
44UDHCP_INCLUDES:=$(srcdir)
45
46APPLETS_DEFINE-y+= -I$(UDHCP_INCLUDES)
47APPLETS_DEFINE-a+= -I$(UDHCP_INCLUDES)
48
49$(UDHCP_DIR)$(UDHCP_AR): $(UDHCP_OBJS)
50 $(do_ar)
51
52$(UDHCP_OBJS): $(UDHCP_DIR)%.o : $(srcdir)/%.c
53 $(compile.c)