CFLAGS = -D_POSIX_C_SOURCE=200809L -O2 -Wall SRCS = $(sort $(wildcard *.c)) OBJS = $(SRCS:.c=.o) all: latency clean: rm -f latency rm -f $(OBJS) latency: $(OBJS) $(CC) $(CFLAGS) $^ -o $@ %.o: %.c $(CC) $(CFLAGS) -c $< -o $@ .PHONY: all clean