X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile.in;h=0af8cdddc27fa5800d694c8d3ed8982a8d77166e;hb=c8862b9e246b4ef6ff1fe103946e18cf2537ecde;hp=9382ce757a51311a9c7356667a2db2ce229a735e;hpb=55071ec8801a9c886f5fad11649b6390da1a751c;p=paraslash.git diff --git a/Makefile.in b/Makefile.in index 9382ce75..0af8cddd 100644 --- a/Makefile.in +++ b/Makefile.in @@ -9,7 +9,8 @@ MANDIR := @datarootdir@/man/man1 install_sh := @install_sh@ build_date := $(shell date) -system := $(shell uname -rs) +uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS") +uname_rs := $(shell uname -rs) cc_version := $(shell $(CC) --version | head -n 1) codename := solar saturation @@ -26,7 +27,7 @@ DEBUG_CPPFLAGS += -Wredundant-decls # many warnings about trivial stuff # CPPFLAGS += -Wconversion -ifeq ($(uname_S),Linux) +ifeq ($(uname_s),Linux) CPPFLAGS += -fdata-sections -ffunction-sections LDFLAGS += -Wl,--gc-sections CPPFLAGS += -Wstrict-prototypes @@ -39,7 +40,7 @@ CPPFLAGS += -Wchar-subscripts CPPFLAGS += -Wformat-security CPPFLAGS += -DBINDIR='"$(BINDIR)"' CPPFLAGS += -DBUILD_DATE='"$(build_date)"' -CPPFLAGS += -DSYSTEM='"$(system)"' +CPPFLAGS += -DUNAME_RS='"$(uname_rs)"' CPPFLAGS += -DCODENAME='"$(codename)"' CPPFLAGS += -DCC_VERSION='"$(cc_version)"' CPPFLAGS += -Werror-implicit-function-declaration