summary refs log tree commit diff
path: root/Makefile
blob: 03bb0ada8d54450a98221bb686b5a261d7b4c6b1 (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
CFLAGS += -Icards

include config.mk

BINS = freecell sol
OBJS = ${BINS:%=%.o}

all: ${BINS}

${BINS}: cards/cards.o

.o:
	${CC} ${LDFLAGS} $< cards/cards.o ${LDLIBS} -o $@

${OBJS} cards/cards.o: cards/cards.h

${OBJS}: asset.h stack.h

sol.o: layout.h

cards/cards.h:
	git submodule update --init

clean:
	rm -f ${BINS} *.o cards/*.o