comparison test/Makefile.template @ 45:7955bed1d169 default tip

*: add preliminary floating point support no x86 intrinsics just yet, but I did add altivec since it's (arguably) the simplest :)
author Paper <paper@tflc.us>
date Wed, 30 Apr 2025 18:36:38 -0400
parents c6e0df09b86f
children
comparison
equal deleted inserted replaced
44:b0a3f0248ecc 45:7955bed1d169
1 CPPFLAGS += -g -O2 -I../include -Wall 1 CPPFLAGS += -g -O2 -I../include -Wall
2 CFLAGS += $(CPPFLAGS) -std=c99 2 CFLAGS += $(CPPFLAGS) -std=c99
3 CXXFLAGS += $(CPPFLAGS) -std=c++11 3 CXXFLAGS += $(CPPFLAGS) -std=c++11
4 LDADD += -lm
4 5
5 HEADERS = ../include/vec/vec.h \ 6 HEADERS = ../include/vec/vec.h \
6 ../include/vec/cpu.h \ 7 ../include/vec/cpu.h \
7 ../include/vec/mem.h \ 8 ../include/vec/mem.h \
8 ../include/vec/defs.h \ 9 ../include/vec/defs.h \
9 ../include/vec/impl/ppc/altivec.h \ 10 ../include/vec/impl/ppc/altivec.h \
11 ../include/vec/impl/ppc/vsx.h \
10 ../include/vec/impl/x86/avx2.h \ 12 ../include/vec/impl/x86/avx2.h \
11 ../include/vec/impl/x86/avx512f.h \ 13 ../include/vec/impl/x86/avx512f.h \
12 ../include/vec/impl/x86/avx512bw.h \ 14 ../include/vec/impl/x86/avx512bw.h \
13 ../include/vec/impl/x86/mmx.h \ 15 ../include/vec/impl/x86/mmx.h \
14 ../include/vec/impl/x86/sse2.h \ 16 ../include/vec/impl/x86/sse2.h \
36 38
37 test-cxx.o: test.cc 39 test-cxx.o: test.cc
38 $(CXX) $(CXXFLAGS) -c -o $@ $< 40 $(CXX) $(CXXFLAGS) -c -o $@ $<
39 41
40 test-generic: test.o test_benchmark_simple.o test_benchmark_vec.o 42 test-generic: test.o test_benchmark_simple.o test_benchmark_vec.o
41 $(CC) $(LDFLAGS) -o $@ $^ 43 $(CC) $(LDFLAGS) -o $@ $^ $(LDADD)
42 44
43 test-host: test.o test_benchmark_simple.o test_benchmark_vec.o 45 test-host: test.o test_benchmark_simple.o test_benchmark_vec.o
44 $(CC) $(LDFLAGS) -o $@ $^ 46 $(CC) $(LDFLAGS) -o $@ $^ $(LDADD)
45 47
46 test-cxx: test-cxx.o $(HEADERS) 48 test-cxx: test-cxx.o $(HEADERS)
47 $(CXX) $(LDFLAGS) -o $@ $< 49 $(CXX) $(LDFLAGS) -o $@ $< $(LDADD)
48 50
49 clean: 51 clean:
50 $(RM) $(BINS) $(OBJS) 52 $(RM) $(BINS) $(OBJS)
51 53
52 test: clean $(BINS) 54 test: clean $(BINS)