diff options
author | June McEnroe <june@causal.agency> | 2019-08-25 13:39:12 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-08-25 13:42:41 -0400 |
commit | 4f11e235022f9cbd568a2bef8258d04f17b6a1a5 (patch) | |
tree | 0ed844ad4631b1605f6268f842a71f6734ea250b /Makefile | |
parent | Add cards submodule (diff) | |
download | wep-4f11e235022f9cbd568a2bef8258d04f17b6a1a5.tar.gz wep-4f11e235022f9cbd568a2bef8258d04f17b6a1a5.zip |
Build with cards submodule
Diffstat (limited to '')
-rw-r--r-- | Makefile | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Makefile b/Makefile index 073f0be..90e71e5 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,24 @@ CFLAGS += -std=c99 -Wall -Wextra -Wpedantic +CFLAGS += -Icards include config.mk -BINS = dump freecell sol +BINS = freecell sol +OBJS = ${BINS:%=%.o} -all: $(BINS) +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 freecell.o sol.o: cards.h +${OBJS} cards/cards.o: cards/cards.h -freecell.o sol.o: asset.h layout.h stack.h +${OBJS}: asset.h layout.h stack.h + +cards/cards.h: + git submodule update --init clean: - rm -f $(BINS) *.o *.bmp + rm -f ${BINS} *.o cards/*.o |