From 79c0a7393a26526117d0bd22a1fbeb02f8482de7 Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Fri, 21 Oct 2022 21:59:06 +0200 Subject: [PATCH] Added LOG_LEVEL --- src/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index e5c4a88..062f6cc 100755 --- a/src/Makefile +++ b/src/Makefile @@ -1,17 +1,21 @@ CXX = /usr/bin/g++ CXXFLAGS = -std=c++20 -MMD -MP -Wextra #-include pch.hpp #-O3: optimierungsstufe 3, -MMD .d files, -MP leeres Target, Wextra alle Warnungen LDFLAGS = -lglfw -lvulkan -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi -lgzutil -lfreetype +IFLAGS = SRCDIRS = $(wildcard */) -IFLAGS = $(foreach dir,$(SRCDIRS), -I$(dir)) +IFLAGS += $(foreach dir,$(SRCDIRS), -I$(dir)) IFLAGS += $(foreach dir,$(SRCDIRS), -I../$(dir)) IFLAGS += -I../ -I./ IFLAGS += -I/usr/include/freetype2 CXXFLAGS += $(IFLAGS) - +# SETTINGS OBJECT_DIR = ../build EXEC = ../vulkan_test +LOG_LEVEL = LOG_LEVEL_2 + +CXXFLAGS += -D $(LOG_LEVEL) SRC = $(wildcard *.cpp) $(wildcard */*.cpp) # OBJECTS = $(SRC:%.cpp=$(OBJECT_DIR)/%.o)