Respect user-set compiler and linker flags
This commit is contained in:
parent
b234e7f116
commit
b792ce833f
13
Makefile
13
Makefile
@ -1,14 +1,15 @@
|
|||||||
CC = gcc
|
CC ?= gcc
|
||||||
CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g
|
CFLAGS ?= -g
|
||||||
|
CFLAGS += -W -Wall -pedantic -ansi -std=c99 -g
|
||||||
LDFLAGS = -lncursesw
|
|
||||||
|
|
||||||
# OS X installs ncurses with wide character support, but not as "libncurses"
|
# OS X installs ncurses with wide character support, but not as "libncurses"
|
||||||
ifeq ($(shell uname -s),Darwin)
|
ifeq ($(shell uname -s),Darwin)
|
||||||
LDFLAGS = -lncurses
|
LDFLAGS += -lncurses
|
||||||
|
else
|
||||||
|
LDFLAGS += -lncursesw
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX ?= /usr/local
|
||||||
|
|
||||||
EXECUTABLE = ttysolitaire
|
EXECUTABLE = ttysolitaire
|
||||||
SRC_DIR = src
|
SRC_DIR = src
|
||||||
|
Loading…
Reference in New Issue
Block a user