-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sh
27 lines (19 loc) · 1.48 KB
/
build.sh
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
#!/bin/bash
g++ -g -O0 -I./include/ -std=c++0x RabbitMQ.cpp -c || exit
echo "basic"
g++ -g -O0 -I./include/ -L./ -std=c++0x basic/pub.cpp -o pub RabbitMQ.o -lrabbitmq -lpthread -lrt || exit
g++ -g -O0 -I./include/ -L./ -std=c++0x basic/cus.cpp -o cus RabbitMQ.o -lrabbitmq -lpthread -lrt || exit
g++ -g -O0 -I./include/ -L./ -std=c++0x basic/cus_timeout.cpp -o cus_timeout RabbitMQ.o -lrabbitmq -lpthread -lrt || exit
echo "batch_perf"
g++ -g -O0 -I./include/ -L./ -std=c++0x batch_perf/batch_pub.cpp -o batch_pub RabbitMQ.o -lrabbitmq -lpthread -lrt || exit
echo "get"
g++ -g -O0 -I./include/ -L./ -std=c++0x basic_get/get.cpp -o get RabbitMQ.o -lrabbitmq -lpthread -lrt || exit
echo "confirm_ack"
g++ -g -O0 -I./include/ -L./ -std=c++0x confirm_ack/pub_confirm.cpp -o pub_confirm RabbitMQ.o -lrabbitmq -lpthread -lrt || exit
g++ -g -O0 -I./include/ -L./ -std=c++0x confirm_ack/batch_pub_confirm.cpp -o batch_pub_confirm RabbitMQ.o -lrabbitmq -lpthread -lrt || exit
g++ -g -O0 -I./include/ -L./ -std=c++0x confirm_ack/cus_ack.cpp -o cus_ack RabbitMQ.o -lrabbitmq -lpthread -lrt || exit
g++ -g -O0 -I./include/ -L./ -std=c++0x confirm_ack/cus_ack2.cpp -o cus_ack2 RabbitMQ.o -lrabbitmq -lpthread -lrt || exit
echo "default_setup"
g++ -g -O0 -I./include/ -L./ -std=c++0x default_setup/publish.cpp -o default_publish RabbitMQ.o -lrabbitmq -lpthread -lrt || exit
g++ -g -O0 -I./include/ -L./ -std=c++0x default_setup/consume.cpp -o default_consume RabbitMQ.o -lrabbitmq -lpthread -lrt || exit
echo "Done!"