Skip to content

Commit

Permalink
Merge pull request #29 from kurrrru/27-最適化オプションを追加する
Browse files Browse the repository at this point in the history
update Makefle
  • Loading branch information
mmiyahar1205 authored Dec 17, 2024
2 parents 748fd73 + 2d07529 commit e3ed7ba
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Binary file removed .DS_Store
Binary file not shown.
8 changes: 0 additions & 8 deletions .vscode/settings.json

This file was deleted.

10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ MLX = $(MLX_DIR)/$(MLX_NAME)

# Compilation flags
DEBUG = -fsanitize=address
OPTFLAG = -O3 -flto
CFLAGS = -Wall -Wextra -Werror -I$(MLX_DIR) -I$(LIBFT_DIR) -I. -I%%%%

# Remove command
Expand All @@ -42,6 +43,11 @@ ifeq ($(filter debug,$(MAKECMDGOALS)),debug)
LFLAGS += $(DEBUG)
endif

ifeq ($(filter fast,$(MAKECMDGOALS)),fast)
CFLAGS += $(OPTFLAG)
LFLAGS += $(OPTFLAG)
endif

# Compilation rules
.DEFAULT_GOAL = all

Expand Down Expand Up @@ -72,4 +78,6 @@ all: $(NAME)

debug: $(NAME)

.PHONY: all clean fclean re debug
fast: $(NAME)

.PHONY: all clean fclean re debug fast
Binary file removed src/.DS_Store
Binary file not shown.

0 comments on commit e3ed7ba

Please sign in to comment.