summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-03-14 18:38:47 -0400
committerJune McEnroe <june@causal.agency>2019-03-14 18:38:47 -0400
commite27b5ee6468bcd87164baeabe290282ec85e0c4a (patch)
treed1770be29e2a79d974c5c7b7d06bce29c5b34f68 /Makefile
parentAdd cards.h, cards.c, dump.c (diff)
downloadwep-e27b5ee6468bcd87164baeabe290282ec85e0c4a.tar.gz
wep-e27b5ee6468bcd87164baeabe290282ec85e0c4a.zip
Rewrite using SDL
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
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