--- Makefile.orig 2017-06-02 21:50:17.000000000 +0000 +++ Makefile 2017-09-02 10:54:09.000000000 +0000 @@ -571,7 +571,7 @@ #INCDIR= /usr/local/include #INCDIR= /dev/env/DJDIR/include -INCDIR= /usr/include +INCDIR= ___PREFIX___/include # Where to install calc related things # @@ -610,15 +610,15 @@ # #BINDIR= /usr/local/bin #BINDIR= /dev/env/DJDIR/bin -BINDIR= /usr/bin +BINDIR= ___PREFIX___/bin #LIBDIR= /usr/local/lib #LIBDIR= /dev/env/DJDIR/lib -LIBDIR= /usr/lib +LIBDIR= ___PREFIX___/lib #CALC_SHAREDIR= /usr/local/lib/calc #CALC_SHAREDIR= /dev/env/DJDIR/share/calc -CALC_SHAREDIR= /usr/share/calc +CALC_SHAREDIR= ___PREFIX___/share/calc # NOTE: Do not set CALC_INCDIR to /usr/include or /usr/local/include!!! # Always be sure that the CALC_INCDIR path ends in /calc to avoid @@ -685,7 +685,7 @@ # # If in doubt, use T= # -T= +T=___DESTROOT___ # where man pages are installed # @@ -696,7 +696,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 @@ -831,11 +831,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 @@ -846,6 +846,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: # @@ -1250,8 +1253,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 @@ -1263,16 +1266,6 @@ # DARWIN_ARCH= -arch ppc # PPC binary # DARWIN_ARCH= -arch x86_64 # native 64-bit binary DARWIN_ARCH= # native binary -# -# Starting with El Capitan OS X 10.11, root by default could not -# mkdir under system locations, so we now use the /usr/local tree. -# -OPTDIR:= /usr/local -BINDIR:= /${OPTDIR}/bin -LIBDIR:= /${OPTDIR}/lib -CALC_SHAREDIR:= /${OPTDIR}/share -CALC_INCDIR:= /${OPTDIR}/include -SCRIPTDIR:= ${BINDIR}/cscript endif ##################