From e27b5ee6468bcd87164baeabe290282ec85e0c4a Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 14 Mar 2019 18:38:47 -0400 Subject: Rewrite using SDL --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b58b5e5..2ba46a6 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,17 @@ -CFLAGS += -Wall -Wextra +CFLAGS += -std=c99 -Wall -Wextra + +SDL_PREFIX = /usr/local +CFLAGS += -I$(SDL_PREFIX)/include/SDL2 +LDFLAGS += -L$(SDL_PREFIX)/lib +LDLIBS = -lSDL2 -include config.mk BINS = dump OBJS = cards.o dump.o +all: $(BINS) + dump: cards.o dump.o $(CC) $(LDFLAGS) cards.o dump.o $(LDLIBS) -o dump -- cgit 1.4.1