2022-03-15 14:34:40 +00:00
|
|
|
|
|
|
|
CC=gcc
|
|
|
|
|
2022-07-16 08:28:26 +00:00
|
|
|
PROGRAM=sample_client sample_server
|
2022-03-15 14:34:40 +00:00
|
|
|
|
|
|
|
LIBSSL_LIBS=-lsasl2
|
|
|
|
|
|
|
|
FINAL_LIBS+=$(LIBSSL_LIBS)
|
|
|
|
|
|
|
|
FINAL_FLAG+=-Wimplicit-function-declaration $(FINAL_LIBS)
|
|
|
|
|
|
|
|
all: $(PROGRAM)
|
|
|
|
@echo ""
|
|
|
|
@echo "build seccess!"
|
|
|
|
@echo ""
|
|
|
|
|
2022-07-16 08:28:26 +00:00
|
|
|
sample_client:sample-client.c
|
2022-03-20 14:14:30 +00:00
|
|
|
$(CC) -g -c sample-client.c $(FINAL_FLAG)
|
2022-07-16 08:28:26 +00:00
|
|
|
$(CC) -g -o sample_client sample-client.o $(FINAL_FLAG)
|
2022-03-20 14:14:30 +00:00
|
|
|
rm *.o
|
2022-03-15 14:34:40 +00:00
|
|
|
|
2022-07-16 08:28:26 +00:00
|
|
|
sample_server:sample-server.c
|
2022-03-20 14:14:30 +00:00
|
|
|
$(CC) -g -c sample-server.c $(FINAL_FLAG)
|
2022-07-16 08:28:26 +00:00
|
|
|
$(CC) -g -o sample_server sample-server.o $(FINAL_FLAG)
|
2022-03-20 14:14:30 +00:00
|
|
|
rm *.o
|
2022-03-15 14:34:40 +00:00
|
|
|
|
|
|
|
clean:
|
2022-07-16 08:28:26 +00:00
|
|
|
rm sample_server sample_client
|
2022-03-15 14:34:40 +00:00
|
|
|
|
|
|
|
|