Merge pull request #15 from AMDmi3/respect-flags

Respect user-set compiler and linker flags
This commit is contained in:
Murilo Pereira 2018-08-12 23:28:16 +02:00 committed by GitHub
commit 5056ae89b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,16 +1,17 @@
VERSION = 1.0.0
CC = gcc
CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g -DTS_VERSION=\"$(VERSION)\"
LDFLAGS = -lncursesw
CC ?= gcc
CFLAGS ?= -g
CFLAGS += -W -Wall -pedantic -ansi -std=c99 -DTS_VERSION=\"$(VERSION)\"
# OS X installs ncurses with wide character support, but not as "libncurses"
ifeq ($(shell uname -s),Darwin)
LDFLAGS = -lncurses
LDFLAGS += -lncurses
else
LDFLAGS += -lncursesw
endif
PREFIX = /usr/local
PREFIX ?= /usr/local
EXECUTABLE = ttysolitaire
SRC_DIR = src