4 uname_m := $(shell uname -m)
5 ifeq ($(uname_m),armv7l)
6 CFLAGS=-O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -lrt
8 ifeq ($(uname_m),armv6l)
9 CFLAGS=-O3 -march=armv6 -mfpu=vfp -mfloat-abi=hard -lrt
18 $(C) -c -o $@ $< $(CFLAGS)
20 one_round_light.o: one_round_light.cpp
21 $(CXX) -c -o $@ $< $(CFLAGS)
23 one_round_light_v2.o: one_round_light_v2.cpp
24 $(CXX) -c -o $@ $< $(CFLAGS)
26 one_round_light_auth.o: one_round_light_auth.cpp
27 $(CXX) -c -o $@ $< $(CFLAGS)
31 one_round_light: pixmap_io.o one_round_light.o
32 $(CXX) -o $@ $^ $(CFLAGS)
34 one_round_light_v2: pixmap_io.o one_round_light_v2.o
35 $(CXX) -o $@ $^ $(CFLAGS)
38 one_round_light_auth: pixmap_io.o one_round_light_auth.o
39 $(CXX) -fopenmp -o $@ $^ $(CFLAGS)
43 rm -rf *.o one_round_light one_round_light_v2 one_round_light_auth