From 6070101e281b400905857f491e7c3d8f0cff7332 Mon Sep 17 00:00:00 2001 From: tomoron Date: Thu, 9 Jan 2025 14:36:16 +0100 Subject: [PATCH] fix makefile on linux, default rule chooses the right os --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1822df4..f8a106a 100644 --- a/Makefile +++ b/Makefile @@ -50,6 +50,12 @@ OBJS := $(addprefix $(OBJS_DIR)/, $(SRCS:%.cpp=%.o)) HEADERS := includes/RT.hpp MAKEFLAGS += --no-print-directory +ifeq ($(OS),Windows_NT) +all: windows +else +all: linux +endif + windows: $(OBJS) $(HEADERS) @$(CC) $(OBJS) $(IFLAGS) $(LDFLAGS) -o $(NAME) @echo $(WHITE) $(NAME): PROJECT COMPILED !$(RESET) @@ -97,4 +103,4 @@ else re: fclean linux endif -.PHONY: all clean fclean re windows linux \ No newline at end of file +.PHONY: all clean fclean re windows linux