HW12/Makefile

18 lines
354 B
Makefile
Raw Normal View History

2020-12-04 08:06:26 +09:00
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