LDFLAGS=
+UNAME=\"$(shell uname -srmn)\"
+
ifeq ($(DEBUG),yes)
OPTIMIZE_FLAG = -ggdb3 -DDEBUG -fno-omit-frame-pointer
else
OPTIMIZE_FLAG = -O2
endif
-CFLAGS = -Wall -ansi -pedantic -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(OPTIMIZE_FLAG)
+CFLAGS = -Wall -ansi -pedantic -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUNAME="$(UNAME)" $(OPTIMIZE_FLAG)
all: dus
/**********************************************************************/
void print_help(FILE *out) {
fprintf(out, "Usage: dus [OPTION]... [FILE]...\n");
- fprintf(out, "Version %s\n", VERSION_NUMBER);
+ fprintf(out, "Version %s (%s)\n", VERSION_NUMBER, UNAME);
fprintf(out, "List files and directories sorted according to their size or content size. Take the content of the current directory as argument if none is provided.\n");
fprintf(out, "\n");
fprintf(out, " -d ignore files and directories starting with a '.'\n");