blob: 8cd5f1bd04035e429f92eaf8790dee34c46f0712 [file] [log] [blame]
Eric Andersen85208e22002-04-12 12:05:57 +00001# Makefile for busybox
2#
Eric Andersencb81e642003-07-14 21:21:08 +00003# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
Eric Andersen85208e22002-04-12 12:05:57 +00004#
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
20UTILLINUX_AR:=util-linux.a
21ifndef $(UTILLINUX_DIR)
22UTILLINUX_DIR:=$(TOPDIR)util-linux/
23endif
24
25UTILLINUX-:=
26UTILLINUX-$(CONFIG_DMESG) += dmesg.o
27UTILLINUX-$(CONFIG_FBSET) += fbset.o
28UTILLINUX-$(CONFIG_FDFLUSH) += fdflush.o
Eric Andersen01c3d402003-07-05 07:51:31 +000029UTILLINUX-$(CONFIG_FDFORMAT) += fdformat.o
Glenn L McGrath441e7ef2002-11-26 22:00:21 +000030UTILLINUX-$(CONFIG_FDISK) += fdisk.o
Eric Andersen85208e22002-04-12 12:05:57 +000031UTILLINUX-$(CONFIG_FREERAMDISK) += freeramdisk.o
32UTILLINUX-$(CONFIG_FSCK_MINIX) += fsck_minix.o
33UTILLINUX-$(CONFIG_GETOPT) += getopt.o
34UTILLINUX-$(CONFIG_HEXDUMP) += hexdump.o
Robert Griebl1cd04452002-07-21 16:50:49 +000035UTILLINUX-$(CONFIG_HWCLOCK) += hwclock.o
Eric Andersen85208e22002-04-12 12:05:57 +000036UTILLINUX-$(CONFIG_LOSETUP) += losetup.o
37UTILLINUX-$(CONFIG_MKFS_MINIX) += mkfs_minix.o
38UTILLINUX-$(CONFIG_MKSWAP) += mkswap.o
39UTILLINUX-$(CONFIG_MORE) += more.o
40UTILLINUX-$(CONFIG_MOUNT) += mount.o
41UTILLINUX-$(CONFIG_NFSMOUNT) += nfsmount.o
42UTILLINUX-$(CONFIG_PIVOT_ROOT) += pivot_root.o
43UTILLINUX-$(CONFIG_RDATE) += rdate.o
44UTILLINUX-$(CONFIG_SWAPONOFF) += swaponoff.o
45UTILLINUX-$(CONFIG_UMOUNT) += umount.o
46
47libraries-y+=$(UTILLINUX_DIR)$(UTILLINUX_AR)
48
49$(UTILLINUX_DIR)$(UTILLINUX_AR): $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y))
50 $(AR) -ro $@ $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y))
51