]> AND Private Git Repository - Cipher_code.git/blob - OneRoundIoT/OneRound/Makefile
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
add
[Cipher_code.git] / OneRoundIoT / OneRound / Makefile
1 CXX=g++
2 C=gcc
3
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`
7 else
8 ifeq ($(uname_m),armv6l)
9 CFLAGS=-O3   -march=armv6 -mfpu=vfp -mfloat-abi=hard -lrt `pkg-config --cflags --libs glib-2.0`
10 else
11 CFLAGS=-O3 `pkg-config --cflags --libs glib-2.0`
12 endif
13 endif
14
15
16
17 %.o: %.c 
18         $(C) -c -o $@ $< $(CFLAGS)
19
20 one_round_new.o: one_round_new.cpp 
21         $(CXX) -c -o $@ $< $(CFLAGS)
22
23 one_round_new3.o: one_round_new3.cpp 
24         $(CXX) -c -o $@ $< $(CFLAGS)
25
26 one_round_new4.o: one_round_new4.cpp 
27         $(CXX) -c -o $@ $< $(CFLAGS)
28
29
30 one_round_steph.o: one_round_steph.cpp 
31         $(CXX) -c -o $@ $< $(CFLAGS)
32
33 one_round_auth.o: one_round_auth.cpp 
34         $(CXX) -c -o $@ $< $(CFLAGS)
35
36
37 one_round_hash.o: one_round_hash.cpp 
38         $(CXX) -c -o $@ $< $(CFLAGS)
39
40 one_round_hash_new.o: one_round_hash_new.cpp 
41         $(CXX) -c -o $@ $< $(CFLAGS)
42
43 one_round_hash_new2.o: one_round_hash_new2.cpp 
44         $(CXX) -c -o $@ $< $(CFLAGS)
45
46 one_round_hash_new3.o: one_round_hash_new3.cpp 
47         $(CXX) -c -o $@ $< $(CFLAGS)
48
49
50 one_round_par2.o: one_round_par2.cpp 
51         $(CXX)  -fopenmp -c -o $@ $< $(CFLAGS)
52
53 one_round_new: pixmap_io.o one_round_new.o 
54         $(CXX)  -o $@ $^ $(CFLAGS)
55
56 one_round_new3: pixmap_io.o one_round_new3.o 
57         $(CXX)  -o $@ $^ $(CFLAGS)
58
59 one_round_new4: pixmap_io.o one_round_new4.o 
60         $(CXX)  -o $@ $^ $(CFLAGS)
61
62 one_round_steph: pixmap_io.o one_round_steph.o 
63         $(CXX)  -o $@ $^ $(CFLAGS)
64
65
66 one_round_par2: pixmap_io.o one_round_par2.o 
67         $(CXX) -fopenmp -o $@ $^ $(CFLAGS)
68
69
70 one_round_hash: pixmap_io.o one_round_hash.o 
71         $(CXX)  -o $@ $^ $(CFLAGS)
72
73 one_round_hash_new: pixmap_io.o one_round_hash_new.o 
74         $(CXX)  -o $@ $^ $(CFLAGS)
75
76 one_round_hash_new2: pixmap_io.o one_round_hash_new2.o 
77         $(CXX)  -o $@ $^ $(CFLAGS)
78
79 one_round_hash_new3: pixmap_io.o one_round_hash_new3.o 
80         $(CXX)  -o $@ $^ $(CFLAGS)
81
82 rc4_hash: pixmap_io.o rc4_hash.o 
83         $(CXX)  -o $@ $^ $(CFLAGS)
84
85 rc4_hash2: pixmap_io.o rc4_hash2.o 
86         $(CXX)  -o $@ $^ $(CFLAGS)
87
88 rc4_hash3: pixmap_io.o rc4_hash3.o 
89         $(CXX)  -o $@ $^ $(CFLAGS)
90
91 one_round_auth: pixmap_io.o one_round_auth.o 
92         $(CXX)  -o $@ $^ $(CFLAGS)
93
94 clean:
95         rm -rf *.o one_round_new one_round_new4 one_round_hash one_round_par2 one_round_hash_new  rc4_hash rc4_hash2  rc4_hash3 one_round_steph