31 lines
534 B
Makefile
31 lines
534 B
Makefile
|
|
CC=gcc
|
|
|
|
PROGRAM=sample_client sample_server
|
|
|
|
LIBSSL_LIBS=-lsasl2
|
|
|
|
FINAL_LIBS+=$(LIBSSL_LIBS)
|
|
|
|
FINAL_FLAG+=-Wimplicit-function-declaration $(FINAL_LIBS)
|
|
|
|
all: $(PROGRAM)
|
|
@echo ""
|
|
@echo "build seccess!"
|
|
@echo ""
|
|
|
|
sample_client:sample-client.c
|
|
$(CC) -g -c sample-client.c $(FINAL_FLAG)
|
|
$(CC) -g -o sample_client sample-client.o $(FINAL_FLAG)
|
|
rm *.o
|
|
|
|
sample_server:sample-server.c
|
|
$(CC) -g -c sample-server.c $(FINAL_FLAG)
|
|
$(CC) -g -o sample_server sample-server.o $(FINAL_FLAG)
|
|
rm *.o
|
|
|
|
clean:
|
|
rm sample_server sample_client
|
|
|
|
|