stmdspgui/Makefile

37 lines
942 B
Makefile
Raw Normal View History

2021-08-08 22:02:52 -04:00
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 \
-Wall -Wextra -pedantic
2021-08-08 22:02:52 -04:00
all: $(OUTPUT)
$(OUTPUT): $(OFILES)
@echo " LD " $(OUTPUT)
2021-10-03 08:27:08 -04:00
@g++ $(OFILES) -o $(OUTPUT) -lSDL2 -lGL -lpthread
2021-08-08 22:02:52 -04:00
clean:
@echo " CLEAN"
@rm -f $(OFILES) $(OUTPUT)
2021-08-08 22:02:52 -04:00
%.o: %.cpp
@echo " CXX " $<
@g++ $(CXXFLAGS) -c $< -o $@
%.o: %.cc
@echo " CXX " $<
2021-08-08 22:50:12 -04:00
@g++ $(CXXFLAGS) -c $< -o $@
2021-08-08 22:02:52 -04:00