summaryrefslogtreecommitdiff
path: root/extensions/Makefile
blob: e23ed90d102a284d38728d9a7256784624b1711e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
CC=gcc

all:
	${CC} -fPIC -Wall -g -c libct_proto_tcp.c
	${CC} -g -shared -Wl,-soname,libct_proto_tcp.so.0 -o libct_proto_tcp.so.0.0 libct_proto_tcp.o -lc
	ln -sf libct_proto_tcp.so.0.0 libct_proto_tcp.so

	${CC} -fPIC -Wall -g -c libct_proto_udp.c
	${CC} -g -shared -Wl,-soname,libct_proto_udp.so.0 -o libct_proto_udp.so.0.0 libct_proto_udp.o -lc
	ln -sf libct_proto_udp.so.0.0 libct_proto_udp.so
clean:
	rm -rf *.so *.so.* *.o