--- Makefile.orig 2020-06-19 14:55:49 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 @@ -12,10 +12,11 @@ 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 -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)\' @@ -124,7 +125,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) ||: