xref: /openssl/demos/bio/Makefile (revision 86db9588)
1#
2# To run the demos when linked with a shared library (default) ensure that
3# libcrypto and libssl are on the library path. For example:
4#
5#    LD_LIBRARY_PATH=../.. ./server-arg
6
7TESTS = client-arg \
8        client-conf \
9        saccept \
10        sconnect \
11        server-arg \
12        server-cmod \
13        server-conf
14
15CFLAGS  = -I../../include -g -Wall
16LDFLAGS = -L../..
17LDLIBS  = -lssl -lcrypto
18
19all: $(TESTS)
20
21client-arg: client-arg.o
22client-conf: client-conf.o
23saccept: saccept.o
24sconnect: sconnect.o
25server-arg: server-arg.o
26server-cmod: server-cmod.o
27server-conf: server-conf.o
28
29$(TESTS):
30	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
31
32clean:
33	$(RM) $(TESTS) *.o
34
35test: all
36	@echo "\nBIO tests:"
37	@echo "skipped"
38