-
Notifications
You must be signed in to change notification settings - Fork 29
/
make.sh
executable file
·62 lines (60 loc) · 1.75 KB
/
make.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
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
55
56
57
58
59
60
61
62
# If you have an older Raspberry Pi uncomment the next line to use WiringPi instead of gpiod
#NoGpiod=1
if [ "$NoGpiod" = 1 ]
then
gpioLib="wiringPi"
else
gpioLib="gpiod"
fi
echo fs-stop
fs-stop
echo Building instrument-panel
cd instrument-panel
g++ -o instrument-panel -I . -I instruments \
simvarDefs.cpp \
simvars.cpp \
globals.cpp \
knobs.cpp \
instrument.cpp \
instruments/adf.cpp \
instruments/adi.cpp \
instruments/alt.cpp \
instruments/annunciator.cpp \
instruments/asi.cpp \
instruments/digitalClock.cpp \
instruments/egt.cpp \
instruments/fuel.cpp \
instruments/hi.cpp \
instruments/nav.cpp \
instruments/oil.cpp \
instruments/radCom.cpp \
instruments/rpm.cpp \
instruments/tc.cpp \
instruments/trimFlaps.cpp \
instruments/trimFlaps2.cpp \
instruments/vac.cpp \
instruments/vor1.cpp \
instruments/vor2.cpp \
instruments/vsi.cpp \
instrument-panel.cpp \
instruments/alternate/altFast.cpp \
instruments/alternate/asiFast.cpp \
instruments/alternate/asiSupersonic.cpp \
instruments/alternate/gForce.cpp \
instruments/alternate/rpmPercent.cpp \
instruments/alternate/vsiExtreme.cpp \
instruments/learjet/adiLearjet.cpp \
instruments/savageCub/asiSavageCub.cpp \
instruments/savageCub/rpmSavageCub.cpp \
instruments/savageCub/comSavageCub.cpp \
instruments/savageCub/xpdrSavageCub.cpp \
instruments/spitfire/asiSpitfire.cpp \
instruments/spitfire/rpmSpitfire.cpp \
instruments/spitfire/vsiSpitfire.cpp \
instruments/spitfire/boostSpitfire.cpp \
instruments/glider/asiGlider.cpp \
-l${gpioLib} -lpthread -lallegro -lallegro_image -lallegro_font || exit
strip instrument-panel
echo fs-restart
fs-restart
echo Done