blob: 4e18714254a68bc685243ec878cf2108cd821388 [file] [log] [blame]
Eric Andersen85208e22002-04-12 12:05:57 +00001# Makefile for busybox
2#
3# Copyright (C) 1999-2002 Erik Andersen <andersee@debian.org>
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
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
Glenn L McGrath441e7ef2002-11-26 22:00:21 +000029UTILLINUX-$(CONFIG_FDISK) += fdisk.o
Eric Andersen85208e22002-04-12 12:05:57 +000030UTILLINUX-$(CONFIG_FREERAMDISK) += freeramdisk.o
31UTILLINUX-$(CONFIG_FSCK_MINIX) += fsck_minix.o
32UTILLINUX-$(CONFIG_GETOPT) += getopt.o
33UTILLINUX-$(CONFIG_HEXDUMP) += hexdump.o
Robert Griebl1cd04452002-07-21 16:50:49 +000034UTILLINUX-$(CONFIG_HWCLOCK) += hwclock.o
Eric Andersen85208e22002-04-12 12:05:57 +000035UTILLINUX-$(CONFIG_LOSETUP) += losetup.o
36UTILLINUX-$(CONFIG_MKFS_MINIX) += mkfs_minix.o
37UTILLINUX-$(CONFIG_MKSWAP) += mkswap.o
38UTILLINUX-$(CONFIG_MORE) += more.o
39UTILLINUX-$(CONFIG_MOUNT) += mount.o
40UTILLINUX-$(CONFIG_NFSMOUNT) += nfsmount.o
41UTILLINUX-$(CONFIG_PIVOT_ROOT) += pivot_root.o
42UTILLINUX-$(CONFIG_RDATE) += rdate.o
43UTILLINUX-$(CONFIG_SWAPONOFF) += swaponoff.o
44UTILLINUX-$(CONFIG_UMOUNT) += umount.o
45
46libraries-y+=$(UTILLINUX_DIR)$(UTILLINUX_AR)
47
48$(UTILLINUX_DIR)$(UTILLINUX_AR): $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y))
49 $(AR) -ro $@ $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y))
50