semos/Makefile

27 lines
374 B
Makefile
Raw Permalink Normal View History

2024-04-02 16:21:48 +01:00
OUTPUT = semos
CFLAGS = -std=c17 -Wall -Wextra -Wpedantic -Wconversion -pedantic -pedantic-errors
CFILES = \
main.c \
2024-04-05 03:14:35 +01:00
parser.c \
checker.c \
vm.c \
2024-04-02 16:21:48 +01:00
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)