-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (33 loc) · 983 Bytes
/
Makefile
File metadata and controls
48 lines (33 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
CC=gcc
CFLAGS=-c -Wall
all: aes signature
aes: aes.o aes_client.o aes_cbc.o aes_cmac.o
$(CC) aes_client.o aes.o aes_cbc.o aes_cmac.o -o aes_client
aes.o: aes.c aes.h
$(CC) $(CFLAGS) aes.c
aes_client.o: aes_client.c
$(CC) $(CFLAGS) aes_client.c
aes_cbc.o: aes_cbc.c aes_cbc.h
$(CC) $(CFLAGS) aes_cbc.c
clean:
rm *.o
rm aes_client
rm signature_client
aes_cmac.o: aes_cmac.c aes_cmac.h
$(CC) $(CFLAGS) aes_cmac.c
signature: sha256.o signature_client.o hmac.o bignum.o rsa.o sign.o
$(CC) sha256.o signature_client.o hmac.o rsa.o bignum.o sign.o -o signature_client
sha256.o: sha256.h sha256.c
$(CC) $(CFLAGS) sha256.c
hmac.o: hmac.c hmac.h
$(CC) $(CFLAGS) hmac.c
bignum.o: bignum.c bignum.h
$(CC) $(CFLAGS) bignum.c
signature_client.o: signature_client.c
$(CC) $(CFLAGS) signature_client.c
bignum_test: bignum_test.c bignum.o
$(CC) bignum_test.c bignum.o -o bignum_test
ras.o: rsa.c rsa.h
$(CC) $(CFLAGS) rsa.c
sign.o: sign.c sign.h
$(CC) $(CFLAGS) sign.c