diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/Makefile b/Makefile index 488245d..03bb0ad 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,26 @@ CFLAGS += -std=c99 -Wall -Wextra -Wpedantic +CFLAGS += -Icards include config.mk -BINS = dump example +BINS = freecell sol +OBJS = ${BINS:%=%.o} all: ${BINS} -${BINS}: cards.o +${BINS}: cards/cards.o .o: - ${CC} ${LDFLAGS} $< cards.o ${LDLIBS} -o $@ + ${CC} ${LDFLAGS} $< cards/cards.o ${LDLIBS} -o $@ -cards.o dump.o example.o: cards.h +${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 *.bmp + rm -f ${BINS} *.o cards/*.o |