CFLAGS += -O2 -Wall TARGET = journal SRC = $(wildcard *.c) OBJ = $(SRC:.c=.o) all: $(TARGET) $(TARGET): $(OBJ) clean: rm -f $(TARGET) $(OBJ) .PHONY: all clean