blob: 03012fb6efa6634dd0b9cb37efde8ca4858b1154 [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
29UTILLINUX-$(CONFIG_FREERAMDISK) += freeramdisk.o
30UTILLINUX-$(CONFIG_FSCK_MINIX) += fsck_minix.o
31UTILLINUX-$(CONFIG_GETOPT) += getopt.o
32UTILLINUX-$(CONFIG_HEXDUMP) += hexdump.o
Robert Griebl1cd04452002-07-21 16:50:49 +000033UTILLINUX-$(CONFIG_HWCLOCK) += hwclock.o
Eric Andersen85208e22002-04-12 12:05:57 +000034UTILLINUX-$(CONFIG_LOSETUP) += losetup.o
35UTILLINUX-$(CONFIG_MKFS_MINIX) += mkfs_minix.o
36UTILLINUX-$(CONFIG_MKSWAP) += mkswap.o
37UTILLINUX-$(CONFIG_MORE) += more.o
38UTILLINUX-$(CONFIG_MOUNT) += mount.o
39UTILLINUX-$(CONFIG_NFSMOUNT) += nfsmount.o
40UTILLINUX-$(CONFIG_PIVOT_ROOT) += pivot_root.o
41UTILLINUX-$(CONFIG_RDATE) += rdate.o
42UTILLINUX-$(CONFIG_SWAPONOFF) += swaponoff.o
43UTILLINUX-$(CONFIG_UMOUNT) += umount.o
44
45libraries-y+=$(UTILLINUX_DIR)$(UTILLINUX_AR)
46
47$(UTILLINUX_DIR)$(UTILLINUX_AR): $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y))
48 $(AR) -ro $@ $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y))
49