diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
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 |