test-buffer-for-udp/Makefile

21 lines
393 B
Makefile
Raw Permalink Normal View History

2023-07-25 07:56:27 +00:00
CC=gcc
CC_OPTIONS=-shared-libgcc
CLIENT_SOURCE=src/client.c
SERVER_SOURCE=src/server.c src/myutil.c
.PHONY: all
all: bin/client bin/server
.PHONY: clean
clean:
rm -r bin
bin/client: $(CLIENT_SOURCE)
[[ -d bin ]] || mkdir bin
$(CC) $(CC_OPTIONS) -o bin/client $(CLIENT_SOURCE)
bin/server: $(SERVER_SOURCE)
[[ -d bin ]] || mkdir bin
$(CC) $(CC_OPTIONS) -o bin/server $(SERVER_SOURCE)