--- Makefile.orig 2018-09-27 08:46:20.000000000 -0400 +++ Makefile 2018-09-27 10:09:41.000000000 -0400 @@ -575,7 +575,7 @@ ifeq ($(target),Darwin) # default INCDIR for macOS -INCDIR= /usr/local/include +INCDIR=___SDK_PREFIX___/usr/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 */ @@ -690,7 +690,7 @@ # #CALC_INCDIR= /usr/local/include/calc #CALC_INCDIR= /dev/env/DJDIR/include/calc -CALC_INCDIR= ${INCDIR}/calc +CALC_INCDIR= ___PREFIX___/include/calc # By default, these values are based CALC_SHAREDIR, INCDIR, BINDIR # --------------------------------------------------------------- @@ -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 @@ -2176,7 +2179,7 @@ # ### -all: check_include ${BLD_TYPE} CHANGES +all: ${BLD_TYPE} CHANGES check_include: $(Q) if [ ! -d /usr/include ]; then \ @@ -4528,7 +4531,7 @@ else \ ${TRUE}; \ fi - -${Q} if [ ! -d ${T}${INCDIR} ]; then \ + -${Q} if /usr/bin/false; then \ echo ${MKDIR} -p ${T}${INCDIR}; \ ${MKDIR} -p ${T}${INCDIR}; \ echo ${CHMOD} 0755 ${T}${INCDIR}; \