-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 665 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 665 Bytes
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
# Top-level Makefile for Load Balancer Comparison Project
# Create bin directory if it doesn't exist
$(shell mkdir -p bin)
build:
cd C-LoadBalancer && make install
cd Go-LoadBalancer && go build -o ../bin/Go-LoadBalancer
cd TestBackend && go build -o ../bin/TestBackend
run-c:
./Scripts/run_backends.sh
./Scripts/test_loadbalancer_C.sh
run-go:
./Scripts/run_backends.sh
./Scripts/test_loadbalancer_Go.sh
stop:
pkill -f "C-LoadBalancer" || true
pkill -f "Go-LoadBalancer" || true
pkill -f "TestBackend" || true
pkill -f "load-generator" || true
clean:
cd C-LoadBalancer && make clean
rm -f bin/*
rm -f *.log
.PHONY: build run-c run-go stop clean