fastsa/Makefile

35 lines
1015 B
Makefile
Raw Permalink Normal View History

2023-09-07 19:15:07 +08:00
EXE = fastsa
2023-09-13 10:40:07 +08:00
SOURCES = fft.cpp main.cpp
2023-08-22 23:24:17 +08:00
SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp
SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glfw.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp
OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES))))
2023-09-11 19:20:51 +08:00
CXXFLAGS = -std=c++20 -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends -I$(POCKETFFT_DIR)
2023-08-22 23:24:17 +08:00
CXXFLAGS += -g -Wall -Wformat -O2
2023-09-07 20:17:02 +08:00
LIBS += -lGL `pkg-config --static --libs glfw3 libbladeRF`
2023-08-22 23:24:17 +08:00
2023-09-07 20:17:02 +08:00
CXXFLAGS += `pkg-config --cflags glfw3 libbladeRF`
2023-08-22 23:24:17 +08:00
CFLAGS = $(CXXFLAGS)
##---------------------------------------------------------------------
## BUILD RULES
##---------------------------------------------------------------------
%.o:%.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $<
%.o:$(IMGUI_DIR)/%.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $<
%.o:$(IMGUI_DIR)/backends/%.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $<
all: $(EXE)
$(EXE): $(OBJS)
$(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS)
clean:
rm -f $(EXE) $(OBJS)