[BACK]Return to makefile.mgw CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot

Annotation of OpenXM_contrib/gnuplot/makefile.mgw, Revision 1.1

1.1     ! maekawa     1: # To compile gnuplot for WinNT and Win95
        !             2: #
        !             3: # Changed for use with Cygwin/MinGW32 by HBB
        !             4: # compile the package with make -f makefile.mgw
        !             5: # the make utility for MinGW32 can be obtained the MinGW sites
        !             6: #
        !             7: # you need Cygwin's windres as of Mingw32-egcs-1.1b
        !             8: # this makefile was tested with Ming32egcs-1.1b and
        !             9: # Microsoft Help Workshop 4.03
        !            10: #
        !            11: #
        !            12:
        !            13: # where to place gnuplot.gih helpfile
        !            14: HELPFILE = wgnuplot.hlp
        !            15: TOP = .
        !            16:
        !            17: DESTDIR=/Progra~1/Gnuplot3.7
        !            18:
        !            19: # give here the path to your compiler (preferrably MinGW's one)
        !            20: GCCPATH=/mingw32/bin/
        !            21:
        !            22: # -c  means don't link
        !            23: # -I  means extra include directory
        !            24: # -O2 means optimize for speed
        !            25: # -g  means prepare for debugging
        !            26: # -mpentium means optimise for Pentium processor
        !            27: # -mpentiumpro means optimize for Pentium II and Pro procesors
        !            28:
        !            29: CC = $(GCCPATH)gcc
        !            30: LD = $(GCCPATH)gcc
        !            31: CFLAGS = -g -O2 -I$(TOP) -D_Windows -DNO_GIH -DHAVE_STRNICMP \
        !            32:        -DREADLINE -DGP_INLINE=inline -DHAVE_SLEEP -DANSI_C \
        !            33:        -DHAVE_GETCWD -DNEAR=
        !            34: LDFLAGS = -g
        !            35:
        !            36: RM = rm -f
        !            37: CP = cp -p
        !            38:
        !            39: #
        !            40: # to compile the .hlp file you need hcw
        !            41: # either out of Microsoft SDK or
        !            42: # Microsoft Help Workshop
        !            43: # the latter can be obtained at www.helpmaster.com/help/devaids.htm
        !            44: # put the path to hcw here
        !            45: #
        !            46: # the followind switches are for HCW 4.03
        !            47: #
        !            48: HCWPATH=/Program\ Files/Help\ Workshop/
        !            49: HCW = $(HCWPATH)hcw
        !            50: HCWFLAG=
        !            51:
        !            52: #
        !            53: # it seems for the moment that we need cygwin's windres
        !            54: # as the one shipped with mingw32/egcs 1.1b is buggy
        !            55: # the one with cygwin b20.1 is ok, so give here the complete path
        !            56: #
        !            57: RCPATH = /cygnus/cygwin-b20/H-i586-cygwin32/bin
        !            58: RC  = windres
        !            59: RCFLAGS=--include-dir /mingw32/include \
        !            60:        --define __WIN32__ --define __WIN95__ --define MSRC \
        !            61:        --define __GNUWIN32__
        !            62: RCOUT=wgplt_res.o
        !            63: RES2COFF=echo wgplt_res.o
        !            64:
        !            65: #
        !            66: # you can also use MS SDK's
        !            67: #
        !            68: #MSSDK=f:/mssdk/
        !            69: #RC=$(MSSDK)/bin/rc
        !            70: #RCFLAGS=-v -i$(MSSDK)/include -iwin \
        !            71: #      -dWIN32 -dMSRC
        !            72: #RCOUT=-fowgnuplot.res
        !            73: #RES2COFF=res2coff -i wgnuplot.res -o wgplt_res.o
        !            74:
        !            75:
        !            76: # see other terminal defines in term.h
        !            77: TERMFLAGS = -I$(TOP)/term
        !            78:
        !            79: # There shouldn't be anything to be changed below this line
        !            80: #=======================================================================
        !            81:
        !            82: # macros for makefile.all
        !            83: O=o
        !            84: T=term/
        !            85: D=docs/
        !            86: L=docs/latex/
        !            87: M=demo/
        !            88:
        !            89:
        !            90: default: wgnuplot.exe $(HELPFILE) wgnuplot.mnu $(M)bf_test.exe
        !            91:
        !            92: # include the 'core makefile template'
        !            93: include makefile.all
        !            94:
        !            95: OBJS = $(COREOBJS) version.$(O)
        !            96:
        !            97: WINOBJS = winmain.$(O) wgnuplib.$(O) wgraph.$(O) wprinter.$(O) wtext.$(O) wpause.$(O) wmenu.$(O)
        !            98:
        !            99: WINDOWS = makefile.win makefile.nt README.win win/wcommon.h \
        !           100:        win/wgnuplib.c win/wgnuplib.def win/wgnuplib.h win/wgnuplib.rc \
        !           101:        win/wgnuplot.def win/wgnuplot.hpj win/wgnuplot.mnu win/wgraph.c \
        !           102:        win/winmain.c win/wmenu.c win/wpause.c win/wprinter.c \
        !           103:        win/wresourc.h win/wtext.c win/wtext.h win/geticon.c \
        !           104:        docs/doc2rtf.c term/win.trm win/grpicon.ico win/texticon.ico
        !           105:
        !           106:
        !           107: # default rules
        !           108: .SUFFIXES: .exe .o .c
        !           109: .c.o:
        !           110:        $(CC) -c $(CFLAGS) $*.c
        !           111:
        !           112: LDLIBS = -lkernel32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -ladvapi32
        !           113:
        !           114: wgnuplot.exe: $(OBJS) $(WINOBJS) win/wgnuplot.def wgplt_res.o texticon.ico grpicon.ico
        !           115:        $(LD) $(LDFLAGS) -mwindows -o $@ $(OBJS) $(WINOBJS) wgplt_res.o $(LDLIBS)
        !           116:
        !           117: # rules
        !           118:
        !           119: wgplt_res.o :  win/wgnuplot.rc win/wgnuplib.rc win/wresourc.h texticon.ico grpicon.ico
        !           120:        $(RC) $(RCFLAGS) win/wgnuplot.rc $(RCOUT)
        !           121:        $(RES2COFF)
        !           122:
        !           123: show.o: show.c plot.h setshow.h
        !           124:        $(CC) -c $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" -DGNUPLOT_BINDIR=\"$(bindir)\" -c $<
        !           125:
        !           126: term.$(O): term.c term.h plot.h setshow.h bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
        !           127:        $(CC) -c $(CFLAGS) $(TERMFLAGS) term.c
        !           128:
        !           129: version.$(O): version.c
        !           130:
        !           131: WINDEPS = win/wgnuplib.h win/wcommon.h win/wresourc.h
        !           132:
        !           133: winmain.$(O): win/winmain.c win/wgnuplib.h win/wtext.h plot.h
        !           134:        $(CC) -c $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\"  win/winmain.c
        !           135:
        !           136: wgnuplib.$(O): win/wgnuplib.c $(WINDEPS)
        !           137:        $(CC) -c $(CFLAGS) win/wgnuplib.c
        !           138:
        !           139: wmenu.$(O): win/wmenu.c $(WINDEPS)
        !           140:        $(CC) -c $(CFLAGS) win/wmenu.c
        !           141:
        !           142: wtext.$(O): win/wtext.c $(WINDEPS)
        !           143:        $(CC) -c $(CFLAGS) win/wtext.c
        !           144:
        !           145: wpause.$(O): win/wpause.c $(WINDEPS)
        !           146:        $(CC) -c $(CFLAGS) win/wpause.c
        !           147:
        !           148: wprinter.$(O): win/wprinter.c $(WINDEPS)
        !           149:        $(CC) -c $(CFLAGS) win/wprinter.c
        !           150:
        !           151: wgraph.$(O): win/wgraph.c $(WINDEPS)
        !           152:        $(CC) -c $(CFLAGS) win/wgraph.c
        !           153:
        !           154: wgnuplot.mnu: win/wgnuplot.mnu
        !           155:        $(CP) $^ $@
        !           156:
        !           157: # extract icons from wgnuplot.rc
        !           158: texticon.ico: grpicon.ico
        !           159:
        !           160: grpicon.ico: geticon.exe win/wgnuplot.rc
        !           161:        ./geticon win/wgnuplot.rc
        !           162:
        !           163: geticon.exe: win/geticon.c
        !           164:        $(LD) $(LDFLAGS) -o $@ win/geticon.c
        !           165:
        !           166: # convert gnuplot.doc to gnuplot.rtf
        !           167: $(HELPFILE): doc2rtf.exe docs/gnuplot.doc win/wgnuplot.hpj
        !           168:        ./doc2rtf docs/gnuplot.doc win/gnuplot.rtf
        !           169:        $(HCW) \/c \/e win/wgnuplot.hpj
        !           170:
        !           171: doc2rtf.exe: docs/doc2rtf.c docs/termdoc.c docs/xref.c
        !           172:        $(LD) $(LDFLAGS) -o $@ $(CFLAGS) -I. -Idocs -Iterm $^
        !           173:
        !           174: #make binary demo files
        !           175: $(M)bf_test.exe : bf_test.c dbinary.$(O) alloc.$(O)
        !           176:        $(LD) $(LDFLAGS) $(CFLAGS) -U_Windows -o $@ $^
        !           177:        (cd demo ; ./bf_test.exe )
        !           178: #      cd ..
        !           179:
        !           180: # _Windows causes wtext.h to define fread() etc
        !           181: dbinary.$(O): binary.c
        !           182:        $(CC) -c $(CFLAGS) -U_Windows -o $@ $^
        !           183:
        !           184: # clean up temporary files
        !           185: clean:
        !           186:        $(RM) *.$(O) wgnuplot.map wgnuplot.res win/gnuplot.rtf
        !           187:        $(RM) doc2rtf.exe win/wgnuplib.res wgnuplib.map wgnuplot.lib
        !           188:        $(RM) demo/bf_test.exe *.ico geticon.exe
        !           189:
        !           190: realclean: veryclean
        !           191: veryclean: clean
        !           192:        $(RM) wgnuplot.exe wgnuplot.hlp wgnuplot.mnu wgnuplot.gid
        !           193:        $(RM) demo/binary[123] demo/fit.log demo/soundfit.par
        !           194:
        !           195: # now move the whole stuff to its destination
        !           196: install: default
        !           197:        -mkdir -p $(DESTDIR)
        !           198:        cp wgnuplot.exe $(DESTDIR)/wgnuplot.exe
        !           199:        cp win/wgnuplot.mnu $(DESTDIR)/wgnuplot.mnu
        !           200:        cp wgnuplot.hlp $(DESTDIR)/wgnuplot.hlp

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>