--- Makefile.orig 2018-01-18 22:20:20.000000000 +0000 +++ Makefile 2018-05-06 03:35:05.000000000 +0000 @@ -575,7 +575,7 @@ ifeq ($(target),Darwin) # default INCDIR for macOS -INCDIR= /usr/local/include +INCDIR= ___PREFIX___/include else #endif /* end of skip for non-Gnu makefiles */ @@ -638,7 +638,7 @@ ifeq ($(target),Darwin) # default BINDIR for macOS -BINDIR= /usr/local/bin +BINDIR= ___PREFIX___/bin else #endif /* end of skip for non-Gnu makefiles */ @@ -654,7 +654,7 @@ ifeq ($(target),Darwin) # default LIBDIR for macOS -LIBDIR= /usr/local/lib +LIBDIR= ___PREFIX___/lib else #endif /* end of skip for non-Gnu makefiles */ @@ -670,7 +670,7 @@ ifeq ($(target),Darwin) # default CALC_SHAREDIR for macOS -CALC_SHAREDIR= /usr/local/share/calc +CALC_SHAREDIR= ___PREFIX___/share/calc else #endif /* end of skip for non-Gnu makefiles */ @@ -749,7 +749,7 @@ # # If in doubt, use T= # -T= +T=___DESTROOT___ # where man pages are installed # @@ -760,7 +760,7 @@ #MANDIR= #MANDIR= /usr/local/man/man1 #MANDIR= /usr/man/man1 -MANDIR= /usr/share/man/man1 +MANDIR= ___PREFIX___/share/man/man1 #MANDIR= /dev/env/DJDIR/man/man1 #MANDIR= /usr/man/u_man/man1 #MANDIR= /usr/contrib/man/man1 @@ -895,11 +895,11 @@ # # If in doubt, set USE_READLINE, READLINE_LIB and READLINE_INCLUDE to nothing. # -USE_READLINE= -#USE_READLINE= -DUSE_READLINE +#USE_READLINE= +USE_READLINE= -DUSE_READLINE # -READLINE_LIB= -READLINE_EXTRAS= +#READLINE_LIB= +#READLINE_EXTRAS= # #READLINE_LIB= -lreadline #READLINE_EXTRAS= -lhistory -lncurses @@ -910,6 +910,9 @@ #READLINE_LIB= -L/usr/local/lib -lreadline #READLINE_EXTRAS= -lhistory -lncurses # +READLINE_LIB= -L___PREFIX___/lib -lreadline +READLINE_EXTRAS= -lhistory -lncurses +# # For Apple OS X: install fink from http://fink.sourceforge.net # and then do a 'fink install readline' and then use: # @@ -1314,8 +1317,8 @@ CCOPT= ${DEBUG} CCMISC= ${DARWIN_ARCH} # -LCC= clang -CC= ${PURIFY} ${LCC} ${CCWERR} +LCC= ${CC} +#CC= ${PURIFY} ${LCC} ${CCWERR} # # Darwin dynamic shared lib filenames LIB_EXT:= .dylib