aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2010-03-23 01:08:26 +0100
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2010-03-23 01:08:26 +0100
commit1497484839efd4c57d63c07e2b92413193a3977f (patch)
tree5287750a4c55b433f73c3636d8aa8cffe6ecc71b /applets
parent85dbf190c69f747cea3f8cdabecb3464ab1351be (diff)
downloadbusybox-1497484839efd4c57d63c07e2b92413193a3977f.tar.gz
busybox-1497484839efd4c57d63c07e2b92413193a3977f.tar.bz2
ash,hush: make it possible to build them individually
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'applets')
-rw-r--r--applets/applet_tables.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/applets/applet_tables.c b/applets/applet_tables.c
index e67f017e7..e48be4682 100644
--- a/applets/applet_tables.c
+++ b/applets/applet_tables.c
@@ -79,6 +79,7 @@ int main(int argc, char **argv)
}
printf("\n");
+ printf("#ifndef SKIP_definitions\n");
printf("const char applet_names[] ALIGN1 = \"\"\n");
for (i = 0; i < NUM_APPLETS; i++) {
printf("\"%s\" \"\\0\"\n", applets[i].name);
@@ -120,9 +121,10 @@ int main(int argc, char **argv)
printf("0x%02x,\n", v);
i++;
}
- printf("};\n\n");
+ printf("};\n");
#endif
-
+ printf("#endif /* SKIP_definitions */\n");
+ printf("\n");
printf("#define MAX_APPLET_NAME_LEN %u\n", MAX_APPLET_NAME_LEN);
return 0;