forked from ssvb/tinymembench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 914 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
all: tinymembench
ifdef WINDIR
CC = gcc
endif
tinymembench: main.c util.o util.h asm-opt.h version.h asm-opt.o x86-sse2.o x86-avx2.o x86-avx512.o arm-neon.o mips-32.o aarch64-asm.o
${CC} -O2 ${CFLAGS} -o tinymembench main.c util.o asm-opt.o x86-sse2.o x86-avx2.o x86-avx512.o arm-neon.o mips-32.o aarch64-asm.o -lm
util.o: util.c util.h
${CC} -O2 ${CFLAGS} -c util.c
asm-opt.o: asm-opt.c asm-opt.h x86-sse2.h x86-avx2.h arm-neon.h mips-32.h
${CC} -O2 ${CFLAGS} -c asm-opt.c
x86-sse2.o: x86-sse2.S
${CC} -O2 ${CFLAGS} -c x86-sse2.S
x86-avx2.o: x86-avx2.S
${CC} -O2 ${CFLAGS} -c x86-avx2.S
x86-avx512.o: x86-avx512.S
${CC} -O2 ${CFLAGS} -c x86-avx512.S
arm-neon.o: arm-neon.S
${CC} -O2 ${CFLAGS} -c arm-neon.S
aarch64-asm.o: aarch64-asm.S
${CC} -O2 ${CFLAGS} -c aarch64-asm.S
mips-32.o: mips-32.S
${CC} -O2 ${CFLAGS} -c mips-32.S
clean:
-rm -f tinymembench
-rm -f tinymembench.exe
-rm -f *.o