ifdef OPENSSL
INCLUDE = -I/mnt/hgfs/SoftDev/scdnnode/src/include/openssl/1.1.1i/centos_x64 -I/mnt/hgfs/SoftDev/scdnnode/src/include -I/mnt/hgfs/SoftDev/scdnnode/src/include/event2 -I/mnt/hgfs/SoftDev/nghttp2-1.47.0/third-party
LIBS = -L/mnt/hgfs/SoftDev/scdnnode/src/libs/linux/centos7 -lssl_1.1.1i -lcrypto_1.1.1i -levent -levent_openssl -ldl -lnghttp2 -lpthread
else
INCLUDE = -I/mnt/hgfs/SoftDev/scdnnode/src/include/boringssl -I/mnt/hgfs/SoftDev/scdnnode/src/include -I/mnt/hgfs/SoftDev/scdnnode/src/include/event2 -I/mnt/hgfs/SoftDev/nghttp2-1.47.0/third-party
LIBS = -L/mnt/hgfs/SoftDev/scdnnode/src/libs/linux/centos7 -lssl_br -lcrypto_br -levent -levent_openssl -ldl -lnghttp2 -lpthread
endif
XXFLAG = -g $(INCLUDE) $(LIBS) -DHAVE_UNISTD_H -DHAVE_FCNTL_H
all: server client

server: server.c
	gcc $^ $(XXFLAG) -o $@

client: client.c
	gcc $^ url_parser.c $(XXFLAG) -o $@

.PHONY: clean
clean:
	rm client server -f
