blob: 2969e79228f9860a36f7e27dc905e61086e84f6d [file] [log] [blame]
Denis Vlasenko7d219aa2006-10-05 10:17:08 +00001# 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 Vlasenkod62fd842007-10-07 20:46:34 +00007obj-y :=
8obj-y += applets.o
Denis Vlasenko52b5eba2006-10-19 22:11:06 +00009
Denis Vlasenko432d69c2007-06-14 21:41:15 +000010hostprogs-y:=
Denis Vlasenko1aa7e472007-11-28 06:49:03 +000011hostprogs-y += usage applet_tables
Denis Vlasenko432d69c2007-06-14 21:41:15 +000012
Denis Vlasenkod62fd842007-10-07 20:46:34 +000013always:= $(hostprogs-y)
Denis Vlasenko432d69c2007-06-14 21:41:15 +000014
15# Generated files need additional love
Denis Vlasenkob5605772006-10-19 22:12:47 +000016
Denis Vlasenko432d69c2007-06-14 21:41:15 +000017HOSTCFLAGS_usage.o = -I$(srctree)/include
18
Denis Vlasenko745cd172007-11-29 03:31:20 +000019applets/applets.o: include/usage_compressed.h include/applet_tables.h
Denis Vlasenko1aa7e472007-11-28 06:49:03 +000020
Denis Vlasenko2afabe82007-12-10 07:06:04 +000021applets/usage: .config $(srctree)/applets/usage_compressed
22applets/applet_tables: .config
Denis Vlasenko745cd172007-11-29 03:31:20 +000023
24quiet_cmd_gen_usage_compressed = GEN include/usage_compressed.h
25 cmd_gen_usage_compressed = $(srctree)/applets/usage_compressed include/usage_compressed.h applets
Denis Vlasenko1aa7e472007-11-28 06:49:03 +000026
Denis Vlasenko6ca409e2007-08-12 20:58:27 +000027include/usage_compressed.h: applets/usage $(srctree)/applets/usage_compressed
Mike Frysingere5c09532007-01-02 05:42:35 +000028 $(call cmd,gen_usage_compressed)
Denis Vlasenko1aa7e472007-11-28 06:49:03 +000029
Denis Vlasenko745cd172007-11-29 03:31:20 +000030quiet_cmd_gen_applet_tables = GEN include/applet_tables.h
31 cmd_gen_applet_tables = applets/applet_tables include/applet_tables.h
32
Denis Vlasenko1aa7e472007-11-28 06:49:03 +000033include/applet_tables.h: applets/applet_tables
Denis Vlasenko745cd172007-11-29 03:31:20 +000034 $(call cmd,gen_applet_tables)