-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
29 lines (20 loc) · 1.14 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
# If cross-compiling, you may wish to set the following environment variable to the root location of
# your 'sdk'
# SDKSTAGE=/home/foo/raspberrypi
INCDIR=-I./Common -I$(SDKSTAGE)/opt/vc/include -I$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -I$(SDKSTAGE)/opt/vc/include/interface/vmcs_host/linux
LIBS=-lGLESv2 -lEGL -lm -lbcm_host -L$(SDKSTAGE)/opt/vc/lib
CFLAGS+=-DRPI_NO_X
# CFLAGS+=-DRPI_NO_X -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -I$(SDKSTAGE)/opt/vc/include/ -I./ -I$(SDKSTAGE)/opt/vc/lib
COMMONSRC=./Common/esShader.c \
./Common/esTransform.c \
./Common/esShapes.c \
./Common/esUtil.c \
./triangle_draw.c
COMMONHRD=esUtil.h \
triangle_draw.h
default: all
all: rtt
clean:
rm -f rtt *.o
rtt:${COMMONSRC} ${COMMONHDR} rtt.c
gcc $(CFLAGS) ${COMMONSRC} rtt.c -o rtt ${INCDIR} ${LIBS}