From 707b24dd07236243269cf092728f85172e94e8a4 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sun, 8 Aug 2021 22:02:52 -0400 Subject: initial commit --- Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e00f59e --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +CXXFILES := \ + source/serial/src/serial.cc \ + source/serial/src/impl/unix.cc \ + source/serial/src/impl/list_ports/list_ports_linux.cc \ + $(wildcard source/imgui/backends/*.cpp) \ + $(wildcard source/imgui/*.cpp) \ + $(wildcard source/stmdsp/*.cpp) \ + $(wildcard source/*.cpp) + +OFILES := $(patsubst %.cc, %.o, $(patsubst %.cpp, %.o, $(CXXFILES))) +OUTPUT := stmdspgui + +#CXXFLAGS := -std=c++20 -O2 \ +# -Isource -Isource/imgui -Isource/stmdsp -Isource/serial/include +CXXFLAGS := -std=c++20 -ggdb -O0 -g3 \ + -Isource -Isource/imgui -Isource/stmdsp -Isource/serial/include + +all: $(OUTPUT) + +$(OUTPUT): $(OFILES) + @echo " LD " $(OUTPUT) + @g++ $(OFILES) -o $(OUTPUT) -lSDL2 -lGL + +clean: + @echo " CLEAN" + @rm $(OFILES) $(OUTPUT) + +%.o: %.cpp + @echo " CXX " $< + @g++ $(CXXFLAGS) -c $< -o $@ + +%.o: %.cc + @echo " CXX " $< + g++ $(CXXFLAGS) -c $< -o $@ + -- cgit v1.2.3