File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 6
6
# By: nkim <nkim@student.42seoul.kr> +#+ +:+ +#+ #
7
7
# +#+#+#+#+#+ +#+ #
8
8
# Created: 2022/05/04 14:54:52 by hannkim #+# #+# #
9
- # Updated: 2022/07/03 17:38:18 by hannkim ### ########.fr #
9
+ # Updated: 2022/07/04 16:48:39 by nkim ### ########.fr #
10
10
# #
11
11
# **************************************************************************** #
12
12
21
21
CFLAGS = -Wall -Wextra -Werror
22
22
endif
23
23
24
- LDFLAGS := $(LDFLAGS )
25
- CPPFLAGS := $(CPPFLAGS )
24
+ ARCH := $(shell arch)
25
+ ifeq ($(ARCH ) , i386)
26
+ LDFLAGS = -L$(HOME)/.brew/opt/readline/lib
27
+ CPPFLAGS = -I$(HOME)/.brew/opt/readline/include
28
+ else ifeq ($(ARCH), arm64)
29
+ LDFLAGS = -L/opt/homebrew/opt/readline/lib
30
+ CPPFLAGS = -I/opt/homebrew/opt/readline/include
31
+ else
32
+ LDFLAGS := $(LDFLAGS)
33
+ CPPFLAGS := $(CPPFLAGS)
34
+ endif
26
35
27
36
AR = ar rcs
28
37
RM = rm -f
You can’t perform that action at this time.
0 commit comments