Glenn L McGrath | 3238ea1 | 2003-02-15 10:53:40 +0000 | [diff] [blame] | 1 | # Makefile for busybox |
| 2 | # |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
Glenn L McGrath | 3238ea1 | 2003-02-15 10:53:40 +0000 | [diff] [blame] | 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 | |
| 20 | COREUTILS_AR:=coreutils.a |
| 21 | ifndef $(COREUTILS_DIR) |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 22 | COREUTILS_DIR:=$(top_builddir)/coreutils/ |
Glenn L McGrath | 3238ea1 | 2003-02-15 10:53:40 +0000 | [diff] [blame] | 23 | endif |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 24 | srcdir=$(top_srcdir)/coreutils |
Glenn L McGrath | 3238ea1 | 2003-02-15 10:53:40 +0000 | [diff] [blame] | 25 | |
| 26 | COREUTILS-y:= |
Mike Frysinger | 5b300dd | 2005-05-12 22:22:50 +0000 | [diff] [blame] | 27 | COREUTILS-$(CONFIG_BASENAME) += basename.o |
| 28 | COREUTILS-$(CONFIG_CAL) += cal.o |
| 29 | COREUTILS-$(CONFIG_CAT) += cat.o |
| 30 | COREUTILS-$(CONFIG_CHGRP) += chgrp.o |
| 31 | COREUTILS-$(CONFIG_CHMOD) += chmod.o |
| 32 | COREUTILS-$(CONFIG_CHOWN) += chown.o |
| 33 | COREUTILS-$(CONFIG_CHROOT) += chroot.o |
| 34 | COREUTILS-$(CONFIG_CMP) += cmp.o |
Mike Frysinger | a84a512 | 2005-05-12 22:23:15 +0000 | [diff] [blame] | 35 | COREUTILS-$(CONFIG_COMM) += comm.o |
Mike Frysinger | 5b300dd | 2005-05-12 22:22:50 +0000 | [diff] [blame] | 36 | COREUTILS-$(CONFIG_CP) += cp.o |
| 37 | COREUTILS-$(CONFIG_CUT) += cut.o |
| 38 | COREUTILS-$(CONFIG_DATE) += date.o |
| 39 | COREUTILS-$(CONFIG_DD) += dd.o |
| 40 | COREUTILS-$(CONFIG_DF) += df.o |
| 41 | COREUTILS-$(CONFIG_DIRNAME) += dirname.o |
| 42 | COREUTILS-$(CONFIG_DOS2UNIX) += dos2unix.o |
| 43 | COREUTILS-$(CONFIG_DU) += du.o |
| 44 | COREUTILS-$(CONFIG_ECHO) += echo.o |
| 45 | COREUTILS-$(CONFIG_ENV) += env.o |
| 46 | COREUTILS-$(CONFIG_EXPR) += expr.o |
| 47 | COREUTILS-$(CONFIG_FALSE) += false.o |
| 48 | COREUTILS-$(CONFIG_FOLD) += fold.o |
| 49 | COREUTILS-$(CONFIG_HEAD) += head.o |
| 50 | COREUTILS-$(CONFIG_HOSTID) += hostid.o |
| 51 | COREUTILS-$(CONFIG_ID) += id.o |
| 52 | COREUTILS-$(CONFIG_INSTALL) += install.o |
| 53 | COREUTILS-$(CONFIG_LENGTH) += length.o |
| 54 | COREUTILS-$(CONFIG_LN) += ln.o |
| 55 | COREUTILS-$(CONFIG_LOGNAME) += logname.o |
| 56 | COREUTILS-$(CONFIG_LS) += ls.o |
| 57 | COREUTILS-$(CONFIG_MD5SUM) += md5_sha1_sum.o |
| 58 | COREUTILS-$(CONFIG_MKDIR) += mkdir.o |
| 59 | COREUTILS-$(CONFIG_MKFIFO) += mkfifo.o |
| 60 | COREUTILS-$(CONFIG_MKNOD) += mknod.o |
| 61 | COREUTILS-$(CONFIG_MV) += mv.o |
| 62 | COREUTILS-$(CONFIG_NICE) += nice.o |
| 63 | COREUTILS-$(CONFIG_OD) += od.o |
| 64 | COREUTILS-$(CONFIG_PRINTENV) += printenv.o |
| 65 | COREUTILS-$(CONFIG_PRINTF) += printf.o |
| 66 | COREUTILS-$(CONFIG_PWD) += pwd.o |
| 67 | COREUTILS-$(CONFIG_REALPATH) += realpath.o |
| 68 | COREUTILS-$(CONFIG_RM) += rm.o |
| 69 | COREUTILS-$(CONFIG_RMDIR) += rmdir.o |
| 70 | COREUTILS-$(CONFIG_SEQ) += seq.o |
| 71 | COREUTILS-$(CONFIG_SHA1SUM) += md5_sha1_sum.o |
| 72 | COREUTILS-$(CONFIG_SLEEP) += sleep.o |
| 73 | COREUTILS-$(CONFIG_SORT) += sort.o |
| 74 | COREUTILS-$(CONFIG_STAT) += stat.o |
| 75 | COREUTILS-$(CONFIG_STTY) += stty.o |
| 76 | COREUTILS-$(CONFIG_SUM) += sum.o |
| 77 | COREUTILS-$(CONFIG_SYNC) += sync.o |
| 78 | COREUTILS-$(CONFIG_TAIL) += tail.o |
| 79 | COREUTILS-$(CONFIG_TEE) += tee.o |
| 80 | COREUTILS-$(CONFIG_TEST) += test.o |
| 81 | COREUTILS-$(CONFIG_TOUCH) += touch.o |
| 82 | COREUTILS-$(CONFIG_TR) += tr.o |
| 83 | COREUTILS-$(CONFIG_TRUE) += true.o |
| 84 | COREUTILS-$(CONFIG_TTY) += tty.o |
| 85 | COREUTILS-$(CONFIG_UNAME) += uname.o |
| 86 | COREUTILS-$(CONFIG_UNIQ) += uniq.o |
| 87 | COREUTILS-$(CONFIG_USLEEP) += usleep.o |
| 88 | COREUTILS-$(CONFIG_UUDECODE) += uudecode.o |
| 89 | COREUTILS-$(CONFIG_UUENCODE) += uuencode.o |
| 90 | COREUTILS-$(CONFIG_WATCH) += watch.o |
| 91 | COREUTILS-$(CONFIG_WC) += wc.o |
| 92 | COREUTILS-$(CONFIG_WHO) += who.o |
| 93 | COREUTILS-$(CONFIG_WHOAMI) += whoami.o |
| 94 | COREUTILS-$(CONFIG_YES) += yes.o |
Glenn L McGrath | 3238ea1 | 2003-02-15 10:53:40 +0000 | [diff] [blame] | 95 | |
| 96 | libraries-y+=$(COREUTILS_DIR)$(COREUTILS_AR) |
| 97 | |
| 98 | $(COREUTILS_DIR)$(COREUTILS_AR): $(patsubst %,$(COREUTILS_DIR)%, $(COREUTILS-y)) |
| 99 | $(AR) -ro $@ $(patsubst %,$(COREUTILS_DIR)%, $(COREUTILS-y)) |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 100 | |
| 101 | $(COREUTILS_DIR)%.o: $(srcdir)/%.c |
| 102 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< |