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 OBJS = cards.o dump.o all: $(BINS) dump: cards.o dump.o $(CC) $(LDFLAGS) cards.o dump.o $(LDLIBS) -o dump $(OBJS): cards.h clean: rm -f $(BINS) $(OBJS)