-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
39 lines (38 loc) · 1.25 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
SOURCE_OBJECTS = $(shell find . -regex '[^\#]*\.lisp' -printf '%P ' \
&& find . -regex '[^\#]*\.asd' -printf '%P ')
all: bin/erlangen-port-mapper bin/erlangen-kernel \
bin/erlangen-message-benchmark
bin:
mkdir -p bin
bin/erlangen-port-mapper: $(SOURCE_OBJECTS) | bin
ccl -Q -b -n \
-l build/load-quicklisp.lisp \
-l build/port-mapper.lisp
bin/erlangen-kernel: $(SOURCE_OBJECTS) | bin
ccl -Q -b -n \
-l build/load-quicklisp.lisp \
-l build/kernel.lisp
bin/erlangen-message-benchmark: $(SOURCE_OBJECTS) | bin
ccl -Q -b -n \
-l build/load-quicklisp.lisp \
-l build/message-benchmark.lisp
bin/erlangen-ring-benchmark: $(SOURCE_OBJECTS) | bin
ccl -Q -b -n \
-l build/load-quicklisp.lisp \
-l build/ring-benchmark.lisp
test-agent: bin/erlangen-kernel
bin/erlangen-kernel -Q -b -n \
-e "(erlangen.agent-test:run-tests)" \
-e "(ccl:quit)"
test-node: bin/erlangen-kernel
bin/erlangen-kernel -Q -b -n \
-e "(erlangen.distribution.protocol.node-test:run-tests)" \
-e "(ccl:quit)"
test-port-mapper: bin/erlangen-kernel
bin/erlangen-kernel -Q -b -n \
-e "(erlangen.distribution.protocol.port-mapper-test:run-tests)" \
-e "(ccl:quit)"
test: test-agent test-node test-port-mapper
clean:
rm -rf bin
.PHONY: all test-agent test-node test-port-mapper test clean