adding image optimizations control over make call

This commit is contained in:
2023-08-09 13:50:33 +02:00
parent f6fcb214e5
commit 26037936e8
8 changed files with 58 additions and 38 deletions

View File

@@ -3,10 +3,10 @@
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ #
# By: vvaas <vvaas@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/10/04 16:43:41 by maldavid #+# #+# #
# Updated: 2023/06/06 15:59:27 by maldavid ### ########.fr #
# Updated: 2023/08/09 13:44:58 by maldavid ### ########.fr #
# #
# **************************************************************************** #
@@ -21,6 +21,7 @@ OBJS = $(SRCS:.cpp=.o)
DEBUG ?= false
TOOLCHAIN ?= clang
IMAGES_OPTIMIZED ?= true
CXX = clang++
@@ -35,6 +36,10 @@ ifeq ($(DEBUG), true)
CXXFLAGS += -g -D DEBUG
endif
ifeq ($(IMAGES_OPTIMIZED), true)
CXXFLAGS += -D IMAGE_OPTIMIZED
endif
RM = rm -f
%.o: %.cpp