diff options
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 $@ |