18 lines
354 B
Makefile
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
|