Compile and run on OS X.

This commit is contained in:
Murilo Pereira 2013-12-24 14:41:02 -02:00
parent fac0750a2c
commit eca0819609
7 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,12 @@
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

View File

@ -1,6 +1,5 @@
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <errno.h>
#include "card.h"

View File

@ -1,6 +1,5 @@
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <errno.h>
#include <ncurses.h>
#include <assert.h>

View File

@ -1,6 +1,5 @@
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <errno.h>
#include "deck.h"

View File

@ -1,6 +1,5 @@
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <errno.h>
#include "frame.h"

View File

@ -1,7 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <malloc.h>
#include <errno.h>
#include <time.h>
#include <assert.h>

View File

@ -1,7 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <malloc.h>
#include <errno.h>
#include "stack.h"