LDFLAGS=-lcurses
REVISION_NUMBER=\"$(shell cat REVISION_NUMBER)\"
+UNAME=\"$(shell uname -srmn)\"
ifeq ($(DEBUG),yes)
OPTIMIZE_FLAG = -ggdb3 -DDEBUG -fno-omit-frame-pointer
OPTIMIZE_FLAG = -O2
endif
-CFLAGS = -Wall -ansi -pedantic -DREVISION_NUMBER=$(REVISION_NUMBER) $(OPTIMIZE_FLAG)
+CFLAGS = -Wall -ansi -pedantic -DREVISION_NUMBER="$(REVISION_NUMBER)" -DUNAME="$(UNAME)" $(OPTIMIZE_FLAG)
all: selector
out = stderr;
}
- fprintf(out, "Selector version %s-R%s\n", VERSION, REVISION_NUMBER);
+ fprintf(out, "Selector version %s-R%s (%s)\n", VERSION, REVISION_NUMBER, UNAME);
fprintf(out, "Written by Francois Fleuret <francois@fleuret.org>.\n");
fprintf(out, "\n");
fprintf(out, "Usage: %s [options] [<filename1> [<filename2> ...]]\n",