aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-15 14:04:57 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-15 14:04:57 +0000
commit7ca61b6f3379bf66b446617b8834d92c13b366dd (patch)
treec0aaacfeb97a9bc74e73f8ff36ecbf1fd173808b /networking/udhcp
parent8c9daa12dcb4c1aa8f0f475896c9cfbcfb38370d (diff)
downloadbusybox-w32-7ca61b6f3379bf66b446617b8834d92c13b366dd.tar.gz
busybox-w32-7ca61b6f3379bf66b446617b8834d92c13b366dd.tar.bz2
busybox-w32-7ca61b6f3379bf66b446617b8834d92c13b366dd.zip
- shared libbusybox.
- IMA compilation option (aka IPO, IPA,..) Please holler if i broke something..
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/Makefile.in30
1 files changed, 14 insertions, 16 deletions
diff --git a/networking/udhcp/Makefile.in b/networking/udhcp/Makefile.in
index ac9be5c57..8573a2fc4 100644
--- a/networking/udhcp/Makefile.in
+++ b/networking/udhcp/Makefile.in
@@ -2,19 +2,7 @@
2# 2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4# 4#
5# This program is free software; you can redistribute it and/or modify 5# Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18# 6#
19 7
20UDHCP_AR:=udhcp.a 8UDHCP_AR:=udhcp.a
@@ -24,10 +12,10 @@ endif
24srcdir=$(top_srcdir)/networking/udhcp 12srcdir=$(top_srcdir)/networking/udhcp
25 13
26#ok, so I forgot how to do an or, but this is a quick and dirty hack 14#ok, so I forgot how to do an or, but this is a quick and dirty hack
27ifeq ($(CONFIG_UDHCPC), y) 15ifeq ($(strip $(CONFIG_UDHCPC)),y)
28CONFIG_UDHCP_SHARED=y 16CONFIG_UDHCP_SHARED=y
29else 17else
30ifeq ($(CONFIG_UDHCPD), y) 18ifeq ($(strip $(CONFIG_UDHCPD)),y)
31CONFIG_UDHCP_SHARED=y 19CONFIG_UDHCP_SHARED=y
32else 20else
33CONFIG_UDHCP_SHARED=n 21CONFIG_UDHCP_SHARED=n
@@ -42,10 +30,20 @@ UDHCP-$(CONFIG_UDHCPC) += dhcpc.c clientpacket.c clientsocket.c \
42UDHCP-$(CONFIG_UDHCPD) += dhcpd.c arpping.c files.c leases.c \ 30UDHCP-$(CONFIG_UDHCPD) += dhcpd.c arpping.c files.c leases.c \
43 serverpacket.c static_leases.c 31 serverpacket.c static_leases.c
44UDHCP-$(CONFIG_DUMPLEASES) += dumpleases.c 32UDHCP-$(CONFIG_DUMPLEASES) += dumpleases.c
45UDHCP_OBJS=$(patsubst %.c,$(UDHCP_DIR)%.o, $(UDHCP-y)) 33UDHCP_OBJS:=$(patsubst %.c,$(UDHCP_DIR)%.o, $(UDHCP-y))
46 34
47libraries-y+=$(UDHCP_DIR)$(UDHCP_AR) 35libraries-y+=$(UDHCP_DIR)$(UDHCP_AR)
48 36
37UDHCP-y:=$(patsubst %,$(srcdir)/%,$(UDHCP-y))
38UDHCP-a:=$(wildcard $(srcdir)/*.c)
39APPLET_SRC-y+=$(UDHCP-y)
40APPLET_SRC-a+=$(UDHCP-a)
41
42UDHCP_INCLUDES:=$(srcdir)
43
44APPLETS_DEFINE-y+=-DIN_BUSYBOX -I$(UDHCP_INCLUDES)
45APPLETS_DEFINE-a+=-DIN_BUSYBOX -I$(UDHCP_INCLUDES)
46
49$(UDHCP_DIR)$(UDHCP_AR): $(UDHCP_OBJS) 47$(UDHCP_DIR)$(UDHCP_AR): $(UDHCP_OBJS)
50 $(AR) $(ARFLAGS) $@ $(UDHCP_OBJS) 48 $(AR) $(ARFLAGS) $@ $(UDHCP_OBJS)
51 49