--- Makefile.orig 2021-07-13 20:35:55 UTC +++ Makefile @@ -1,5 +1,5 @@ -FC = gfortran -CC = gcc +FC = %%FC%% +CC = %%CC%% # FEATURES to enable during compilation # all: READLINE NCURSES GD TIFF VPX CAIRO X11 GKS OPENGL PLOT XCLIP @@ -12,11 +12,12 @@ PREFIX = $(DESTDIR)/usr/local BINDIR = $(PREFIX)/bin # where to find additional dataplot files (help, menus, etc). -DPLIBDIR=$(PREFIX)/lib/dataplot +DPLIBDIR=$(DESTDIR)%%DATADIR%% #FFLAGS += -O2 -DLINUX -fdefault-real-8 -fdefault-double-8 -fmax-stack-var-size=1000000 -Wall -FFLAGS += -O2 -DLINUX -fdefault-real-8 -fdefault-double-8 -Wall -CFLAGS += -O2 +FFLAGS += %%FFLAGS%% +CFLAGS += %%CFLAGS%% -I%%LOCALBASE%%/include +LDFLAGS += -L%%LOCALBASE%%/lib # special flags for dp1 DP1FLAGS = -DDDOUBLE -DINTEGER32 -DHAVE_ISNAN -DHAVE_EXECUTE_COMMAND_LINE -DDPLIBDIR=\'$(DPLIBDIR)\' @@ -129,7 +130,7 @@ clean: install: dataplot xdataplot @echo installing binary to $(BINDIR) -[ ! -d $(BINDIR) ] && mkdir -vp $(BINDIR) ||: - install -pm 755 -t $(BINDIR) dataplot xdataplot + install -pm 755 *dataplot $(BINDIR) @echo installing libs to $(DPLIBDIR) -[ ! -d $(DPLIBDIR) ] && mkdir -vp $(DPLIBDIR) ||: