-
Notifications
You must be signed in to change notification settings - Fork 9
/
build
executable file
·26 lines (21 loc) · 1.04 KB
/
build
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
#!/bin/bash
# Compile helloWorld.c
echo 'compiling helloWorld.c'
gcc -std=gnu99 helloWorld.c lib/lib_PD161704A.c -o helloWorld -I /usr/local/include -L /usr/local/lib -l wiringPi
echo 'run with sudo ./helloWorld'
# Compile geometry.c
echo 'compiling geometry.c'
gcc -std=gnu99 geometry.c lib/lib_PD161704A.c -o geometry -I /usr/local/include -L /usr/local/lib -l wiringPi
echo 'run with sudo ./geometry'
# Compile images.c
echo 'compiling images.c'
gcc -std=gnu99 images.c lib/lib_PD161704A.c lib/bmpLoad.c -o images -I /usr/local/include -L /usr/local/lib -l wiringPi
echo 'run with sudo ./images'
# Compile touch.c
echo 'compiling touch.c'
gcc -std=gnu99 touch.c lib/lib_PD161704A.c lib/lib_XPT2046.c -o touch -I /usr/local/include -L /usr/local/lib -l wiringPi
echo 'run with sudo ./touch'
# Compile touch_calibration.c
echo 'compiling touch_calibration.c'
gcc -std=gnu99 touch_calibration.c lib/lib_PD161704A.c lib/lib_XPT2046.c -o touch_calibration -I /usr/local/include -L /usr/local/lib -l wiringPi
echo 'run with sudo ./touch_calibration'