summary refs log tree commit diff
path: root/Makefile
blob: 6dbc405a5845de49482967eb999a2ef32d0261cb (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
25
26
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 = dump sol
OBJS = cards.o dump.o sol.o

all: $(BINS)

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

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

$(OBJS): cards.h

sol.o: stack.h

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