Added LOG_LEVEL

This commit is contained in:
matthias@arch 2022-10-21 21:59:06 +02:00
parent 464ad7db2d
commit 79c0a7393a

View File

@ -1,17 +1,21 @@
CXX = /usr/bin/g++ 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 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 LDFLAGS = -lglfw -lvulkan -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi -lgzutil -lfreetype
IFLAGS =
SRCDIRS = $(wildcard */) SRCDIRS = $(wildcard */)
IFLAGS = $(foreach dir,$(SRCDIRS), -I$(dir)) IFLAGS += $(foreach dir,$(SRCDIRS), -I$(dir))
IFLAGS += $(foreach dir,$(SRCDIRS), -I../$(dir)) IFLAGS += $(foreach dir,$(SRCDIRS), -I../$(dir))
IFLAGS += -I../ -I./ IFLAGS += -I../ -I./
IFLAGS += -I/usr/include/freetype2 IFLAGS += -I/usr/include/freetype2
CXXFLAGS += $(IFLAGS) CXXFLAGS += $(IFLAGS)
# SETTINGS
OBJECT_DIR = ../build OBJECT_DIR = ../build
EXEC = ../vulkan_test EXEC = ../vulkan_test
LOG_LEVEL = LOG_LEVEL_2
CXXFLAGS += -D $(LOG_LEVEL)
SRC = $(wildcard *.cpp) $(wildcard */*.cpp) SRC = $(wildcard *.cpp) $(wildcard */*.cpp)
# OBJECTS = $(SRC:%.cpp=$(OBJECT_DIR)/%.o) # OBJECTS = $(SRC:%.cpp=$(OBJECT_DIR)/%.o)