diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-05 10:17:08 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-05 10:17:08 +0000 |
commit | 7d219aab70e6951ab82c27c202cac05016696723 (patch) | |
tree | 4c0679bfa391f71aee9b51505a5d3dc8f60a0cf7 /networking/udhcp | |
parent | 8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (diff) | |
download | busybox-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.in | 18 | ||||
-rw-r--r-- | networking/udhcp/Kbuild | 17 | ||||
-rw-r--r-- | networking/udhcp/Makefile | 23 | ||||
-rw-r--r-- | networking/udhcp/Makefile.in | 53 |
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 | ||
6 | config CONFIG_APP_UDHCPD | 6 | config 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 | ||
15 | config CONFIG_APP_DUMPLEASES | 15 | config 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 | ||
26 | config CONFIG_APP_UDHCPC | 26 | config 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 | ||
38 | config CONFIG_FEATURE_UDHCP_SYSLOG | 38 | config 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 | ||
49 | config CONFIG_FEATURE_UDHCP_DEBUG | 49 | config 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 | |||
8 | lib-y:= | ||
9 | lib-$(CONFIG_APP_UDHCPC) += common.o options.o packet.o pidfile.o \ | ||
10 | signalpipe.o socket.o | ||
11 | lib-$(CONFIG_APP_UDHCPD) += common.o options.o packet.o pidfile.o \ | ||
12 | signalpipe.o socket.o | ||
13 | lib-$(CONFIG_APP_UDHCPC) += dhcpc.o clientpacket.o clientsocket.o \ | ||
14 | script.o | ||
15 | lib-$(CONFIG_APP_UDHCPD) += dhcpd.o arpping.o files.o leases.o \ | ||
16 | serverpacket.o static_leases.o | ||
17 | lib-$(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 | ||
13 | srcdir=$(top_srcdir)/networking/udhcp | ||
14 | UDHCP_DIR:=./ | ||
15 | include $(top_srcdir)/Rules.mak | ||
16 | include $(top_builddir)/.config | ||
17 | include Makefile.in | ||
18 | all: $(libraries-y) | ||
19 | -include $(top_builddir)/.depend | ||
20 | |||
21 | clean: | ||
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 | |||
8 | UDHCP_AR:=udhcp.a | ||
9 | ifndef $(UDHCP_DIR) | ||
10 | UDHCP_DIR:=$(top_builddir)/networking/udhcp/ | ||
11 | endif | ||
12 | srcdir=$(top_srcdir)/networking/udhcp | ||
13 | |||
14 | #ok, so I forgot how to do an or, but this is a quick and dirty hack | ||
15 | ifeq ($(strip $(CONFIG_APP_UDHCPC)),y) | ||
16 | CONFIG_UDHCP_SHARED=y | ||
17 | else | ||
18 | ifeq ($(strip $(CONFIG_APP_UDHCPD)),y) | ||
19 | CONFIG_UDHCP_SHARED=y | ||
20 | else | ||
21 | CONFIG_UDHCP_SHARED=n | ||
22 | endif | ||
23 | endif | ||
24 | |||
25 | UDHCP-y:= | ||
26 | UDHCP-$(CONFIG_UDHCP_SHARED) += common.c options.c packet.c pidfile.c \ | ||
27 | signalpipe.c socket.c | ||
28 | UDHCP-$(CONFIG_APP_UDHCPC) += dhcpc.c clientpacket.c clientsocket.c \ | ||
29 | script.c | ||
30 | UDHCP-$(CONFIG_APP_UDHCPD) += dhcpd.c arpping.c files.c leases.c \ | ||
31 | serverpacket.c static_leases.c | ||
32 | UDHCP-$(CONFIG_APP_DUMPLEASES) += dumpleases.c | ||
33 | UDHCP_OBJS:=$(patsubst %.c,$(UDHCP_DIR)%.o, $(UDHCP-y)) | ||
34 | |||
35 | ifneq ($(strip $(UDHCP-y)),) | ||
36 | libraries-y+=$(UDHCP_DIR)$(UDHCP_AR) | ||
37 | endif | ||
38 | |||
39 | UDHCP-y:=$(patsubst %,$(srcdir)/%,$(UDHCP-y)) | ||
40 | UDHCP-a:=$(wildcard $(srcdir)/*.c) | ||
41 | APPLET_SRC-y+=$(UDHCP-y) | ||
42 | APPLET_SRC-a+=$(UDHCP-a) | ||
43 | |||
44 | UDHCP_INCLUDES:=$(srcdir) | ||
45 | |||
46 | APPLETS_DEFINE-y+= -I$(UDHCP_INCLUDES) | ||
47 | APPLETS_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) | ||