From 24da062c6f75a3fa229d74359150f653b63d3c04 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sun, 31 Jan 2016 16:29:03 -0600 Subject: initial commit --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d091e68 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +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 -- cgit v1.2.3