OUTPUT = semos CFLAGS = -std=c17 -Wall -Wextra -Wpedantic -Wconversion -pedantic -pedantic-errors CFILES = \ main.c \ parser.c \ checker.c \ vm.c \ OBJECT_FILES = $(patsubst %.c,%.o,$(CFILES)) HEADER_FILES = $(wildcard *.h) $(OUTPUT): $(OBJECT_FILES) gcc -o $@ $^ %.o: %.c $(HEADER_FILES) gcc -c -o $@ $(CFLAGS) $< .PHONY: clean clean: rm -rf *.o $(OUTPUT)