forked from alyyousuf7/openssl-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
94 lines (75 loc) · 1.98 KB
/
Makefile
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
CFLAGS = -g -I /usr/local/ssl/include
LDFLAGS = -L /usr/local/ssl/lib -lcrypto -ldl
all: clean
clean:
@echo "+ $@"
@rm -rf bin || true
@rm -rf *.der || true
@mkdir bin || true
all: bin/aes-encdec
bin/aes-encdec:
@echo "+ $@"
@$(CC) aes-encdec/main.c -o $@ $(CFLAGS) $(LDFLAGS)
all: bin/fips-selftest
bin/fips-selftest:
@echo "+ $@"
@$(CC) fips-selftest/main.c -o $@ $(CFLAGS) $(LDFLAGS)
all: bin/fips-mode-status
bin/fips-mode-status:
@echo "+ $@"
@$(CC) fips-mode-status/main.c -o $@ $(CFLAGS) $(LDFLAGS)
all: bin/fips-zerorize
bin/fips-zerorize:
@echo "+ $@"
@$(CC) fips-zerorize/main.c -o $@ $(CFLAGS) $(LDFLAGS)
all: bin/gen-ecdsa-key
bin/gen-ecdsa-key:
@echo "+ $@"
@$(CC) gen-ecdsa-key/main.c -o $@ $(CFLAGS) $(LDFLAGS)
all: bin/gen-ecdsa-sig
bin/gen-ecdsa-sig:
@echo "+ $@"
@$(CC) gen-ecdsa-sig/main.c -o $@ $(CFLAGS) $(LDFLAGS)
all: bin/gen-random-bytes
bin/gen-random-bytes:
@echo "+ $@"
@$(CC) gen-random-bytes/main.c -o $@ $(CFLAGS) $(LDFLAGS)
all: bin/gen-rsa-key
bin/gen-rsa-key:
@echo "+ $@"
@$(CC) gen-rsa-key/main.c -o $@ $(CFLAGS) $(LDFLAGS)
all: bin/gen-rsa-sig
bin/gen-rsa-sig:
@echo "+ $@"
@$(CC) gen-rsa-sig/main.c -o $@ $(CFLAGS) $(LDFLAGS)
all: bin/hmac
bin/hmac:
@echo "+ $@"
@$(CC) hmac/main.c -o $@ -std=c99 $(CFLAGS) $(LDFLAGS)
all: bin/initialize-fips
bin/initialize-fips:
@echo "+ $@"
@$(CC) initialize-fips/main.c -o $@ $(CFLAGS) $(LDFLAGS)
all: bin/shs
bin/shs: $(wildcard shs/*.c)
@echo "+ $@"
@$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
all: bin/sym-key-gen
bin/sym-key-gen:
@echo "+ $@"
@$(CC) sym-key-gen/main.c -o $@ $(CFLAGS) $(LDFLAGS)
all: bin/ver-ecdsa-sig
bin/ver-ecdsa-sig:
@echo "+ $@"
@$(CC) ver-ecdsa-sig/main.c -o $@ $(CFLAGS) $(LDFLAGS)
all: bin/ver-rsa-sig
bin/ver-rsa-sig:
@echo "+ $@"
@$(CC) ver-rsa-sig/main.c -o $@ $(CFLAGS) $(LDFLAGS)
shell: image
@echo "+ $@"
docker run -it --rm --privileged -v ${PWD}:/root/src openssl:fips
image: clean
@echo "+ $@"
@docker build --rm -t openssl:fips .
.PHONY: all clean shell image