2016-09-09 07:01:30 +08:00
|
|
|
#
|
2023-11-11 03:02:00 +08:00
|
|
|
# To run the demos when linked with a shared library (default) ensure that
|
|
|
|
# libcrypto and libssl are on the library path. For example:
|
2016-09-09 07:01:30 +08:00
|
|
|
#
|
|
|
|
# LD_LIBRARY_PATH=../.. ./server-arg
|
|
|
|
|
2023-11-11 03:02:00 +08:00
|
|
|
TESTS = client-arg \
|
|
|
|
client-conf \
|
|
|
|
saccept \
|
|
|
|
sconnect \
|
|
|
|
server-arg \
|
|
|
|
server-cmod \
|
|
|
|
server-conf
|
2016-09-09 07:01:30 +08:00
|
|
|
|
2023-11-11 03:02:00 +08:00
|
|
|
CFLAGS = -I../../include -g -Wall
|
|
|
|
LDFLAGS = -L../..
|
|
|
|
LDLIBS = -lssl -lcrypto
|
2016-09-09 07:01:30 +08:00
|
|
|
|
2023-11-11 03:02:00 +08:00
|
|
|
all: $(TESTS)
|
2023-03-20 13:08:38 +08:00
|
|
|
|
2016-09-09 07:01:30 +08:00
|
|
|
client-arg: client-arg.o
|
|
|
|
client-conf: client-conf.o
|
|
|
|
saccept: saccept.o
|
|
|
|
sconnect: sconnect.o
|
|
|
|
server-arg: server-arg.o
|
|
|
|
server-cmod: server-cmod.o
|
|
|
|
server-conf: server-conf.o
|
|
|
|
|
2023-11-11 03:02:00 +08:00
|
|
|
$(TESTS):
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
|
2021-03-24 00:07:28 +08:00
|
|
|
|
|
|
|
clean:
|
2023-11-11 03:02:00 +08:00
|
|
|
$(RM) $(TESTS) *.o
|
|
|
|
|
|
|
|
test: all
|
|
|
|
@echo "\nBIO tests:"
|
|
|
|
@echo "skipped"
|