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