semos/Makefile
2024-04-05 04:16:24 +02:00

27 lines
374 B
Makefile

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)