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

Private GIT Repository
new
[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
12 openssl_evp: $(OBJ)
13         $(C) -o $@ $^ $(CFLAGS)
14
15 openssl_evp_cmac: $(OBJ2)
16         $(C) -o $@ $^ $(CFLAGS)
17
18 openssl_evp_ccm: $(OBJ3)
19         $(C) -o $@ $^ $(CFLAGS)
20
21 aesccm: $(OBJ4)
22         $(C) -o $@ $^ $(CFLAGS)
23
24
25 openssl_evp_gcm: $(OBJ5)
26         $(C) -o $@ $^ $(CFLAGS)
27
28 openssl_evp_hmac: $(OBJ6)
29         $(C) -o $@ $^ $(CFLAGS)
30
31 openssl_evp_ocb: $(OBJ7)
32         $(C) -o $@ $^ $(CFLAGS)
33
34 openssl_evp_chacha20_poly1305: $(OBJ7)
35         $(C) -o $@ $^ $(CFLAGS)
36
37
38 %.o: %.c 
39         $(C) -c -o $@ $<  -O3
40
41
42 clean:
43         rm -rf $(OBJ)  openssl_evp openssl_evp_cmac openssl_evp_ccm openssl_evp_ocb
44