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