forked from tasanakorn/rpi-mmal-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (35 loc) · 1.02 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
# Simple makefile for rpi-openmax-demos.
PROGRAMS = buffer_demo main video_record
CC = gcc
CFLAGS = -I/opt/vc/include
#CFLAGS += -DSTANDALONE
#CFLAGS += -D__STDC_CONSTANT_MACROS
#CFLAGS += -D__STDC_LIMIT_MACROS
#CFLAGS += -DTARGET_POSIX -D_LINUX
#CFLAGS += -DPIC -D_REENTRANT
#CFLAGS += -D_LARGEFILE64_SOURCE
#CFLAGS += -D_FILE_OFFSET_BITS=64
#CFLAGS += -U_FORTIFY_SOURCE
#CFLAGS += -DHAVE_LIBOPENMAX=2
#CFLAGS += -DOMX
#CFLAGS += -DOMX_SKIP64BIT
#CFLAGS += -ftree-vectorize
#CFLAGS += -pipe
#CFLAGS += -DUSE_EXTERNAL_OMX
#CFLAGS += -DHAVE_LIBBCM_HOST
#CFLAGS += -DUSE_EXTERNAL_LIBBCM_HOST
#CFLAGS += -DUSE_VCHIQ_ARM
#CFLAGS += -fPIC
#CFLAGS += -O2
#CFLAGS += -g
#CFLAGS += -I/opt/vc/include/interface/vcos/pthreads
#CFLAGS += -I/opt/vc/include/interface/vmcs_host/linux
CFLAGS += -Wall
#CFLAGS += -Werror
LDFLAGS = -L/opt/vc/lib
LDFLAGS += -lbcm_host -lvcos -pthread
LDFLAGS += -lmmal -lmmal_core -lmmal_util
all: $(PROGRAMS)
clean:
rm -f $(PROGRAMS)
.PHONY: all clean