From eca0819609ed60db9bf6a98b7dcc65e656d92c63 Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Tue, 24 Dec 2013 14:41:02 -0200 Subject: [PATCH] Compile and run on OS X. --- Makefile | 10 ++++++++-- src/card.c | 1 - src/cursor.c | 1 - src/deck.c | 1 - src/frame.c | 1 - src/game.c | 1 - src/stack.c | 1 - 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 4b559d1..90d22e5 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,12 @@ -CC = gcc -CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g +CC = gcc +CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g + LDFLAGS = -lncursesw + +ifeq ($(shell uname -s),Darwin) + LDFLAGS += -L /opt/local/lib +endif + PREFIX = /usr/local EXECUTABLE = ttysolitaire diff --git a/src/card.c b/src/card.c index fbb6eb0..0fb0516 100644 --- a/src/card.c +++ b/src/card.c @@ -1,6 +1,5 @@ #include #include -#include #include #include "card.h" diff --git a/src/cursor.c b/src/cursor.c index 5b481d4..50536cf 100644 --- a/src/cursor.c +++ b/src/cursor.c @@ -1,6 +1,5 @@ #include #include -#include #include #include #include diff --git a/src/deck.c b/src/deck.c index 6197a65..8eb25d7 100644 --- a/src/deck.c +++ b/src/deck.c @@ -1,6 +1,5 @@ #include #include -#include #include #include "deck.h" diff --git a/src/frame.c b/src/frame.c index bd097d3..64237dc 100644 --- a/src/frame.c +++ b/src/frame.c @@ -1,6 +1,5 @@ #include #include -#include #include #include "frame.h" diff --git a/src/game.c b/src/game.c index a41f443..c22e3ec 100644 --- a/src/game.c +++ b/src/game.c @@ -1,7 +1,6 @@ #include #include #include -#include #include #include #include diff --git a/src/stack.c b/src/stack.c index 933e512..9d05556 100644 --- a/src/stack.c +++ b/src/stack.c @@ -1,7 +1,6 @@ #include #include #include -#include #include #include "stack.h"