-
Notifications
You must be signed in to change notification settings - Fork 0
/
makeit_raspi
executable file
·29 lines (24 loc) · 1.66 KB
/
makeit_raspi
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
CPPFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi"
CPPFLAGS="$CPPFLAGS -DRASPI"
LDFLAGS="-lbrcmEGL -L/opt/vc/lib/ -lbrcmGLESv2 -lbrcmEGL -lbcm_host -lvcos -lvchiq_arm -lpthread -lrt"
g++ -c -O3 esTransform.c -o esTransform.o $CPPFLAGS
g++ -c -O3 f_native.cpp -o f_native.o $CPPFLAGS
g++ -c -O3 f_egl.cpp -o f_egl.o $CPPFLAGS
g++ -c -O3 glsutil.c -o glsutil.o $CPPFLAGS
g++ -c -O3 matrix.c -o matrix.o $CPPFLAGS
g++ -c -O3 main_vbo.cpp -o main_vbo.o $CPPFLAGS
g++ -c -O3 main_diablo.cpp -o main_diablo.o $CPPFLAGS
g++ -c -O3 main_gears.cpp -o main_gears.o $CPPFLAGS
g++ -c -O3 main_cube_textured.cpp -o main_cube.o $CPPFLAGS
g++ -c -O3 main_gles.cpp -o main_gles.o $CPPFLAGS
g++ -c -O3 main_many_cubes.cpp -o main_many_cubes.o $CPPFLAGS
g++ -c -O3 main_spiral.cpp -o main_spiral.o $CPPFLAGS
g++ -c -O3 main_vbo_goblin.cpp -o main_goblin.o $CPPFLAGS
g++ f_egl.o f_native.o main_vbo.o esTransform.o glsutil.o -o run_ninja.exe $LDFLAGS
g++ f_egl.o f_native.o main_diablo.o esTransform.o glsutil.o -o run_diablo.exe $LDFLAGS
g++ f_egl.o f_native.o main_gears.o esTransform.o glsutil.o -o run_gears.exe $LDFLAGS
g++ f_egl.o f_native.o main_cube.o esTransform.o glsutil.o matrix.o -o run_cube.exe $LDFLAGS
g++ f_egl.o f_native.o main_gles.o esTransform.o glsutil.o matrix.o -o run_gles.exe $LDFLAGS
g++ f_egl.o f_native.o main_many_cubes.o esTransform.o glsutil.o matrix.o -o run_mcubes.exe $LDFLAGS
g++ f_egl.o f_native.o main_spiral.o -o run_spiral.exe $LDFLAGS
g++ f_egl.o f_native.o main_goblin.o esTransform.o glsutil.o matrix.o -o run_goblin.exe $LDFLAGS