-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompile.sh
More file actions
executable file
·30 lines (27 loc) · 1.12 KB
/
compile.sh
File metadata and controls
executable file
·30 lines (27 loc) · 1.12 KB
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
#!/bin/bash
clear
echo "################################################################"
echo "################################################################"
cd binaries
if [ $1 == "definitions" ] || [ $1 == "all" ]; then
echo "Compiling defs..."
g++ -c ../definitions.cpp -Wno-write-strings -std=c++11 -lboost_regex 2>&1 | grep error
fi
if [ $1 == "interpreter" ] || [ $1 == "all" ]; then
echo "Compiling interpreter..."
g++ -c ../interpreter.cpp -Wno-write-strings -std=c++11 -lboost_regex 2>&1 | grep error
fi
if [ $1 == "parser" ] || [ $1 == "all" ]; then
echo "Compiling parser..."
g++ -c ../parser.cpp -Wno-write-strings -std=c++11 -lboost_regex 2>&1 | grep error
fi
if [ $1 == "compiler" ] || [ $1 == "all" ]; then
echo "Compiling compiler..."
g++ -c ../compiler.cpp -Wno-write-strings -std=c++11 -lboost_regex 2>&1 | grep error
fi
if [ $1 == "main" ] || [ $1 == "all" ]; then
echo "Compiling main..."
g++ -c ../main.cpp -Wno-write-strings -std=c++11 -lboost_regex 2>&1 | grep error
fi
echo "Linking..."
g++ main.o compiler.o parser.o interpreter.o definitions.o -Wno-write-strings -std=c++11 -lboost_regex -o jb_http