diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-07-05 01:14:39 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-07-05 18:09:26 +0200 |
| commit | c449ac2ce4823d03a42bae9357c7937ddbf91b92 (patch) | |
| tree | 09590fbd628cceee7632afe7c186e879a3a47858 | |
| parent | 31bd9266dbfedf5864d574d47793415826d8a41e (diff) | |
| download | vis-c449ac2ce4823d03a42bae9357c7937ddbf91b92.tar.gz vis-c449ac2ce4823d03a42bae9357c7937ddbf91b92.tar.xz | |
make: only call uname once in config.mk
| -rw-r--r-- | config.mk | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -16,20 +16,22 @@ MANPREFIX = ${PREFIX}/share/man INCS = -I. LIBS = -lc -lncursesw -ifeq ($(shell uname),Darwin) +OS = $(shell uname) + +ifeq (${OS},Darwin) LIBS = -lc -lncurses CFLAGS += -D_DARWIN_C_SOURCE -else ifeq ($(shell uname),OpenBSD) +else ifeq (${OS},OpenBSD) LIBS = -lc -lncurses CFLAGS += -D_BSD_SOURCE -else ifeq ($(shell uname),FreeBSD) +else ifeq (${OS},FreeBSD) CFLAGS += -D_BSD_SOURCE -else ifeq ($(shell uname),NetBSD) +else ifeq (${OS},NetBSD) LIBS = -lc -lcurses CFLAGS += -D_BSD_SOURCE -else ifeq ($(shell uname),SunOS) +else ifeq (${OS},SunOS) INCS += -I/usr/include/ncurses -else ifeq ($(shell uname),AIX) +else ifeq (${OS},AIX) CFLAGS += -D_ALL_SOURCE endif |
