You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
stmdspgui/Makefile

44 lines
1.1 KiB
Makefile

#linux: CXXFILES += source/serial/src/impl/unix.cc source/serial/src/impl/list_ports/list_ports_unix.cc
#linux: LDFLAGS = -lSDL2 -lGL -lpthread
#CROSS = x86_64-w64-mingw32-
#CXX = $(CROSS)g++
CXX = g++
3 years ago
CXXFILES := \
source/serial/src/serial.cc \
source/serial/src/impl/win.cc \
source/serial/src/impl/list_ports/list_ports_win.cc \
3 years ago
$(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.exe
3 years ago
CXXFLAGS := -std=c++20 -O2 \
-Isource -Isource/imgui -Isource/stmdsp -Isource/serial/include \
-Wall -Wextra -pedantic \
-DSTMDSP_WIN32 -Wa,-mbig-obj -DSTMDSP_DISABLE_FORMULAS
LDFLAGS = -mwindows -lSDL2 -lopengl32 -lsetupapi -lole32
3 years ago
all: $(OUTPUT)
$(OUTPUT): $(OFILES)
@echo " LD " $(OUTPUT)
@$(CXX) $(OFILES) -o $(OUTPUT) $(LDFLAGS)
3 years ago
clean:
@echo " CLEAN"
@rm -f $(OFILES) $(OUTPUT)
3 years ago
%.o: %.cpp
@echo " CXX " $<
@$(CXX) $(CXXFLAGS) -c $< -o $@
3 years ago
%.o: %.cc
@echo " CXX " $<
@$(CXX) $(CXXFLAGS) -c $< -o $@
3 years ago