-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
34 lines (25 loc) · 829 Bytes
/
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
#Location of the openssl version we are using. May not be the same as the system
#version
OSSLDIR= /usr/local/ssl
CC= gcc
CFLAGS= -I$(OSSLDIR)/include -L$(OSSLDIR)/lib -g -lcrypto -lssl
EXE= devel-tls/get-start/simpleclient devel-tls/get-start/simpleclient2 \
devel-tls/get-start/simpleserver
BOOKELEMS= ossl-dev-book.tex \
introduction/getting/getting.tex \
devel-tls/understand-tls/understand-tls.tex \
devel-tls/get-start/get-start.tex \
devel-tls/ciphersuites/ciphersuites.tex
all: ossl-dev-book.pdf
$(EXE): %: %.c
$(CC) -o $@ $< $(CFLAGS)
#We run this twice to ensure that any references etc are updated
ossl-dev-book.pdf: $(BOOKELEMS) $(EXE)
pdflatex ossl-dev-book
pdflatex ossl-dev-book
code: $(EXE)
clean-code:
rm $(EXE)
clean-book:
rm ossl-dev-book.pdf ossl-dev-book.log
clean: clean-book clean-code