based-gui/Makefile

20 lines
335 B
Makefile
Raw Normal View History

2023-03-08 14:05:42 +00:00
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