Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 1 | # Makefile for busybox |
| 2 | # |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 4 | # |
| 5 | # This program is free software; you can redistribute it and/or modify |
| 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 | # |
| 19 | |
| 20 | LIBIPROUTE_AR:=libiproute.a |
| 21 | ifndef $(LIBIPROUTE_DIR) |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 22 | LIBIPROUTE_DIR:=$(top_builddir)/networking/libiproute/ |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 23 | endif |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 24 | srcdir=$(top_srcdir)/networking/libiproute |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 25 | |
Glenn L McGrath | 8ae7501 | 2002-11-10 10:20:45 +0000 | [diff] [blame] | 26 | LIBIPROUTE-$(CONFIG_IP) += \ |
Glenn L McGrath | f112daa | 2002-12-01 23:04:06 +0000 | [diff] [blame] | 27 | ip_parse_common_args.o \ |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 28 | ipaddress.o \ |
| 29 | iplink.o \ |
| 30 | iproute.o \ |
| 31 | iptunnel.o \ |
| 32 | libnetlink.o \ |
| 33 | ll_addr.o \ |
| 34 | ll_map.o \ |
| 35 | ll_proto.o \ |
| 36 | ll_types.o \ |
| 37 | rt_names.o \ |
| 38 | rtm_map.o \ |
| 39 | utils.o |
| 40 | |
Glenn L McGrath | 36c7478 | 2004-04-12 02:22:39 +0000 | [diff] [blame] | 41 | LIBIPROUTE-$(CONFIG_IPADDR) += \ |
| 42 | ip_parse_common_args.o \ |
| 43 | ipaddress.o \ |
| 44 | libnetlink.o \ |
| 45 | ll_addr.o \ |
| 46 | ll_map.o \ |
| 47 | ll_types.o \ |
| 48 | rt_names.o \ |
| 49 | utils.o |
| 50 | |
| 51 | LIBIPROUTE-$(CONFIG_IPLINK) += \ |
| 52 | ip_parse_common_args.o \ |
| 53 | ipaddress.o \ |
| 54 | iplink.o \ |
| 55 | libnetlink.o \ |
| 56 | ll_addr.o \ |
| 57 | ll_map.o \ |
| 58 | ll_types.o \ |
| 59 | rt_names.o \ |
| 60 | utils.o |
| 61 | |
| 62 | LIBIPROUTE-$(CONFIG_IPROUTE) += \ |
| 63 | ip_parse_common_args.o \ |
| 64 | iproute.o \ |
| 65 | libnetlink.o \ |
| 66 | ll_map.o \ |
| 67 | rt_names.o \ |
| 68 | rtm_map.o \ |
| 69 | utils.o |
| 70 | |
| 71 | LIBIPROUTE-$(CONFIG_IPTUNNEL) += \ |
| 72 | ip_parse_common_args.o \ |
| 73 | iptunnel.o \ |
| 74 | rt_names.o \ |
| 75 | utils.o |
| 76 | |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 77 | libraries-y+=$(LIBIPROUTE_DIR)$(LIBIPROUTE_AR) |
| 78 | |
| 79 | $(LIBIPROUTE_DIR)$(LIBIPROUTE_AR): $(patsubst %,$(LIBIPROUTE_DIR)%, $(LIBIPROUTE-y)) |
Mike Frysinger | 4d00896 | 2005-07-27 01:09:24 +0000 | [diff] [blame] | 80 | $(AR) $(ARFLAGS) $@ $(patsubst %,$(LIBIPROUTE_DIR)%, $(LIBIPROUTE-y)) |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 81 | |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 82 | $(LIBIPROUTE_DIR)%.o: $(srcdir)/%.c |
| 83 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< |
| 84 | |