diff options
| -rw-r--r-- | bench/Makefile | 34 | ||||
| -rw-r--r-- | bench/dist/bench.o | bin | 0 -> 800 bytes | |||
| -rw-r--r-- | bench/src/format/image/bmp.o | bin | 0 -> 3144 bytes | |||
| -rw-r--r-- | bench/src/format/image/png.o | bin | 0 -> 10944 bytes |
4 files changed, 34 insertions, 0 deletions
diff --git a/bench/Makefile b/bench/Makefile new file mode 100644 index 0000000..423b9d3 --- /dev/null +++ b/bench/Makefile @@ -0,0 +1,34 @@ +CC=gcc +CFLAGS=-Wall -Wextra -std=c11 -O2 \ + -I../include \ + -I../include/tinyff \ + -I../include/ext + +OUTDIR=dist +TARGET=$(OUTDIR)/bench +FORMATS ?= image + +COMMON_SRC := bench.c + +FORMAT_SRC := $(foreach fmt,$(FORMATS),\ + $(shell find ../src/format/$(fmt) -name "*.c" 2>/dev/null)) + +SRC := $(COMMON_SRC) $(FORMAT_SRC) + +OBJ := $(patsubst %.c,$(OUTDIR)/%.o,$(SRC)) + +LIB=../dist/libtinyff.a + +all: $(TARGET) + +$(TARGET): $(OBJ) + $(CC) $(CFLAGS) $^ $(LIB) -o $@ + +$(OUTDIR)/%.o: %.c + mkdir -p $(dir $@) + $(CC) $(CFLAGS) -c $< -o $@ + +clean: + rm -rf $(OUTDIR) + +.PHONY: all clean diff --git a/bench/dist/bench.o b/bench/dist/bench.o Binary files differnew file mode 100644 index 0000000..4335b89 --- /dev/null +++ b/bench/dist/bench.o diff --git a/bench/src/format/image/bmp.o b/bench/src/format/image/bmp.o Binary files differnew file mode 100644 index 0000000..f403f73 --- /dev/null +++ b/bench/src/format/image/bmp.o diff --git a/bench/src/format/image/png.o b/bench/src/format/image/png.o Binary files differnew file mode 100644 index 0000000..095cef8 --- /dev/null +++ b/bench/src/format/image/png.o |
