Mercurial > vec
diff 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 |
line wrap: on
line diff
--- a/test/Makefile.template Tue Apr 29 16:54:13 2025 -0400 +++ b/test/Makefile.template Wed Apr 30 18:36:38 2025 -0400 @@ -1,12 +1,14 @@ CPPFLAGS += -g -O2 -I../include -Wall CFLAGS += $(CPPFLAGS) -std=c99 CXXFLAGS += $(CPPFLAGS) -std=c++11 +LDADD += -lm HEADERS = ../include/vec/vec.h \ ../include/vec/cpu.h \ ../include/vec/mem.h \ ../include/vec/defs.h \ ../include/vec/impl/ppc/altivec.h \ + ../include/vec/impl/ppc/vsx.h \ ../include/vec/impl/x86/avx2.h \ ../include/vec/impl/x86/avx512f.h \ ../include/vec/impl/x86/avx512bw.h \ @@ -38,13 +40,13 @@ $(CXX) $(CXXFLAGS) -c -o $@ $< test-generic: test.o test_benchmark_simple.o test_benchmark_vec.o - $(CC) $(LDFLAGS) -o $@ $^ + $(CC) $(LDFLAGS) -o $@ $^ $(LDADD) test-host: test.o test_benchmark_simple.o test_benchmark_vec.o - $(CC) $(LDFLAGS) -o $@ $^ + $(CC) $(LDFLAGS) -o $@ $^ $(LDADD) test-cxx: test-cxx.o $(HEADERS) - $(CXX) $(LDFLAGS) -o $@ $< + $(CXX) $(LDFLAGS) -o $@ $< $(LDADD) clean: $(RM) $(BINS) $(OBJS)