-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
28 lines (20 loc) · 1.11 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
CC = gcc
CFLAGS = -std=gnu99 -g
LDFLAGS =
all: qpucamera
INCLUDES = -I./\
-I/opt/vc/include/
CAM_INCLUDES = -I../camera/
CAM_SOURCES = ../camera/RaspiCamControl.c ../camera/RaspiCLI.c ../camera/tga.c
LDFLAGS = -L/opt/vc/lib/ -lmmal -lmmal_core -lmmal_util -lvcos -lbcm_host -lbrcmEGL -lbrcmGLESv2 -lvcsm -ldl
qpucamera: clean asm
$(CC) $(INCLUDES) $(CAM_INCLUDES) $(CAM_SOURCES) $(CFLAGS) $(LDFLAGS) -I/opt/vc/src/hello_pi/hello_fft /opt/vc/src/hello_pi/hello_fft/mailbox.c -I../qpu/ ../qpu/qpu.c mmal_camera.c mmal_video_encoding.c qpucamera.c qpu_program.c -o $@
encodingtest: clean
$(CC) $(INCLUDES) $(CAM_INCLUDES) $(CAM_SOURCES) $(CFLAGS) $(LDFLAGS) -I/opt/vc/src/hello_pi/hello_fft /opt/vc/src/hello_pi/hello_fft/mailbox.c -I../qpu/ ../qpu/qpu.c mmal_camera.c mmal_video_encoding.c encodingtest.c -o $@
asm: qpucamera_kernel.asm
vc4asm -V -o qpucamera_kernel.bin qpucamera_kernel.asm ../qpu/vc4.qinc
vc4asm -V -o qpucamera_kernel_tmu.bin qpucamera_kernel_tmu.asm ../qpu/vc4.qinc
vc4asm -V -o qpucamera_kernel_page.bin qpucamera_kernel_page.asm ../qpu/vc4.qinc
clean:
rm -f qpucamera
rm -f qpucamera_kernel.bin