c46990b13b
Two example programs one for command line argument processing and
one for configuration file processing.
(cherry picked from commit 3646578ae7
)
22 lines
442 B
Makefile
22 lines
442 B
Makefile
CC=cc
|
|
CFLAGS= -g -I../../include
|
|
LIBS= -L../.. ../../libssl.a ../../libcrypto.a -ldl
|
|
EXAMPLES=saccept sconnect client-arg client-conf
|
|
|
|
all: $(EXAMPLES)
|
|
|
|
saccept: saccept.o
|
|
$(CC) -o saccept saccept.o $(LIBS)
|
|
|
|
sconnect: sconnect.o
|
|
$(CC) -o sconnect sconnect.o $(LIBS)
|
|
|
|
client-arg: client-arg.o
|
|
$(CC) -o client-arg client-arg.o $(LIBS)
|
|
|
|
client-conf: client-conf.o
|
|
$(CC) -o client-conf client-conf.o $(LIBS)
|
|
|
|
clean:
|
|
rm -f $(EXAMPLES) *.o
|
|
|