2 PKG_MODULES = Qt5Core Qt5Gui Qt5Widgets Qt5OpenGLExtensions Qt5OpenGL libusb-1.0 movit
3 CXXFLAGS := -O2 -march=native -g -std=gnu++11 -Wall -Wno-deprecated-declarations -fPIC $(shell pkg-config --cflags $(PKG_MODULES)) -pthread -DMOVIT_SHADER_DIR=\"$(shell pkg-config --variable=shaderdir movit)\"
4 LDFLAGS=$(shell pkg-config --libs $(PKG_MODULES)) -lEGL -lGL -pthread -lva -lva-drm -lva-x11 -lX11 -lavformat -lavcodec -lavutil
7 OBJS=glwidget.o main.o mainwindow.o window.o
8 OBJS += glwidget.moc.o mainwindow.moc.o window.moc.o
11 OBJS += h264encode.o mixer.o bmusb.o pbo_frame_allocator.o context.o ref_counted_frame.o
14 $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
25 $(CXX) $(LDFLAGS) -o $@ $^
27 mainwindow.o: mainwindow.cpp ui_mainwindow.cpp
33 $(RM) $(OBJS) $(DEPS) nageru ui_mainwindow.cpp chain-*.frag *.dot