Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect user-set compiler and linker flags #15

Merged
merged 2 commits into from
Aug 12, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Respect user-set compiler and linker flags
AMDmi3 committed Feb 13, 2018
commit b792ce833f537b3e58f23cc52e195ab08e1555f9
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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