2 CXXFLAGS := -O2 -march=native -g -std=gnu++11 -Wall -Wno-deprecated-declarations -fPIC $(shell pkg-config --cflags Qt5Core Qt5Widgets Qt5OpenGLExtensions libusb-1.0 movit) -pthread
3 LDFLAGS=$(shell pkg-config --libs Qt5Core Qt5Widgets Qt5OpenGLExtensions libusb-1.0 movit) -lEGL -lGL -pthread -lva -lva-drm -lva-x11 -lX11 -lavformat -lavcodec -lavutil
6 OBJS=glwidget.o main.o mainwindow.o window.o
7 OBJS += glwidget.moc.o mainwindow.moc.o window.moc.o
10 OBJS += h264encode.o mixer.o bmusb.o pbo_frame_allocator.o context.o
18 $(CXX) $(LDFLAGS) -o $@ $^