Skip to content

Commit

Permalink
Respect user-set compiler and linker flags
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Feb 13, 2018
1 parent b234e7f commit b792ce8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Makefile
@@ -1,14 +1,15 @@
CC = gcc
CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g

LDFLAGS = -lncursesw
CC ?= gcc
CFLAGS ?= -g
CFLAGS += -W -Wall -pedantic -ansi -std=c99 -g

# 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
Expand Down

0 comments on commit b792ce8

Please sign in to comment.