diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2014-06-20 22:55:59 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2014-06-20 22:55:59 -0500 |
commit | 5fa0d5023f0e2935f99b04422f3a338d77264107 (patch) | |
tree | d3ce357870a0a816cbda5add42ea14f0fce94053 /Makefile |
Initial commit: benchmark musl's qsort
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6271d7c --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CFLAGS = -O3 -pipe -std=c99 -D_XOPEN_SOURCE=500 +LDFLAGS = + +SRCS = $(sort $(wildcard *.c)) +OBJS = $(SRCS:.c=.o) +BINS = bench + +.PHONY: all clean + +all: $(BINS) + +clean: + rm -f $(BINS) + rm -f $(OBJS) + +bench: $(OBJS) + $(CC) $(LDFLAGS) $^ -o $@ + +%.o: %.c + $(CC) $(CFLAGS) -c $< -o $@ |