based-gui/Makefile
SimonFJ20 5bcfcfa400 init
2023-03-08 15:09:45 +01:00

20 lines
335 B
Makefile

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