Annotation of OpenXM_contrib/gnuplot/makefile.wc, Revision 1.1
1.1 ! maekawa 1: # makefile for Watcom C 9.5a
! 2: # Modified from the TurboC makefile by Aurel Gabris
! 3: #
! 4: # the makefile does longer depends on a linker options file.
! 5: # this file will be created as needed. (AL 07/17/92)
! 6:
! 7: # where to place gnuplot.gih helpfile
! 8: HELPFILE = gnuplot.gih
! 9: # location of Watcom C compiler
! 10: WC = c:\watcom
! 11: # name of C compiler
! 12: CC = wcc386
! 13: # name of C compiler/linker
! 14: CL = wcl386
! 15: # name of linker
! 16: LINK = wlink
! 17: # location of WLINK.EXE and WCC386.EXE and WCL386.EXE
! 18: BIN = $(WC)\bin\
! 19: BINB = $(WC)\binb\
! 20: # location of the system libraries
! 21: LIB = $(WC)\lib386\
! 22:
! 23: # the memory model to use (f = flat)
! 24: MODEL = f
! 25:
! 26: # -w0 means ignore warnings and do not report them
! 27: # -d1{+} means include line numbers for debugger
! 28: # -d2 means full symbolic debug info
! 29: # -fpi means inline 80x87 instructions with emulation
! 30: # -fpi87 means inline 80x87 instructions
! 31: # -o{x} controls optimization
! 32: # a -> relax aliasing constraints
! 33: # f -> generate traceable stack frames as needed
! 34: # The selection of the optimization flags include some wizardry.
! 35: # Thus omiting any flags from the above two, may result in run-time
! 36: # errors.
! 37: # m -> generate inline 80x87 code for math functions
! 38: # d -> disable all optimizations (Watch out!)
! 39: # -DREADLINE to use the history/line editing capability. If you want this
! 40: # capability add -DREADLINE to CFLAGS
! 41: # -DLITE means no hiddenline removal to conserve memory
! 42: # option {stack=n} sets stack size to n
! 43: CFLAGS = -m$(MODEL) -omaf -fpi -fp3 -I$(WC)\include -UMSDOS -DDOS386 -DDOS32 -DPC -DREADLINE
! 44: DOC2XXX_FLAGS = -Idocs -Iterm $(CFLAGS) -L$(TC)\lib
! 45: TERMFLAGS =
! 46: LNKOPT = option{stack=100000}
! 47:
! 48: OBJ1 = bitmap.obj command.obj contour.obj eval.obj graphics.obj graph3d.obj
! 49: OBJ2 = help.obj internal.obj misc.obj parse.obj plot.obj plot2d.obj plot3d.obj readline.obj
! 50: OBJ3 = scanner.obj set.obj show.obj specfun.obj standard.obj term.obj time.obj util.obj
! 51: OBJ4 = version.obj binary.obj interpol.obj fit.obj matrix.obj
! 52: OBJ5 = datafile.obj alloc.obj hidden3d.obj util3d.obj
! 53:
! 54: OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5)
! 55:
! 56: CSOURCE5 = term\aed.trm term\cgi.trm term\dumb.trm term\dxy.trm &
! 57: term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm &
! 58: term\hp2648.trm term\hpgl.trm term\hpljii.trm
! 59: CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h term\iris4d.trm &
! 60: term\kyo.trm term\latex.trm term\pc.trm
! 61: CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm &
! 62: term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm &
! 63: term\v384.trm term\x11.trm
! 64: CSOURCE8 = contour.c specfun.c binary.c interpol.c
! 65:
! 66: all: gnuplot.exe $(HELPFILE) bf_test.exe .SYMBOLIC
! 67: @%null
! 68:
! 69: # use linkopt.wc to avoid command-line overflow
! 70:
! 71: gnuplot.exe: $(OBJS) linkopt.wc .PRECIOUS
! 72: $(BIN)$(LINK) $(LNKOPT) system dos4g name gnuplot file @linkopt.wc
! 73:
! 74: # create linker options file
! 75: # note that when you change the model or switch overlaying,
! 76: # you will have to execute 'make clean'
! 77:
! 78:
! 79: linkopt.wc: makefile.wc
! 80: echo >linkopt.wc {$(OBJ1)
! 81: echo >>linkopt.wc $(OBJ2)
! 82: echo >>linkopt.wc $(OBJ3)
! 83: echo >>linkopt.wc $(OBJ4)
! 84: echo >>linkopt.wc $(OBJ5)}
! 85: # echo >>linkopt.tc -----
! 86: # echo >>linkopt.tc this file is generated automatically. don't change it, change the makefile.
! 87:
! 88: # default rules
! 89:
! 90: .c.obj:
! 91: $(BIN)$(CC) $^& $(CFLAGS)
! 92:
! 93: bitmap.obj: bitmap.c bitmap.h plot.h
! 94:
! 95: command.obj: command.c plot.h setshow.h help.h fit.h
! 96: $(BIN)$(CC) $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" command.c
! 97:
! 98: contour.obj: contour.c plot.h
! 99:
! 100: eval.obj: eval.c plot.h
! 101:
! 102: graphics.obj: graphics.c plot.h setshow.h
! 103:
! 104: graph3d.obj: graph3d.c plot.h setshow.h
! 105:
! 106: hidden3d.obj: hidden3d.c plot.h setshow.h
! 107:
! 108: util3d.obj: util3d.c plot.h setshow.h
! 109:
! 110: fit.obj: fit.c fit.h matrix.h plot.h
! 111:
! 112: matrix.obj: matrix.c matrix.h fit.h
! 113:
! 114: help.obj: help.c plot.h help.h
! 115:
! 116: internal.obj: internal.c plot.h
! 117:
! 118: misc.obj: misc.c plot.h setshow.h help.h
! 119:
! 120: parse.obj: parse.c plot.h
! 121: $(BIN)$(CC) $(OVLY1) @cflags.tc parse.c
! 122:
! 123: plot.obj: plot.c plot.h setshow.h
! 124: $(BIN)$(CC) $(OVLY1) @cflags.tc plot.c
! 125:
! 126: readline.obj: readline.c
! 127:
! 128: scanner.obj: scanner.c plot.h
! 129:
! 130: set.obj: set.c plot.h setshow.h
! 131:
! 132: show.obj: show.c plot.h setshow.h
! 133: $(BIN)$(CC) $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" show.c
! 134:
! 135: specfun.obj: specfun.c
! 136:
! 137: standard.obj: standard.c plot.h
! 138:
! 139: interpol.obj: interpol.c plot.h setshow.h
! 140:
! 141: # the CSOURCE? dependencies are not up to date (but who cares)
! 142: term.obj: term.c term.h plot.h set.c show.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
! 143: $(BIN)$(CC) $(CFLAGS) $(TERMFLAGS) -DDEFAULTTERM="dospc" -Iterm term.c
! 144:
! 145: util.obj: util.c plot.h
! 146:
! 147: version.obj: version.c
! 148:
! 149: # convert gnuplot.doc to gnuplot.gih
! 150: $(HELPFILE): doc2gih.exe docs\gnuplot.doc
! 151: doc2gih docs\gnuplot.doc $(HELPFILE)
! 152:
! 153: doc2gih.exe: docs\doc2gih.c docs\termdoc.c
! 154: $(BINB)$(CL) $(DOC2XXX_FLAGS) name doc2gih docs\doc2gih.c docs\termdoc.c
! 155:
! 156: doc2tex.exe: docs\doc2tex.c docs\termdoc.c
! 157: $(BINB)$(CL) -w0 -m$(MODEL) $(DOC2XXX_FLAGS) -DALL_TERM_DOC -I$(WC)\include -L$(WC)\lib name doc2tex docs\doc2tex.c docs\termdoc.c
! 158:
! 159: bf_test.exe: bf_test.c binary.obj alloc.obj
! 160: $(BIN)$(CC) -m$(MODEL) bf_test.c
! 161: $(BIN)$(LINK) system dos4g name bf_test file {bf_test binary alloc}
! 162:
! 163: # clean target - remove all temp files, but leave executable intact
! 164: # needed when changing configuration (model or overlaying)
! 165:
! 166: clean: .SYMBOLIC
! 167: del *.obj
! 168: del linkopt.wc
! 169: del doc2gih.exe
! 170:
! 171: # realclean target - remove all files created by the makefile
! 172:
! 173: realclean: clean .SYMBOLIC
! 174: del gnuplot.exe
! 175: del gnuplot.gih
! 176: del demo\bf_test.exe
! 177: del demo\binary1
! 178: del demo\binary2
! 179: del demo\binary3
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>