Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 1 | # Makefile for busybox |
| 2 | # |
| 3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> |
| 4 | # |
| 5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. |
| 6 | |
| 7 | obj-y:= |
Denis Vlasenko | 432d69c | 2007-06-14 21:41:15 +0000 | [diff] [blame] | 8 | obj-y += applets.o |
Denis Vlasenko | 52b5eba | 2006-10-19 22:11:06 +0000 | [diff] [blame] | 9 | |
Denis Vlasenko | 432d69c | 2007-06-14 21:41:15 +0000 | [diff] [blame] | 10 | hostprogs-y:= |
Denis Vlasenko | b560577 | 2006-10-19 22:12:47 +0000 | [diff] [blame] | 11 | hostprogs-y += usage |
Denis Vlasenko | 432d69c | 2007-06-14 21:41:15 +0000 | [diff] [blame] | 12 | |
| 13 | always:= $(hostprogs-y) |
| 14 | |
| 15 | # Generated files need additional love |
Denis Vlasenko | b560577 | 2006-10-19 22:12:47 +0000 | [diff] [blame] | 16 | |
Mike Frysinger | e5c0953 | 2007-01-02 05:42:35 +0000 | [diff] [blame] | 17 | quiet_cmd_gen_usage_compressed = GEN include/usage_compressed.h |
| 18 | cmd_gen_usage_compressed = $(srctree)/applets/usage_compressed include/usage_compressed.h applets |
Denis Vlasenko | 432d69c | 2007-06-14 21:41:15 +0000 | [diff] [blame] | 19 | |
| 20 | HOSTCFLAGS_usage.o = -I$(srctree)/include |
| 21 | |
| 22 | applets/applets.o: include/usage_compressed.h |
| 23 | applets/usage: .config |
| 24 | include/usage_compressed.h: applets/usage |
Mike Frysinger | e5c0953 | 2007-01-02 05:42:35 +0000 | [diff] [blame] | 25 | $(call cmd,gen_usage_compressed) |