# Hey, Emacs, this is a -*- Makefile -*- # # $Id: makefile.cyg,v 1.27.2.2 2008/02/23 11:19:39 mikulik Exp $ # # # GNUPLOT Makefile for Cygwin on WinNT and Win95/98/2000 # # To compile gnuplot for WinXX: # # - check the beginning of this file settings you may want to change # You'll have to tell it where to find the Help Compiler, among other # things. # - compile the package: go to directory 'gnuplot' and therefrom run # make -C src -f ../config/makefile.cyg # - resource compiler used is windres.exe in Cygwin # - note pdf, png, and gif libraries if used have to be build for Cygwin # with -mno-cygwin option # - -static used for static linking to libz-w.a and libpng-w.a # # # ************** Begin of Configuration section ************************ # # Comment out the definition lines to disable the according features: # GIF, PNG, JPEG device drivers # Requires gd library. There are two possibilities how to configure these # drivers for use in gnuplot, depending on the gd version. See README.1ST for # more details. # # You should compile gnuplot with GD library v2.0 or newer. # This library writes PNG, GIF and JPEG images. # If libgd has been compiled with TrueType font support, then you can use # scaled TrueType fonts in png images. If not, then uncomment FREETYPE. # Requires GD, PNG and Z libraries, optionally libfreetype. # NEWGD=1 JPEG=1 FREETYPE=1 # PDF device driver # may require PNG and Z libraries based on particular PDF library used #PDF=1 # DEBUGging support # creates binaries suitable for debugging. Some bugs may come and go # as opposed to a production build since we lower the optimization level #DEBUG=1 # MOUSE support for the windows terminal MOUSE=1 # PIPES: define if you would prefer support of pipes undef Windows (e.g. # plot '$@ else # sequence of terminals according to "ls term/*.trm": allterm.h: $(CORETERM) @echo "Building allterm.h" @cat ../term/*.trm > allterm.c $(CPP) $(CFLAGS) -I$../term -DTERM_DRIVER_H -DTERM_HELP allterm.c | \ sed '/^ *$$/d;/^#/d' > allterm.h @rm -f allterm.c endif doc2tex.exe: $(D)doc2tex.c $(D)termdoc.c allterm.h $(LD) $(LDFLAGS) -o $@ -DWINDOWS_NO_GUI -DALL_TERM_DOC $(CFLAGS) -I. -I$(D) -I../term -I$(T) $(D)doc2tex.c $(D)termdoc.c else # Old version: generate documentation with only currently used terminals: doc2tex.exe: $(D)doc2tex.c $(D)termdoc.c $(LD) $(LDFLAGS) -o $@ -DWINDOWS_NO_GUI $(CFLAGS) -I. -I$(D) -I$(T) $^ endif gnuplot.tex: $(D)gnuplot.doc doc2tex.exe doc2tex $(D)gnuplot.doc gnuplot.tex # Call LaTeX three times to get the toc right. gnuplot.dvi: gnuplot.tex $(D)titlepag.tex cp gnuplot.tex $(D)gp_tex2.tex cp $(D)../VERSION $(D) cd $(D) && latex gp_tex2.tex && latex gp_tex2.tex && latex gp_tex2.tex mv $(D)gp_tex2.dvi gnuplot.dvi rm -f $(D)gp_tex2.* gnuplot.ps: gnuplot.dvi dvips -o gnuplot.ps gnuplot.dvi gnuplot.pdf: gnuplot.tex $(D)titlepag.tex cp gnuplot.tex $(D)gp_tex2.tex cp $(D)../VERSION $(D) cd $(D) && pdflatex gp_tex2.tex && pdflatex gp_tex2.tex \ && pdflatex gp_tex2.tex mv $(D)gp_tex2.pdf gnuplot.pdf rm -f $(D)gp_tex2.* # clean up temporary files clean: $(RM) config.h *.$(O) wgnuplot.map wgnuplot.res win/gnuplot.rtf $(RM) doc2rtf.exe win/wgnuplib.res wgnuplib.map wgnuplot.lib $(RM) $(M)bf_test.exe *.ico geticon.exe allterm.h allterm.c $(RM) gnuplot.tex gnuplot.dvi gnuplot.ps gnuplot.pdf realclean: veryclean veryclean: clean $(RM) wgnuplot.exe wgnuplot.hlp wgnuplot.mnu wgnuplot.gid $(RM) $(M)binary[123] $(M)fit.log $(M)soundfit.par $(RM) pgnuplot.exe # now move the whole stuff to its destination install: default mkdir -p $(DESTDIR) cp wgnuplot.exe $(DESTDIR)/wgnuplot.exe cp win/wgnuplot.mnu $(DESTDIR)/wgnuplot.mnu cp wgnuplot.hlp $(DESTDIR)/wgnuplot.hlp cp pgnuplot.exe $(DESTDIR)/pgnuplot.exe