HW12/Makefile
ubuntu201711081 d5f1fafd0b add base
2020-12-03 23:06:26 +00:00

18 lines
354 B
Makefile

CC = gcc
CFLAGS = -lm -Wall -O2
all:
make client
make server
socket_wrapper.o: socket_wrapper.c socket_wrapper.h
$(CC) -c socket_wrapper.c -o socket_wrapper.o $(CFLAGS)
client: socket_wrapper.o client.c
$(CC) -o client client.c socket_wrapper.o $(CFLAGS)
server:
$(CC) -o server server.c socket_wrapper.o $(CFLAGS)
clean:
rm *.o server client