Mercurial > vec
view test/Makefile.template @ 15:e05c257c6a23
*: huge refactor, add many new x86 intrinsics and the like
ALSO!! now intrinsics are enabled at runtime, depending on what is
detected. altivec *should* still work but I only tested compiling
it.
the major version has been updated to 2.0 for this...
author | Paper <paper@tflc.us> |
---|---|
date | Wed, 20 Nov 2024 04:10:37 -0500 |
parents | |
children | 41dd962abdd1 |
line wrap: on
line source
CFLAGS += -g -O2 -std=c99 -I../include HEADERS = ../include/vec/vec.h \ ../include/vec/impl/ppc/altivec.h \ ../include/vec/impl/x86/avx2.h \ ../include/vec/impl/x86/avx512f.h \ ../include/vec/impl/x86/mmx.h \ ../include/vec/impl/x86/sse2.h \ ../include/vec/impl/x86/sse41.h \ ../include/vec/impl/cpu.h \ ../include/vec/impl/fallback.h \ ../include/vec/impl/generic.h BINS = test-generic test-host OBJS = vec-generic.o vec-host.o test.o .PHONY: all clean test all: $(BINS) vec-generic.o: ../src/vec.c $(CC) $(CFLAGS) -DVEC_SUPPRESS_HW=1 -c -o $@ $< vec-host.o: ../src/vec.c $(CC) $(CFLAGS) -c -o $@ $< test.o: test.c $(CC) $(CFLAGS) -c -o $@ $< test-generic: vec-generic.o test.o $(CC) $(LDFLAGS) -o $@ $^ test-host: vec-host.o test.o $(CC) $(LDFLAGS) -o $@ $^ clean: $(RM) $(BINS) $(OBJS) test: clean $(BINS) ./test-generic ./test-host