fix makefile on linux, default rule chooses the right os

This commit is contained in:
2025-01-09 14:36:16 +01:00
parent e474e451e6
commit 6070101e28

View File

@ -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
.PHONY: all clean fclean re windows linux