TARGETS := $(patsubst %.c,%,$(wildcard *.c)) CFLAGS += -g -Wall -Wextra -pedantic -pedantic-errors all: $(TARGETS) .PHONY: all