Add counters for MPTP buffers and syscalls.
[swifty.git] / src / lib / Makefile
1 CFLAGS = -g -Wall -fPIC
2 LDFLAGS = -L.
3 LDLIBS = -lswift
4
5 .PHONY: all clean
6
7 all: server client
8
9 client: client.o libswift.so
10
11 server: server.o libswift.so
12
13 client.o: client.c lib_swift.h
14
15 server.o: server.c lib_swift.h
16
17 libswift.so: lib_swift.o
18         $(CC) -shared -o $@ $^
19
20 lib_swift.o: lib_swift.c lib_swift.h
21
22 clean:
23         -rm -f server client libswift.so
24         -rm -f *.o
25         -rm -f *~