about summary refs log tree commit diff
path: root/Makefile
blob: 939549e6f64e54678a0420927bf4f3a2f110e034 (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

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

-include config.mk

BINS = dump freecell sol

all: $(BINS)

$(BINS): cards.o

.o:
	$(CC) $(LDFLAGS) $< cards.o $(LDLIBS) -o $@

cards.o dump.o freecell.o sol.o: cards.h

freecell.o sol.o: layout.h stack.h

clean:
	rm -f $(BINS) *.o *.bmp