--- Makefile.orig 2015-07-13 12:31:19.000000000 +0900 +++ Makefile 2015-07-18 08:34:18.463818755 +0900 @@ -3,26 +3,26 @@ GUIVERSION = '".54"' VERSION=6.3.54 ALIGNSIZE = 8 -LIBDIR = '"/usr/local/lib/Ngraph"' -INSTALLDIR = /usr/local/lib/Ngraph -BINDIR = /usr/local/bin +LIBDIR = '"${PREFIX}/lib/Ngraph"' +INSTALLDIR = ${DESTDIR}${PREFIX}/lib/Ngraph +BINDIR = ${DESTDIR}${PREFIX}/bin # # ############################################################################### # # Linux + Open Motif 2.1 [dynamic link] # -CC = gcc -CCOPTION = -O2 -MAKE = make -AR = ar -RANLIB = ranlib -STRIP = strip -DEFS = -DJAPANESE -PLATFORM = '"for X11 [Linux(glibc2) + Open Motif]"' -X11INCLUDE = -STATICLINK = -X11LIB = -L/usr/X11R6/lib -lm -lXm -lXext -lXt -lXp -lX11 -lICE -lSM +#CC = gcc +#CCOPTION = -O2 +#MAKE = make +#AR = ar +#RANLIB = ranlib +#STRIP = strip +#DEFS = -DJAPANESE +##PLATFORM = '"for X11 [Linux(glibc2) + Open Motif]"' +#X11INCLUDE = +#STATICLINK = +#X11LIB = -L/usr/X11R6/lib -lm -lXm -lXext -lXt -lXp -lX11 -lICE -lSM # # ############################################################################### @@ -150,17 +150,18 @@ # # (Thanks to MIHIRA Sanpei Yoshiro ) # -#CC = gcc -#CCOPTION = ${CFLAGS} -#MAKE = gmake -#AR = ar -#RANLIB = ranlib -#STRIP = strip -#DEFS = -DJAPANESE -#PLATFORM = '"for X11 [FreeBSD+Motif2.1]"' -#X11INCLUDE = -I/usr/X11R6/include -I/usr/dt/include -#STATICLINK = /usr/dt/lib/libXm.a -#X11LIB = -L/usr/X11R6/lib -L/usr/dt/lib -lm -lXext -lXt -lXp -lX11 -lICE -lSM -lxpg4 +CC ?= gcc +CFLAGS ?= -O -pipe +CCOPTION = ${CFLAGS} +MAKE = gmake +AR = ar +RANLIB = ranlib +STRIP = strip +DEFS = -DJAPANESE +PLATFORM = '"for X11 [FreeBSD+Motif2.1]"' +X11INCLUDE = -I${LOCALBASE}/include -I/usr/dt/include +STATICLINK = +X11LIB = ${MOTIFLIB} -lm -L${LOCALBASE}/lib -lXext -lXt -lXp -lX11 -lICE -lSM # ###############################################################################