CFLAGS = -std=c17 -Wall -Wextra -Wpedantic -Wconversion HEADERS = $(wildcard *.h) all: compile_flags.txt example example: based_gui.o example.o gcc $^ -o $@ -lX11 -lXpm -lXext %.o: %.c $(HEADERS) gcc $< -c -o $@ $(CFLAGS) clean: rm -rf *.o wacc compile_flags.txt: echo -xc $(CFLAGS) | sed 's/\s\+/\n/g' > compile_flags.txt