aboutsummaryrefslogtreecommitdiff
path: root/games/tty-solitaire/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/tty-solitaire/files/patch-Makefile')
-rw-r--r--games/tty-solitaire/files/patch-Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/games/tty-solitaire/files/patch-Makefile b/games/tty-solitaire/files/patch-Makefile
new file mode 100644
index 000000000000..c5612a75eac1
--- /dev/null
+++ b/games/tty-solitaire/files/patch-Makefile
@@ -0,0 +1,30 @@
+--- Makefile.orig 2017-01-07 22:39:19 UTC
++++ Makefile
+@@ -1,14 +1,14 @@
+-CC = gcc
+-CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g
++CC? = gcc
++CFLAGS+= -W -Wall -pedantic -ansi -std=c99
+
+-LDFLAGS = -lncursesw
++LDFLAGS+= -lncursesw
+
+ # OS X installs ncurses with wide character support, but not as "libncurses"
+ ifeq ($(shell uname -s),Darwin)
+ LDFLAGS = -lncurses
+ endif
+
+-PREFIX = /usr/local
++PREFIX? = /usr/local
+
+ EXECUTABLE = ttysolitaire
+ SRC_DIR = src
+@@ -39,6 +39,8 @@ TESTS_OBJECTS = $(TESTS_DIR)/frame_test.
+
+ .PHONY: test clean install uninstall
+
++all: ttysolitaire
++
+ ttysolitaire: $(SRC_OBJECTS)
+ $(CC) $(CFLAGS) $(SRC) -o $(EXECUTABLE) $(SRC_OBJECTS) $(LDFLAGS)
+