ifeq ($(N),)
$(error N must be set to struct size)
endif
ifeq ($(MODE),)
$(error MODE must be set to build mode: USE_LOKI_SOA or SYSTEM_ALLOC)
endif

.PHONY: all
all: test.out

test.out: test.cpp
	g++ -o $@ -Wall $^ -O3 -std=c++11 -DDATA_SIZE=$(N) -D$(MODE) -lloki -lrt
