blob: 4e7b7bd20029e2dc9112d543b91cda0e03a28ac5 [file] [log] [blame]
Glenn L McGrath3238ea12003-02-15 10:53:40 +00001# Makefile for busybox
2#
Mike Frysinger0d4ee682005-09-24 06:01:57 +00003# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
Glenn L McGrath3238ea12003-02-15 10:53:40 +00004#
Mike Frysinger0d4ee682005-09-24 06:01:57 +00005# Licensed under the GPL v2, see the file LICENSE in this tarball.
Glenn L McGrath3238ea12003-02-15 10:53:40 +00006
7COREUTILS_AR:=coreutils.a
8ifndef $(COREUTILS_DIR)
Eric Andersen7daa0762004-10-08 07:46:08 +00009COREUTILS_DIR:=$(top_builddir)/coreutils/
Glenn L McGrath3238ea12003-02-15 10:53:40 +000010endif
Eric Andersen7daa0762004-10-08 07:46:08 +000011srcdir=$(top_srcdir)/coreutils
Glenn L McGrath3238ea12003-02-15 10:53:40 +000012
13COREUTILS-y:=
Mike Frysinger5b300dd2005-05-12 22:22:50 +000014COREUTILS-$(CONFIG_BASENAME) += basename.o
15COREUTILS-$(CONFIG_CAL) += cal.o
16COREUTILS-$(CONFIG_CAT) += cat.o
17COREUTILS-$(CONFIG_CHGRP) += chgrp.o
18COREUTILS-$(CONFIG_CHMOD) += chmod.o
19COREUTILS-$(CONFIG_CHOWN) += chown.o
20COREUTILS-$(CONFIG_CHROOT) += chroot.o
21COREUTILS-$(CONFIG_CMP) += cmp.o
Mike Frysingera84a5122005-05-12 22:23:15 +000022COREUTILS-$(CONFIG_COMM) += comm.o
Mike Frysinger5b300dd2005-05-12 22:22:50 +000023COREUTILS-$(CONFIG_CP) += cp.o
24COREUTILS-$(CONFIG_CUT) += cut.o
25COREUTILS-$(CONFIG_DATE) += date.o
26COREUTILS-$(CONFIG_DD) += dd.o
27COREUTILS-$(CONFIG_DF) += df.o
28COREUTILS-$(CONFIG_DIRNAME) += dirname.o
29COREUTILS-$(CONFIG_DOS2UNIX) += dos2unix.o
30COREUTILS-$(CONFIG_DU) += du.o
31COREUTILS-$(CONFIG_ECHO) += echo.o
32COREUTILS-$(CONFIG_ENV) += env.o
33COREUTILS-$(CONFIG_EXPR) += expr.o
34COREUTILS-$(CONFIG_FALSE) += false.o
35COREUTILS-$(CONFIG_FOLD) += fold.o
36COREUTILS-$(CONFIG_HEAD) += head.o
37COREUTILS-$(CONFIG_HOSTID) += hostid.o
38COREUTILS-$(CONFIG_ID) += id.o
39COREUTILS-$(CONFIG_INSTALL) += install.o
40COREUTILS-$(CONFIG_LENGTH) += length.o
41COREUTILS-$(CONFIG_LN) += ln.o
42COREUTILS-$(CONFIG_LOGNAME) += logname.o
43COREUTILS-$(CONFIG_LS) += ls.o
44COREUTILS-$(CONFIG_MD5SUM) += md5_sha1_sum.o
45COREUTILS-$(CONFIG_MKDIR) += mkdir.o
46COREUTILS-$(CONFIG_MKFIFO) += mkfifo.o
47COREUTILS-$(CONFIG_MKNOD) += mknod.o
48COREUTILS-$(CONFIG_MV) += mv.o
49COREUTILS-$(CONFIG_NICE) += nice.o
Bernhard Reutner-Fischer9d7010c2005-09-21 18:25:05 +000050COREUTILS-$(CONFIG_NOHUP) += nohup.o
Mike Frysinger5b300dd2005-05-12 22:22:50 +000051COREUTILS-$(CONFIG_OD) += od.o
52COREUTILS-$(CONFIG_PRINTENV) += printenv.o
53COREUTILS-$(CONFIG_PRINTF) += printf.o
54COREUTILS-$(CONFIG_PWD) += pwd.o
55COREUTILS-$(CONFIG_REALPATH) += realpath.o
56COREUTILS-$(CONFIG_RM) += rm.o
57COREUTILS-$(CONFIG_RMDIR) += rmdir.o
58COREUTILS-$(CONFIG_SEQ) += seq.o
59COREUTILS-$(CONFIG_SHA1SUM) += md5_sha1_sum.o
60COREUTILS-$(CONFIG_SLEEP) += sleep.o
61COREUTILS-$(CONFIG_SORT) += sort.o
62COREUTILS-$(CONFIG_STAT) += stat.o
63COREUTILS-$(CONFIG_STTY) += stty.o
64COREUTILS-$(CONFIG_SUM) += sum.o
65COREUTILS-$(CONFIG_SYNC) += sync.o
66COREUTILS-$(CONFIG_TAIL) += tail.o
67COREUTILS-$(CONFIG_TEE) += tee.o
68COREUTILS-$(CONFIG_TEST) += test.o
69COREUTILS-$(CONFIG_TOUCH) += touch.o
70COREUTILS-$(CONFIG_TR) += tr.o
71COREUTILS-$(CONFIG_TRUE) += true.o
72COREUTILS-$(CONFIG_TTY) += tty.o
73COREUTILS-$(CONFIG_UNAME) += uname.o
74COREUTILS-$(CONFIG_UNIQ) += uniq.o
75COREUTILS-$(CONFIG_USLEEP) += usleep.o
76COREUTILS-$(CONFIG_UUDECODE) += uudecode.o
77COREUTILS-$(CONFIG_UUENCODE) += uuencode.o
78COREUTILS-$(CONFIG_WATCH) += watch.o
79COREUTILS-$(CONFIG_WC) += wc.o
80COREUTILS-$(CONFIG_WHO) += who.o
81COREUTILS-$(CONFIG_WHOAMI) += whoami.o
82COREUTILS-$(CONFIG_YES) += yes.o
Glenn L McGrath3238ea12003-02-15 10:53:40 +000083
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000084COREUTILS-y:=$(sort $(COREUTILS-y))
Glenn L McGrath3238ea12003-02-15 10:53:40 +000085libraries-y+=$(COREUTILS_DIR)$(COREUTILS_AR)
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000086COREUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(COREUTILS-y))
87COREUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
88APPLET_SRC-y+=$(COREUTILS_SRC-y)
89APPLET_SRC-a+=$(COREUTILS_SRC-a)
Glenn L McGrath3238ea12003-02-15 10:53:40 +000090
91$(COREUTILS_DIR)$(COREUTILS_AR): $(patsubst %,$(COREUTILS_DIR)%, $(COREUTILS-y))
Mike Frysingerb38673f2006-02-02 01:41:53 +000092 $(do_ar)
Eric Andersen7daa0762004-10-08 07:46:08 +000093
94$(COREUTILS_DIR)%.o: $(srcdir)/%.c
Mike Frysingerb38673f2006-02-02 01:41:53 +000095 $(compile.c)