mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 06:33:35 +00:00
begenning the refactor
This commit is contained in:
22
Makefile
22
Makefile
@@ -6,22 +6,23 @@
|
||||
# By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2022/10/04 16:43:41 by maldavid #+# #+# #
|
||||
# Updated: 2024/03/25 18:57:44 by maldavid ### ########.fr #
|
||||
# Updated: 2024/03/27 21:30:44 by maldavid ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
NAME = libmlx.so
|
||||
|
||||
SRCS = $(wildcard $(addsuffix /*.cpp, ./src/core))
|
||||
SRCS += $(wildcard $(addsuffix /*.cpp, ./src/platform))
|
||||
SRCS += $(wildcard $(addsuffix /*.cpp, ./src/renderer))
|
||||
SRCS += $(wildcard $(addsuffix /*.cpp, ./src/renderer/**))
|
||||
SRCS = $(wildcard $(addsuffix /*.cpp, ./runtime/Sources/Core))
|
||||
SRCS += $(wildcard $(addsuffix /*.cpp, ./runtime/Sources/Platform))
|
||||
SRCS += $(wildcard $(addsuffix /*.cpp, ./runtime/Sources/Renderer))
|
||||
SRCS += $(wildcard $(addsuffix /*.cpp, ./runtime/Sources/Renderer/**))
|
||||
SRCS += $(wildcard $(addsuffix /*.cpp, ./runtime/Sources/Drivers/**))
|
||||
|
||||
OBJ_DIR = objs/makefile
|
||||
OBJS = $(addprefix $(OBJ_DIR)/, $(SRCS:.cpp=.o))
|
||||
|
||||
PCH = ./src/pre_compiled.h
|
||||
GCH = ./src/pre_compiled.h.gch
|
||||
PCH = ./runtime/Includes/PreCompiled.h
|
||||
GCH = ./runtime/Includes/PreCompiled.h.gch
|
||||
|
||||
OS = $(shell uname -s)
|
||||
DEBUG ?= false
|
||||
@@ -30,13 +31,14 @@ IMAGES_OPTIMIZED ?= true
|
||||
FORCE_INTEGRATED_GPU ?= false
|
||||
GRAPHICS_MEMORY_DUMP ?= false
|
||||
PROFILER ?= false
|
||||
LEGACY ?= false
|
||||
|
||||
MODE = "release"
|
||||
|
||||
CXX = clang++
|
||||
|
||||
CXXFLAGS = -std=c++17 -O3 -fPIC -Wall -Wextra -Wno-deprecated -DSDL_MAIN_HANDLED
|
||||
INCLUDES = -I./includes -I./src -I./third_party
|
||||
INCLUDES = -I./includes -I./runtime/Includes -I./third_party
|
||||
|
||||
LDLIBS =
|
||||
|
||||
@@ -71,6 +73,10 @@ ifeq ($(PROFILER), true)
|
||||
CXXFLAGS += -D PROFILER
|
||||
endif
|
||||
|
||||
ifeq ($(LEGACY), true)
|
||||
CXXFLAGS += -D LEGACY
|
||||
endif
|
||||
|
||||
RM = rm -rf
|
||||
|
||||
$(OBJ_DIR)/%.o: %.cpp $(GCH)
|
||||
|
||||
Reference in New Issue
Block a user