Mercurial > vec
view test/Makefile @ 3:3c5545b1568f
*: much better alignment support & tests
author | Paper <paper@tflc.us> |
---|---|
date | Tue, 22 Oct 2024 23:27:15 -0400 |
parents | f12b5dd4e18c |
children |
line wrap: on
line source
CFLAGS += -std=c99 -I../include # binary files BINS = test-gcc test-generic test-host OBJS = $(BINS:=.o) .PHONY: all clean test all: $(BINS) # suppress the platform-dependent hardware stuff so we only have # GCC vector extensions test-gcc: CFLAGS += -DVEC_SUPPRESS_HW # also suppress GCC extensions, leaving only the defaults test-generic: CFLAGS += -DVEC_SUPPRESS_HW -DVEC_SUPPRESS_GCC $(OBJS): main.c $(CC) $(CFLAGS) -o $@ -c $^ $(BINS): %: %.o $(CC) $(LDFLAGS) -o $@ $^ clean: $(RM) $(BINS) $(OBJS) test: clean $(BINS) ./test-gcc ./test-generic ./test-host