5 PKG_MODULES := Qt5Core Qt5Gui Qt5Widgets Qt5WebSockets
6 CXXFLAGS ?= -O2 -g -Wall # Will be overridden by environment.
7 CXXFLAGS += -std=gnu++11 -fPIC $(shell pkg-config --cflags $(PKG_MODULES)) -pthread
8 LDLIBS=$(shell pkg-config --libs $(PKG_MODULES)) -pthread
10 OBJS_WITH_MOC = mainwindow.o ws_server.o
11 OBJS += $(OBJS_WITH_MOC) main.o event_device.o
12 OBJS += $(OBJS_WITH_MOC:.o=.moc.o)
15 $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
17 $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
27 ultimatescore: $(OBJS)
28 $(CXX) -o $@ $^ $(LDFLAGS) $(LDLIBS)
30 mainwindow.o: ui_mainwindow.h
34 $(RM) $(OBJS) ultimatescore $(OBJS:.o=.d) $(OBJS_WITH_MOC:o=.moc.o) $(OBJS_WITH_MOC:o=.moc.d) ui_mainwindow.h