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