Mercurial > vec
annotate test/Makefile.template @ 39:f9ca85d2f14c
*: rearrange some things; add avx512bw support
author | Paper <paper@tflc.us> |
---|---|
date | Sat, 26 Apr 2025 15:31:39 -0400 |
parents | 4b5a557aa64f |
children | 55cadb1fac4b |
rev | line source |
---|---|
37
4b5a557aa64f
*: turns out extern is a practical joke. rewrite to be always inline again
Paper <paper@tflc.us>
parents:
36
diff
changeset
|
1 CPPFLAGS += -O2 -I../include -Wall -Wpedantic -Werror=strict-aliasing |
36 | 2 CFLAGS += $(CPPFLAGS) -std=c99 |
3 CXXFLAGS += $(CPPFLAGS) -std=c++11 | |
4 | |
5 HEADERS = ../include/vec/vec.h \ | |
39
f9ca85d2f14c
*: rearrange some things; add avx512bw support
Paper <paper@tflc.us>
parents:
37
diff
changeset
|
6 ../include/vec/cpu.h \ |
f9ca85d2f14c
*: rearrange some things; add avx512bw support
Paper <paper@tflc.us>
parents:
37
diff
changeset
|
7 ../include/vec/mem.h \ |
f9ca85d2f14c
*: rearrange some things; add avx512bw support
Paper <paper@tflc.us>
parents:
37
diff
changeset
|
8 ../include/vec/defs.h \ |
36 | 9 ../include/vec/impl/ppc/altivec.h \ |
10 ../include/vec/impl/x86/avx2.h \ | |
11 ../include/vec/impl/x86/avx512f.h \ | |
39
f9ca85d2f14c
*: rearrange some things; add avx512bw support
Paper <paper@tflc.us>
parents:
37
diff
changeset
|
12 ../include/vec/impl/x86/avx512bw.h \ |
36 | 13 ../include/vec/impl/x86/mmx.h \ |
14 ../include/vec/impl/x86/sse2.h \ | |
39
f9ca85d2f14c
*: rearrange some things; add avx512bw support
Paper <paper@tflc.us>
parents:
37
diff
changeset
|
15 ../include/vec/impl/x86/sse3.h \ |
36 | 16 ../include/vec/impl/x86/sse41.h \ |
39
f9ca85d2f14c
*: rearrange some things; add avx512bw support
Paper <paper@tflc.us>
parents:
37
diff
changeset
|
17 ../include/vec/impl/x86/sse42.h \ |
36 | 18 ../include/vec/impl/generic.h \ |
19 test_align.h \ | |
20 test_arith.h \ | |
21 test_compare.h \ | |
37
4b5a557aa64f
*: turns out extern is a practical joke. rewrite to be always inline again
Paper <paper@tflc.us>
parents:
36
diff
changeset
|
22 test_shift.h \ |
39
f9ca85d2f14c
*: rearrange some things; add avx512bw support
Paper <paper@tflc.us>
parents:
37
diff
changeset
|
23 test_benchmark.h \ |
f9ca85d2f14c
*: rearrange some things; add avx512bw support
Paper <paper@tflc.us>
parents:
37
diff
changeset
|
24 test_benchmark_vec.c \ |
f9ca85d2f14c
*: rearrange some things; add avx512bw support
Paper <paper@tflc.us>
parents:
37
diff
changeset
|
25 test_benchmark_simple.c |
36 | 26 BINS = test-generic test-host test-cxx |
37
4b5a557aa64f
*: turns out extern is a practical joke. rewrite to be always inline again
Paper <paper@tflc.us>
parents:
36
diff
changeset
|
27 OBJS = test.o test-cxx.o test_benchmark_simple.o test_benchmark_vec.o |
36 | 28 |
29 .PHONY: all clean test | |
30 | |
31 all: $(BINS) | |
32 | |
37
4b5a557aa64f
*: turns out extern is a practical joke. rewrite to be always inline again
Paper <paper@tflc.us>
parents:
36
diff
changeset
|
33 test.o: test.c test_benchmark_simple.o test_benchmark_vec.o $(HEADERS) |
36 | 34 $(CC) $(CFLAGS) -c -o $@ $< |
35 | |
36 test-cxx.o: test.cc | |
37 $(CXX) $(CXXFLAGS) -c -o $@ $< | |
38 | |
37
4b5a557aa64f
*: turns out extern is a practical joke. rewrite to be always inline again
Paper <paper@tflc.us>
parents:
36
diff
changeset
|
39 test-generic: test.o test_benchmark_simple.o test_benchmark_vec.o |
36 | 40 $(CC) $(LDFLAGS) -o $@ $^ |
41 | |
37
4b5a557aa64f
*: turns out extern is a practical joke. rewrite to be always inline again
Paper <paper@tflc.us>
parents:
36
diff
changeset
|
42 test-host: test.o test_benchmark_simple.o test_benchmark_vec.o |
36 | 43 $(CC) $(LDFLAGS) -o $@ $^ |
44 | |
45 test-cxx: test-cxx.o $(HEADERS) | |
46 $(CXX) $(LDFLAGS) -o $@ $< | |
47 | |
48 clean: | |
49 $(RM) $(BINS) $(OBJS) | |
50 | |
51 test: clean $(BINS) | |
52 ./test-generic | |
53 ./test-host | |
54 ./test-cxx |