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 | |
Denis Vlasenko | d62fd84 | 2007-10-07 20:46:34 +0000 | [diff] [blame] | 7 | obj-y := |
| 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 | 1aa7e47 | 2007-11-28 06:49:03 +0000 | [diff] [blame] | 11 | hostprogs-y += usage applet_tables |
Denis Vlasenko | 432d69c | 2007-06-14 21:41:15 +0000 | [diff] [blame] | 12 | |
Denis Vlasenko | d62fd84 | 2007-10-07 20:46:34 +0000 | [diff] [blame] | 13 | always:= $(hostprogs-y) |
Denis Vlasenko | 432d69c | 2007-06-14 21:41:15 +0000 | [diff] [blame] | 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 | |
Denis Vlasenko | 1aa7e47 | 2007-11-28 06:49:03 +0000 | [diff] [blame] | 22 | applets/applets.o: include/usage_compressed.h include/applet_tables.h |
| 23 | |
Denis Vlasenko | 6ca409e | 2007-08-12 20:58:27 +0000 | [diff] [blame] | 24 | applets/usage: .config $(srctree)/applets/usage_compressed |
Denis Vlasenko | 1aa7e47 | 2007-11-28 06:49:03 +0000 | [diff] [blame] | 25 | |
Denis Vlasenko | 6ca409e | 2007-08-12 20:58:27 +0000 | [diff] [blame] | 26 | include/usage_compressed.h: applets/usage $(srctree)/applets/usage_compressed |
Mike Frysinger | e5c0953 | 2007-01-02 05:42:35 +0000 | [diff] [blame] | 27 | $(call cmd,gen_usage_compressed) |
Denis Vlasenko | 1aa7e47 | 2007-11-28 06:49:03 +0000 | [diff] [blame] | 28 | |
| 29 | # Two-stage file creation, to avoid having target file still created |
| 30 | # in case applet_tables fails |
| 31 | include/applet_tables.h: applets/applet_tables |
| 32 | applets/applet_tables >include/applet_tables.h.tmp |
| 33 | mv include/applet_tables.h.tmp include/applet_tables.h |