blob: be34934ab0b236b8bdc8c0d97dc980b1743fe693 [file] [log] [blame]
Glenn L McGrath3238ea12003-02-15 10:53:40 +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
20COREUTILS_AR:=coreutils.a
21ifndef $(COREUTILS_DIR)
22COREUTILS_DIR:=$(TOPDIR)coreutils/
23endif
24
25COREUTILS-y:=
26COREUTILS-$(CONFIG_BASENAME) += basename.o
27COREUTILS-$(CONFIG_CAL) += cal.o
28COREUTILS-$(CONFIG_CAT) += cat.o
29COREUTILS-$(CONFIG_CHGRP) += chgrp.o
30COREUTILS-$(CONFIG_CHMOD) += chmod.o
31COREUTILS-$(CONFIG_CHOWN) += chown.o
32COREUTILS-$(CONFIG_CHROOT) += chroot.o
33COREUTILS-$(CONFIG_CMP) += cmp.o
34COREUTILS-$(CONFIG_CP) += cp.o
35COREUTILS-$(CONFIG_CUT) += cut.o
36COREUTILS-$(CONFIG_DATE) += date.o
37COREUTILS-$(CONFIG_DD) += dd.o
38COREUTILS-$(CONFIG_DF) += df.o
39COREUTILS-$(CONFIG_DIRNAME) += dirname.o
40COREUTILS-$(CONFIG_DOS2UNIX) += dos2unix.o
41COREUTILS-$(CONFIG_DU) += du.o
42COREUTILS-$(CONFIG_ECHO) += echo.o
43COREUTILS-$(CONFIG_ENV) += env.o
44COREUTILS-$(CONFIG_EXPR) += expr.o
45COREUTILS-$(CONFIG_FALSE) += false.o
46COREUTILS-$(CONFIG_HEAD) += head.o
47COREUTILS-$(CONFIG_HOSTID) += hostid.o
48COREUTILS-$(CONFIG_ID) += id.o
49COREUTILS-$(CONFIG_LENGTH) += length.o
50COREUTILS-$(CONFIG_LN) += ln.o
51COREUTILS-$(CONFIG_LOGNAME) += logname.o
52COREUTILS-$(CONFIG_LS) += ls.o
53COREUTILS-$(CONFIG_MD5SUM) += md5sum.o
54COREUTILS-$(CONFIG_MKDIR) += mkdir.o
55COREUTILS-$(CONFIG_MKFIFO) += mkfifo.o
56COREUTILS-$(CONFIG_MKNOD) += mknod.o
57COREUTILS-$(CONFIG_MV) += mv.o
58COREUTILS-$(CONFIG_OD) += od.o
59COREUTILS-$(CONFIG_PRINTF) += printf.o
60COREUTILS-$(CONFIG_PWD) += pwd.o
61COREUTILS-$(CONFIG_REALPATH) += realpath.o
62COREUTILS-$(CONFIG_RM) += rm.o
63COREUTILS-$(CONFIG_RMDIR) += rmdir.o
Glenn L McGrathae0f1e72003-02-17 08:23:22 +000064COREUTILS-$(CONFIG_SHA1SUM) += sha1sum.o
Glenn L McGrath3238ea12003-02-15 10:53:40 +000065COREUTILS-$(CONFIG_SLEEP) += sleep.o
66COREUTILS-$(CONFIG_SORT) += sort.o
67COREUTILS-$(CONFIG_STTY) += stty.o
68COREUTILS-$(CONFIG_SYNC) += sync.o
69COREUTILS-$(CONFIG_TAIL) += tail.o
70COREUTILS-$(CONFIG_TEE) += tee.o
71COREUTILS-$(CONFIG_TEST) += test.o
72COREUTILS-$(CONFIG_TOUCH) += touch.o
73COREUTILS-$(CONFIG_TR) += tr.o
74COREUTILS-$(CONFIG_TRUE) += true.o
75COREUTILS-$(CONFIG_TTY) += tty.o
76COREUTILS-$(CONFIG_UNAME) += uname.o
77COREUTILS-$(CONFIG_UNIQ) += uniq.o
78COREUTILS-$(CONFIG_USLEEP) += usleep.o
79COREUTILS-$(CONFIG_UUDECODE) += uudecode.o
80COREUTILS-$(CONFIG_UUENCODE) += uuencode.o
81COREUTILS-$(CONFIG_WATCH) += watch.o
82COREUTILS-$(CONFIG_WC) += wc.o
83COREUTILS-$(CONFIG_WHO) += who.o
84COREUTILS-$(CONFIG_WHOAMI) += whoami.o
85COREUTILS-$(CONFIG_YES) += yes.o
86
87libraries-y+=$(COREUTILS_DIR)$(COREUTILS_AR)
88
89$(COREUTILS_DIR)$(COREUTILS_AR): $(patsubst %,$(COREUTILS_DIR)%, $(COREUTILS-y))
90 $(AR) -ro $@ $(patsubst %,$(COREUTILS_DIR)%, $(COREUTILS-y))
91