PROTOC=protoc
INSTALL=install
EMBEDDED_BMUSB=no
-PKG_MODULES := Qt5Core Qt5Gui Qt5Widgets
+PKG_MODULES := Qt5Core Qt5Gui Qt5Widgets Qt5WebSockets
CXXFLAGS ?= -O2 -g -Wall # Will be overridden by environment.
CXXFLAGS += -std=gnu++11 -fPIC $(shell pkg-config --cflags $(PKG_MODULES)) -pthread
LDLIBS=$(shell pkg-config --libs $(PKG_MODULES)) -pthread
-OBJS_WITH_MOC = mainwindow.o
-OBJS += $(OBJS_WITH_MOC) main.o acmp_client.o event_device.o
+OBJS_WITH_MOC = mainwindow.o ws_server.o
+OBJS += $(OBJS_WITH_MOC) main.o event_device.o
OBJS += $(OBJS_WITH_MOC:.o=.moc.o)
%.o: %.cpp
$(CXX) -o $@ $^ $(LDFLAGS) $(LDLIBS)
mainwindow.o: ui_mainwindow.h
+
+.PHONY: clean
+clean:
+ $(RM) $(OBJS) ultimatescore $(OBJS:.o=.d) $(OBJS_WITH_MOC:o=.moc.o) $(OBJS_WITH_MOC:o=.moc.d) ui_mainwindow.h