endif
all: busybox busybox.links docs
-.PHONY: all
busybox: $(OBJECTS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES)
regexp.o nfsmount.o: %.o: %.h
$(OBJECTS): %.o: busybox.def.h internal.h %.c
-.PHONY: test tests
test tests:
cd tests && $(MAKE) all
-.PHONY: clean
clean:
- rm -f busybox.links *~ *.o core
- rm -rf _install
- cd tests && $(MAKE) clean
-.PHONY: distclean
distclean: clean
- rm -f busybox
- cd tests && $(MAKE) distclean
-.PHONY: install
install: busybox busybox.links
./install.sh $(PREFIX)
-.PHONY: dist release
dist release: distclean
$(MAKE) -C docs clean all
cd ..; \
// normal strings.
#define BB_FEATURE_FULL_REGULAR_EXPRESSIONS
//
+// Use only simple command help
+#define BB_FEATURE_TRIVIAL_HELP
+//
// Use termios to manipulate the screen ('more' is prettier with this on)
#define BB_FEATURE_USE_TERMIOS
//
static const char uname_usage[] =
"uname [OPTION]...\n\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
"Print certain system information. With no OPTION, same as -s.\n\n"
"Options:\n"
"\t-a\tprint all information\n"
"\t-s\tprint the operating system name\n"
"\t-p\tprint the host processor type\n"
- "\t-v\tprint the operating system version\n";
+ "\t-v\tprint the operating system version\n"
+#endif
+ ;
static void print_element(unsigned int mask, char *element);
static const char uname_usage[] =
"uname [OPTION]...\n\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
"Print certain system information. With no OPTION, same as -s.\n\n"
"Options:\n"
"\t-a\tprint all information\n"
"\t-s\tprint the operating system name\n"
"\t-p\tprint the host processor type\n"
- "\t-v\tprint the operating system version\n";
+ "\t-v\tprint the operating system version\n"
+#endif
+ ;
static void print_element(unsigned int mask, char *element);