From 85b0d7b8d45c3f69e6b52bef5ba449c2cd33453f Mon Sep 17 00:00:00 2001 From: blankie Date: Mon, 9 Jan 2023 14:48:58 +0700 Subject: [PATCH] Automatically locate cpp files --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 883285e..29ce0b7 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ CXX = clang++ EXE = logmeow IMGUI_DIR = imgui -SOURCES = main.cpp fonts.cpp log.cpp config.cpp event_loop.cpp +SOURCES = $(wildcard *.cpp) 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)/misc/cpp/imgui_stdlib.cpp $(IMGUI_DIR)/backends/imgui_impl_sdl.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES))))