about summary refs log tree commit diff
path: root/Makefile
blob: e6c8651ac971e9850b927efc0218f660aa6ee2e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CFLAGS += -std=c99 -Wall -Wextra -Wpedantic

SDL_PREFIX = /usr/local
CFLAGS += -I$(SDL_PREFIX)/include/SDL2
LDFLAGS += -L$(SDL_PREFIX)/lib
LDLIBS = -lSDL2

-include config.mk

BINS = demo dump
OBJS = cards.o demo.o dump.o

all: $(BINS)

demo: cards.o demo.o
	$(CC) $(LDFLAGS) cards.o demo.o $(LDLIBS) -o demo

dump: cards.o dump.o
	$(CC) $(LDFLAGS) cards.o dump.o $(LDLIBS) -o dump

$(OBJS): cards.h

clean:
	rm -f $(BINS) $(OBJS)