Makefile 200 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 EXEC = main CC = gcc SRC = $(wildcard *.c) OBJ = $(SRC:.c = .o) CFLAG = -Wall -Wextra -g -O0 all: $(EXEC) %.o : %.c $(CC) $(CFLAG) -o $@ -c $< $(EXEC) : $(OBJ) $(CC) -o $@ $^ clean: rm -rf *.o