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)