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 `pkg-config --cflags --libs glib-2.0`
8 ifeq ($(uname_m),armv6l)
9 CFLAGS=-O3 -march=armv6 -mfpu=vfp -mfloat-abi=hard -lrt `pkg-config --cflags --libs glib-2.0`
11 CFLAGS=-O3 `pkg-config --cflags --libs glib-2.0`
18 $(C) -c -o $@ $< $(CFLAGS)
20 one_round_new.o: one_round_new.cpp
21 $(CXX) -c -o $@ $< $(CFLAGS)
23 one_round_new3.o: one_round_new3.cpp
24 $(CXX) -c -o $@ $< $(CFLAGS)
26 one_round_steph.o: one_round_steph.cpp
27 $(CXX) -c -o $@ $< $(CFLAGS)
29 one_round_auth.o: one_round_auth.cpp
30 $(CXX) -c -o $@ $< $(CFLAGS)
33 one_round_hash.o: one_round_hash.cpp
34 $(CXX) -c -o $@ $< $(CFLAGS)
36 one_round_hash_new.o: one_round_hash_new.cpp
37 $(CXX) -c -o $@ $< $(CFLAGS)
39 one_round_hash_new2.o: one_round_hash_new2.cpp
40 $(CXX) -c -o $@ $< $(CFLAGS)
42 one_round_hash_new3.o: one_round_hash_new3.cpp
43 $(CXX) -c -o $@ $< $(CFLAGS)
46 one_round_par2.o: one_round_par2.cpp
47 $(CXX) -fopenmp -c -o $@ $< $(CFLAGS)
49 one_round_new: pixmap_io.o one_round_new.o
50 $(CXX) -o $@ $^ $(CFLAGS)
52 one_round_new3: pixmap_io.o one_round_new3.o
53 $(CXX) -o $@ $^ $(CFLAGS)
55 one_round_steph: pixmap_io.o one_round_steph.o
56 $(CXX) -o $@ $^ $(CFLAGS)
59 one_round_par2: pixmap_io.o one_round_par2.o
60 $(CXX) -fopenmp -o $@ $^ $(CFLAGS)
63 one_round_hash: pixmap_io.o one_round_hash.o
64 $(CXX) -o $@ $^ $(CFLAGS)
66 one_round_hash_new: pixmap_io.o one_round_hash_new.o
67 $(CXX) -o $@ $^ $(CFLAGS)
69 one_round_hash_new2: pixmap_io.o one_round_hash_new2.o
70 $(CXX) -o $@ $^ $(CFLAGS)
72 one_round_hash_new3: pixmap_io.o one_round_hash_new3.o
73 $(CXX) -o $@ $^ $(CFLAGS)
75 rc4_hash: pixmap_io.o rc4_hash.o
76 $(CXX) -o $@ $^ $(CFLAGS)
78 one_round_auth: pixmap_io.o one_round_auth.o
79 $(CXX) -o $@ $^ $(CFLAGS)
82 rm -rf *.o one_round_new one_round_hash one_round_par2 one_round_hash_new one_round_steph