ejaee / 42Minishell

The objective of this project is for me to create a simple shell
0 stars 0 forks source link

readline library 경로 자동으로 지정되도록 Makefile 수정 #41

Closed nailhae closed 1 year ago

nailhae commented 1 year ago

적용 샘플. 확인 필요

ifneq ($(filter %42seoul.kr,$(UNAME_N)),)
    LDFLAGS="-L$(HOME)/goinfre/brew/opt/readline/lib"
    CPPFLAGS="-I$(HOME)/goinfre/brew/opt/readline/include"
else
    LDFLAGS="-L/opt/homebrew/opt/readline/lib"
    CPPFLAGS="-I/opt/homebrew/opt/readline/include"
endif

라이브러리 다운 명령

readline:
    cd $(HOME)/goinfre; git clone https://github.com/Homebrew/brew.git
    $(HOME)/goinfre/brew/bin/brew install readline;
    $(HOME)/goinfre/brew/bin/brew info readline;
nailhae commented 1 year ago

https://github.com/ejaee/42Minishell/pull/43/commits/465c7ff9edbcb304120bc9bb1f2a1e7e28ea9a9b 에서 해결