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

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