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_new.o: one_round_new.cpp
21 $(CXX) -c -o $@ $< $(CFLAGS)
24 one_round_hash.o: one_round_hash.cpp
25 $(CXX) -c -o $@ $< $(CFLAGS)
27 one_round_hash_new.o: one_round_hash_new.cpp
28 $(CXX) -c -o $@ $< $(CFLAGS)
32 one_round_par2.o: one_round_par2.cpp
33 $(CXX) -fopenmp -c -o $@ $< $(CFLAGS)
35 one_round_new: pixmap_io.o one_round_new.o
36 $(CXX) -o $@ $^ $(CFLAGS)
39 one_round_par2: pixmap_io.o one_round_par2.o
40 $(CXX) -fopenmp -o $@ $^ $(CFLAGS)
43 one_round_hash: pixmap_io.o one_round_hash.o
44 $(CXX) -o $@ $^ $(CFLAGS)
46 one_round_hash_new: pixmap_io.o one_round_hash_new.o
47 $(CXX) -o $@ $^ $(CFLAGS)
50 rm -rf *.o one_round_new one_round_hash one_round_par2 one_round_hash_new