-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
16 lines (15 loc) · 971 Bytes
/
Makefile
File metadata and controls
16 lines (15 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#libdata.dylib: include/utils.h include/data.h src/utils.c src/data.c
# gcc -dynamiclib -o libdata.dylib -fPIC -I./include/ -dy src/utils.c src/data.c
all: client server stream receiver
stream: include/utils.h include/data.h include/hyper-socket.h libdata.so src/stream.c
gcc -g -o stream -I./include/ -L. -ldata src/stream.c
server: include/utils.h include/data.h include/hyper-socket.h libdata.so src/server.c
gcc -o server -I./include/ -L. -ldata src/server.c
receiver: include/utils.h include/hyper-socket.h libdata.so src/receiver.c
gcc -o receiver -I./include -L. -ldata src/receiver.c
client: include/utils.h include/hyper-socket.h libdata.so src/receiver.c
gcc -o client -I./include -L. -ldata src/client.c
libdata.so: include/utils.h include/data.h include/hyper-socket.h src/utils.c src/data.c src/hyper-socket.c
gcc -shared -o libdata.so -fPIC -I./include/ src/utils.c src/hyper-socket.c src/data.c
clean:
rm -f libdata.so client server stream receiver