-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
54 lines (36 loc) · 1.07 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
CONFIG_PATH="config/settings.json"
.PHONY: build build_firmware build_socketio_cpp doc
build: build_socketio_cpp
git submodule update --init --recursive
mkdir -p build
rm -f config/gazebo/models/x340/x340.sdf
cd build; cmake ..; make
server:
node ./src/server
run: build runGcs
runGcs:
./build/gcs $(CONFIG_PATH)
test: build
./build/test_tansa
doc:
cd doc; doxygen
clean:
rm -rf build
rm -rf build_firmware
rm -rf build_socketio_cpp
rm -rf lib/socket.io-client-cpp/build
rm -rf tmp
# Build the included firmware for the purpose of simulation
build_firmware:
git submodule update --init --recursive
mkdir -p build_firmware
cd build_firmware; cmake ../lib/Firmware -DCONFIG="posix_sitl_default"; make; make sitl_gazebo
# Starts an empty sim
sim: build_firmware build
./scripts/start_gazebo.sh
runSim:
./scripts/start_gazebo.sh
build_socketio_cpp:
git submodule update --init --recursive
mkdir -p build_socketio_cpp
cd build_socketio_cpp; cmake ../lib/socket.io-client-cpp -DBUILD_SHARED_LIBS=ON -DBoost_USE_STATIC_LIBS=OFF -DCMAKE_CXX_FLAGS="-fPIC"; make install