CFLAGS += -std=c99 -Wall -Wextra -Wpedantic SDL_PREFIX = /usr/local CFLAGS += -I$(SDL_PREFIX)/include/SDL2 LDFLAGS += -L$(SDL_PREFIX)/lib LDLIBS = -lSDL2 -include config.mk BINS = dump sol OBJS = cards.o dump.o sol.o all: $(BINS) sol: cards.o sol.o $(CC) $(LDFLAGS) cards.o sol.o $(LDLIBS) -o sol $(OBJS): cards.h sol.o: stack.h clean: rm -f $(BINS) $(OBJS)