aboutsummaryrefslogtreecommitdiffstats
path: root/gui/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'gui/Makefile')
-rw-r--r--gui/Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/gui/Makefile b/gui/Makefile
index 679e1e4..20dd473 100644
--- a/gui/Makefile
+++ b/gui/Makefile
@@ -1,18 +1,21 @@
CXX = g++-10
-CXXFLAGS = --std=c++20 -ggdb -Og \
- -Wall -Wextra -pedantic \
- -Wno-deprecated-copy \
- -Iserial/include \
- $(shell wx-config --cxxflags)
+CXXFLAGS = --std=c++20 -ggdb -O0 \
+ -Wall -Wextra -pedantic \
+ -Wno-deprecated-copy \
+ -Iserial/include \
+ $(shell wx-config --cxxflags)
-CXXFILES = $(shell find serial/src -name "*.cc") $(wildcard *.cpp)
+CXXFILES = serial/src/serial.cc \
+ serial/src/impl/unix.cc \
+ serial/src/impl/list_ports/list_ports_linux.cc \
+ $(wildcard *.cpp)
OFILES = $(patsubst %.cc, %.o, $(patsubst %.cpp, %.o, $(CXXFILES)))
LIBS = $(shell wx-config --libs) -lwx_gtk3u_stc-3.1
OUTELF = stmdspgui
all: $(OUTELF)
-
+
$(OUTELF): $(OFILES)
@echo " CXX " $(OUTELF)
@$(CXX) $(CXXFLAGS) $(OFILES) $(LIBS) -o $(OUTELF)