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

Private GIT Repository
Merge branch 'master' of ssh://info.iut-bm.univ-fcomte.fr/Cipher_code
[Cipher_code.git] / OneRoundIoT / openssl / Makefile
1 C=gcc
2 CFLAGS= -I /usr/include/openssl/ -lcrypto -O3 -std=c99
3 OBJ =    pixmap_io.o openssl_evp.o
4 OBJ2 =    pixmap_io.o openssl_evp_cmac.o
5 OBJ3 =    pixmap_io.o openssl_evp_ccm.o
6 OBJ4 =    pixmap_io.o aesccm.o 
7 OBJ5 =    pixmap_io.o openssl_evp_gcm.o
8 OBJ6 =    pixmap_io.o openssl_evp_hmac.o
9 OBJ7 =    pixmap_io.o openssl_evp_ocb.o
10 OBJ8 =    pixmap_io.o openssl_chacha20_poly1305.o
11 OBJ9 =    pixmap_io.o openssl_chacha20_poly1305_v2.o
12
13 openssl_evp: $(OBJ)
14         $(C) -o $@ $^ $(CFLAGS)
15
16 openssl_evp_cmac: $(OBJ2)
17         $(C) -o $@ $^ $(CFLAGS)
18
19 openssl_evp_ccm: $(OBJ3)
20         $(C) -o $@ $^ $(CFLAGS)
21
22 aesccm: $(OBJ4)
23         $(C) -o $@ $^ $(CFLAGS)
24
25
26 openssl_evp_gcm: $(OBJ5)
27         $(C) -o $@ $^ $(CFLAGS)
28
29 openssl_evp_hmac: $(OBJ6)
30         $(C) -o $@ $^ $(CFLAGS)
31
32 openssl_evp_ocb: $(OBJ7)
33         $(C) -o $@ $^ $(CFLAGS)
34
35 openssl_evp_chacha20_poly1305: $(OBJ7)
36         $(C) -o $@ $^ $(CFLAGS)
37
38 openssl_evp_chacha20_poly1305_v2: $(OBJ7)
39         $(C) -o $@ $^ $(CFLAGS)
40
41
42 %.o: %.c 
43         $(C) -c -o $@ $<  -O3
44
45
46 clean:
47         rm -rf $(OBJ)  openssl_evp openssl_evp_cmac openssl_evp_ccm openssl_evp_ocb  openssl_evp_chacha20_poly1305_v2  openssl_evp_chacha20_poly1305
48