From f735e84d8c7193e9deb1afe164b25527a08089f0 Mon Sep 17 00:00:00 2001 From: Jonathan Moallem Date: Thu, 7 Oct 2021 23:36:59 +1100 Subject: [PATCH] Updated macro passing in Makefile to use CXXFLAGS --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 3bd3964..18d047d 100644 --- a/Makefile +++ b/Makefile @@ -11,9 +11,6 @@ objects := $(patsubst src/%, $(buildDir)/%, $(patsubst %.cpp, %.o, $(sources))) depends := $(patsubst %.o, %.d, $(objects)) compileFlags := -std=c++17 -I include linkFlags = -L lib/$(platform) -l raylib -ifdef MACRO_DEFS - macroDefines := -D $(MACRO_DEFS) -endif # Check for Windows ifeq ($(OS), Windows_NT) @@ -88,7 +85,7 @@ $(target): $(objects) # Compile objects to the build directory $(buildDir)/%.o: src/%.cpp Makefile $(MKDIR) $(call platformpth, $(@D)) - $(CXX) -MMD -MP -c $(compileFlags) $< -o $@ $(macroDefines) + $(CXX) -MMD -MP -c $(compileFlags) $< -o $@ $(CXXFLAGS) # Run the executable execute: