semos/Makefile
SimonFJ20 b5270924ba init
2024-04-02 17:21:48 +02:00

24 lines
341 B
Makefile

OUTPUT = semos
CFLAGS = -std=c17 -Wall -Wextra -Wpedantic -Wconversion -pedantic -pedantic-errors
CFILES = \
main.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)