diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2016-01-31 16:29:03 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2016-01-31 16:29:03 -0600 |
commit | 24da062c6f75a3fa229d74359150f653b63d3c04 (patch) | |
tree | a92a3e6cea31c18f004ffc028aa689151f5d93a3 /Makefile |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
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 |