summaryrefslogtreecommitdiff
path: root/Makefile
blob: 549f1d7eb1584477430b7908aaee43eb088e0d98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
clean:
	rm -rf bin/*
	mkdir bin 2> /dev/null || true

sample_plugin:
	clang plugin_example/plugin_example.c -shared -fPIC -o bin/plugin_example.so

build_client:
	clang client/example.c client/client.c -o bin/client -lsodium -lz -O3 -g

build_server:
	clang src/server.c -o bin/server -lsodium -lz -O3 -g

release: clean
	clang src/client.c -o bin/client -O3
	clang src/server.c -o bin/server -O3

crun:
	bin/client

srun: sample_plugin
	bin/server config=config.example