LIBS= -lssl -lcrypto -lpthread
CC= gcc

###### TARGETS

all: client server

client: reentrant.c common.c client.c
	${CC} -ggdb ${LIBS} -o $@ $>

server: reentrant.c common.c server.c
	${CC} -ggdb ${LIBS} -o $@ $>

### rootCA.pem

rootCAkey.pem:
	openssl genrsa -out $@ 1024

rootCAreq.pem: rootCAkey.pem
	openssl req -sha1 -out $@ -key $>



clean:
	rm -rf client server
