-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
14 lines (9 loc) · 761 Bytes
/
Copy pathMakefile
File metadata and controls
14 lines (9 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
BINS_C= $(patsubst %.c, %, $(wildcard *.c))
BINS_CPP= $(patsubst %.cpp, %, $(wildcard *.cpp))
all: $(BINS_C) $(BINS_CPP)
%: %.c
gcc -I/opt/vc/include/ -I/opt/vc/include/interface/mmal $^ -o $@ -O0 -g -L/opt/vc/lib/ -lbcm_host -lmmal -lmmal_core -lmmal_components -lmmal_util -lvcos -lpthread
%: %.cpp
g++ -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -I/opt/vc/include/ -I/opt/vc/include/interface/mmal $^ -o $@ -O0 -g -L/opt/vc/lib/ -lbcm_host -lmmal -lmmal_core -lmmal_components -lmmal_util -lvcos -lpthread -lQt5Gui -lQt5Core -lGLESv2
clean:
rm -f $(BINS_C) $(BINS_CPP)