21 lines
393 B
Makefile
21 lines
393 B
Makefile
|
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)
|