PGPLOT Installation Instructions: GNU-Win32

The GNU-Win32 tools are ports of the popular GNU development tools to Windows NT/95 for the x86 and PowerPC processors.

To install PGPLOT in this environment, using g77 and gcc, follow the UNIX installation instructions, using the following configuration file. (Better support will be provided in a future version of PGPLOT.)

# The GNU g77 FORTRAN compiler and Gnu gcc C compiler.
#----------------------------------------------------------------------
   XINCL=""
   MOTIF_INCL=""
   FCOMPL="g77"
   FFLAGC="-Wall -O"
   FFLAGD="-fno-backslash"
   CCOMPL="gcc"
   CFLAGC="-DPG_PPU -O2"
   CFLAGD="-O2"
   PGBIND_FLAGS="bsd"
   LIBS=""
   RANLIB="ranlib"
   PGPLOT_LIB="-L\`pwd\` -lpgplot"
   CPGPLOT_LIB="-L\`pwd\` -lcpgplot -lpgplot"
This was contributed by David Billinghurst (David.Billinghurst@riotinto.com.au), who writes:

To date I have only used PSDRIV.

There is a problem making libpgplot.a. I suspect a gnuwin32 bug. To work around it edit the makefile generated by makemake. Change

libpgplot.a : $(PG_ROUTINES) $(PG_NON_STANDARD) $(GR_ROUTINES) \
	   $(DISPATCH_ROUTINE) $(DRIVERS) $(SYSTEM_ROUTINES)
	ar ru libpgplot.a \
		`ls $(PG_ROUTINES) \
		$(PG_NON_STANDARD) $(GR_ROUTINES) $(DISPATCH_ROUTINE) \
		$(DRIVERS) $(SYSTEM_ROUTINES) | sort | uniq`
	$(RANLIB) libpgplot.a
to
libpgplot.a : $(PG_ROUTINES) $(PG_NON_STANDARD) $(GR_ROUTINES) \
	   $(DISPATCH_ROUTINE) $(DRIVERS) $(SYSTEM_ROUTINES)
	ar ru libpgplot.a $^ 
	$(RANLIB) libpgplot.a

PGPLOT
Tim Pearson, California Institute of Technology, tjp·astro.caltech.edu
Copyright © 1997 California Institute of Technology