2 CXXFLAGS := -O2 -march=native -g -std=gnu++11 -Wall -Wno-deprecated-declarations -fPIC $(shell pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets Qt5OpenGLExtensions libusb-1.0 movit) -pthread -DMOVIT_SHADER_DIR=\"$(shell pkg-config --variable=shaderdir movit)\"
3 LDFLAGS=$(shell pkg-config --libs Qt5Core Qt5Gui 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
21 $(CXX) $(LDFLAGS) -o $@ $^
23 mainwindow.o: mainwindow.cpp ui_mainwindow.cpp
26 $(RM) $(OBJS) nageru ui_mainwindow.cpp chain-*.frag *.dot