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

Annotation of OpenXM_contrib/gnuplot/makefile.tc, Revision 1.1.1.2

1.1       maekawa     1: # make file for Borland C++ 3.x
                      2: # uses Borland proprietary overlay manager
                      3: # Modified from the TurboC makefile by Maurice Castro
                      4: # The compile and link includes debug flags.  Take them out if you
                      5: # do not want them included  (-y -v -M, /m /s /v /l)
                      6: #
                      7: # the makefile no longer depends on a linker options file.
                      8: # this file will be created as needed.                         (AL 07/17/92)
                      9: #
                     10: # The compiler commands lines have become too long so I
                     11: # modified the make file to use an options file to store $(CFLAGS)
                     12: #                                                              (ALM 08/08/94)
                     13: #
                     14: # You will probably also need to edit term.h to not include some of the
                     15: # terminal types which you are not going to use, otherwise you will get a
                     16: # message about too much global data defined in term.c.
                     17: #
                     18:
                     19: # where to place gnuplot.gih helpfile
                     20: HELPFILE = gnuplot.gih
                     21: # location of Turbo C compiler
                     22: TC = c:\bc
                     23: #TC = c:\tc
                     24: # name of C compiler
                     25: CC = bcc
                     26: #CC = tcc
                     27: # location of TLINK.EXE and TCC.EXE or BCC.EXE
                     28: BIN = $(TC)\bin\\
                     29: #BIN =
                     30: # location of BGI files,
                     31: # change this line if not in TC directory, i.e. $(TC)\bgi
                     32: BGI = $(TC)\bgi
                     33: # location of bgiobj.exe tool - convertion of BGI to a linkable OBJ file.
                     34: BGIOBJ = $(TC)\bgi\bgiobj
                     35: #BGIOBJ =
                     36: # location of the system libraries
                     37: LIB = $(TC)\lib\\
                     38: # Super VGA support: name and location of the SuperVGA driver
                     39: SVGA_BGI = c:\bc\bgi\svga256.bgi
                     40: # the memory model to use (l = large code, large data; h = huge)
                     41: MODEL = l
                     42:
                     43: # -c means don't link, -f means emulate 8087 if not present
                     44: # -m? says which model to use
                     45: # -M means produce link map
                     46: # -y means include line numbers for debugger
                     47: # -v means include debug info
                     48: # -w- means ignore warnings and do not report them
                     49: # -DREADLINE to use the history/line editing capability. If you want this
                     50: #    capability add -DREADLINE to CFLAGS
                     51: # -DLITE means no hiddenline removal to conserve memory
                     52: # -Z -2 -3 -G -O are optimization flags (-2 produces 286 only code)
                     53: #CFLAGS1 = -Ff=256 -c -f -m$(MODEL) -w- -Z -2 -G -O -n.
                     54: # HBB: specialise on '386 or higher, and take '-c' out, so
                     55: #      the flags can be used for doc2xxx and bf_test as well:
                     56: CFLAGS1 = -Ff=256 -f -m$(MODEL) -w- -Z -3 -f287 -d -G -n. -v -y
                     57: #CFLAGS2 = -I$(TC)\include -DLITE -DMSDOS -DPC -DREADLINE -DHAVE_STRNICMP
                     58: # HBB: try without -DLITE, to activate hidden-lining (for trying)
                     59: #      and #define ANSI_C!
                     60: CFLAGS2 = -I$(TC)\include -DMSDOS=1 -DPC -DANSI_C -DREADLINE=1 -DHAVE_GETCWD -DHAVE_STRNICMP
1.1.1.2 ! ohara      61: CFLAGS3 = -DHAVE_SLEEP -DEXTERN_ERRNO -DHAVE_STRING_H -DHAVE_VALUES_H -DHAVE_STRICMP
        !            62: CFLAGS4 = -DHAVE_TIME_H -DHAVE_TIME_T_IN_TIME_H
1.1       maekawa    63:
                     64: # separate set of FLAGS (both CFLAGS and LDFLAGS for the doc2xxx tools:
                     65: DOC2XXX_FLAGS = -Idocs -Iterm @cflags.tc -ml -L$(TC)\lib
                     66:
                     67: TERMFLAGS =
                     68:
                     69: # With Overlay Support
                     70: OVLY1 = -Y
                     71: OVLY2 = -Yo
                     72: OVERLIB = $(LIB)overlay
                     73: SLASHO = /o
                     74: ODASH = /o-
                     75: # Without Overlay Support
                     76: #OVLY1 =
                     77: #OVLY2 =
                     78: #OVERLIB =
                     79: #SLASHO =
                     80: #ODASH =
                     81:
                     82: OBJ1 =  bitmap.obj command.obj contour.obj eval.obj graphics.obj graph3d.obj
                     83: OBJ2 = help.obj internal.obj misc.obj parse.obj plot.obj plot2d.obj \
                     84:        plot3d.obj readline.obj
                     85: OBJ3 =  scanner.obj set.obj show.obj specfun.obj standard.obj stdfn.obj \
                     86:        term.obj time.obj util.obj
                     87: OBJ4 = version.obj binary.obj interpol.obj fit.obj matrix.obj
                     88: OBJ5 =  datafile.obj alloc.obj hidden3d.obj util3d.obj
                     89:
                     90: # uncomment svgaf.obj if you wish to include Super VGA support
                     91: OBJBGI= cgaf.obj egavgaf.obj hercf.obj attf.obj pc3270f.obj svgaf.obj
                     92:
                     93: OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJBGI)
                     94:
                     95: CSOURCE5 = term\aed.trm term\cgi.trm term\dumb.trm term\dxy.trm \
                     96:        term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
                     97:        term\hp2648.trm term\hpgl.trm term\hpljii.trm
                     98: CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
                     99:        term\iris4d.trm term\kyo.trm term\latex.trm term\pc.trm
                    100: CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
                    101:        term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
                    102:        term\v384.trm term\x11.trm
                    103: CSOURCE8 = contour.c specfun.c binary.c interpol.c
                    104:
                    105: all: cflags.tc gnuplot.exe $(HELPFILE) demo\bf_test.exe
                    106:
                    107: # use linkopt.tc and cflags.tc to avoid command-line overflow
                    108:
                    109: gnuplot.exe: $(OBJS) linkopt.tc cflags.tc
                    110: # With or without debug information (select one)
                    111:        $(BIN)tlink /m /s /v /l @linkopt.tc
                    112: #      $(BIN)tlink @linkopt.tc
                    113:
                    114: # create linker options file
                    115: # note that when you change the model or switch overlaying,
                    116: # you will have to execute 'make clean'
                    117:
                    118: linkopt.tc: makefile.tc
                    119:        echo  >linkopt.tc $(LIB)C0$(MODEL) +
                    120:        echo >>linkopt.tc $(SLASHO) $(OBJ1) +
                    121:        echo >>linkopt.tc $(OBJ2) +
                    122:        echo >>linkopt.tc $(OBJ3) +
                    123:        echo >>linkopt.tc $(OBJ4) +
                    124:        echo >>linkopt.tc $(OBJ5) +
                    125:        echo >>linkopt.tc $(ODASH) $(OBJBGI) +
                    126:        echo >>linkopt.tc ,gnuplot,gnuplot, +
                    127:        echo >>linkopt.tc $(OVERLIB) +
                    128:        echo >>linkopt.tc $(LIB)emu +
                    129:        echo >>linkopt.tc $(LIB)math$(MODEL) +
                    130:        echo >>linkopt.tc $(LIB)c$(MODEL) +
                    131:        echo >>linkopt.tc $(LIB)graphics
                    132: #      echo >>linkopt.tc -----
                    133: #      echo >>linkopt.tc this file is generated automatically. don't change it, change the makefile.
                    134:
                    135: # Create an options file for the C flags to avoid command line overflow
                    136: # (the only way I could think of to make sure this file was up to date
                    137: # and present when needed was to make all object files dependant upon
                    138: # it - ugly) <- this may cause error, do make clean instead.
                    139: cflags.tc: makefile.tc
                    140:        echo  >cflags.tc $(CFLAGS1)
                    141:        echo >>cflags.tc $(CFLAGS2)
                    142:        echo >>cflags.tc $(CFLAGS3)
1.1.1.2 ! ohara     143:         echo >>cflags.tc $(CFLAGS4)
1.1       maekawa   144:
                    145:
                    146:
                    147: # default rules
                    148:
                    149: .c.obj:
                    150:        $(BIN)$(CC) -c $(OVLY2) @cflags.tc $<
                    151:
                    152: # The default for files is to be compiled for overlaying if OVLY1 and
                    153: # OVLY2 are defined.  plot.c and parse.c are not suitable for overlaying.
                    154:
                    155: bitmap.obj: bitmap.c bitmap.h plot.h
                    156:
                    157: command.obj: command.c plot.h setshow.h help.h fit.h
                    158:         $(BIN)$(CC) -c $(OVLY2) @cflags.tc -DHELPFILE=\"$(HELPFILE)\" command.c
                    159:
                    160: contour.obj: contour.c plot.h
                    161:
                    162: eval.obj: eval.c plot.h
                    163:
                    164: graphics.obj: graphics.c plot.h setshow.h
                    165:
                    166: graph3d.obj: graph3d.c plot.h setshow.h
                    167:
                    168: hidden3d.obj: hidden3d.c plot.h setshow.h
                    169:
                    170: util3d.obj: util3d.c plot.h setshow.h
                    171:
                    172: fit.obj: fit.c fit.h matrix.h plot.h
                    173:
                    174: matrix.obj: matrix.c matrix.h fit.h
                    175:
                    176: help.obj: help.c plot.h help.h
                    177:
                    178: internal.obj: internal.c plot.h
                    179:
                    180: misc.obj: misc.c plot.h setshow.h help.h
                    181:
                    182: parse.obj: parse.c plot.h
                    183:         $(BIN)$(CC) -c $(OVLY1) @cflags.tc parse.c
                    184:
                    185: plot.obj: plot.c plot.h setshow.h
                    186:         $(BIN)$(CC) -c $(OVLY1) @cflags.tc plot.c
                    187:
                    188: readline.obj: readline.c
                    189:
                    190: scanner.obj: scanner.c plot.h
                    191:
                    192: set.obj: set.c plot.h setshow.h
                    193:
                    194: show.obj: show.c plot.h setshow.h
                    195:        $(BIN)$(CC) -c $(OVLY2) @cflags.tc -DHELPFILE="$(HELPFILE)" show.c
                    196:
                    197: specfun.obj: specfun.c
                    198:
                    199: standard.obj: standard.c plot.h
                    200:
                    201: stdfn.obj: stdfn.c stdfn.h
                    202:
                    203: interpol.obj: interpol.c plot.h setshow.h
                    204:
                    205: # the CSOURCE? dependencies are not up to date (but who cares)
                    206: term.obj: term.c term.h plot.h set.c show.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
                    207:         $(BIN)$(CC) -c $(OVLY2) @cflags.tc $(TERMFLAGS) -DDEFAULTTERM="dospc" -Iterm -I. term.c
                    208:
                    209: util.obj: util.c plot.h
                    210:
                    211: version.obj: version.c
                    212:
                    213: # convert gnuplot.doc to gnuplot.gih
                    214: $(HELPFILE): doc2gih.exe docs\gnuplot.doc
                    215:        doc2gih docs\gnuplot.doc $(HELPFILE)
                    216:
                    217: doc2gih.exe: docs\doc2gih.c docs\termdoc.c
                    218:     $(BIN)$(CC) $(DOC2XXX_FLAGS) -edoc2gih.exe docs\doc2gih.c docs\termdoc.c
                    219:
                    220: doc2tex.exe: docs\doc2tex.c
                    221:     $(BIN)$(CC) $(DOC2XXX_FLAGS) -DALL_TERM_DOC docs\doc2tex.c
                    222:
                    223: demo\bf_test.exe: bf_test.c binary.obj alloc.obj
                    224:        $(BIN)$(CC) -edemo\bf_test.exe @cflags.tc -L$(TC)\lib bf_test.c binary.obj alloc.obj
                    225:        cd demo
                    226:        bf_test
                    227:        cd ..
                    228:
                    229: # convert Borland Graphics Interface files to object for linking
                    230: cgaf.obj: $(BGI)\cga.bgi
                    231:        $(BGIOBJ) /F $(BGI)\cga
                    232:
                    233: egavgaf.obj: $(BGI)\egavga.bgi
                    234:        $(BGIOBJ) /F $(BGI)\egavga
                    235:
                    236: hercf.obj: $(BGI)\herc.bgi
                    237:        $(BGIOBJ) /F $(BGI)\herc
                    238:
                    239: attf.obj: $(BGI)\att.bgi
                    240:        $(BGIOBJ) /F $(BGI)\att
                    241:
                    242: pc3270f.obj: $(BGI)\pc3270.bgi
                    243:        $(BGIOBJ) /F $(BGI)\pc3270
                    244:
                    245: svgaf.obj: $(SVGA_BGI)
                    246:        $(BGIOBJ) /F $(SVGA_BGI) svgaf.obj _SVGA_driver_far SVGA_TEXT
                    247:
                    248: # $(OBJS): cflags.tc # this causes error message
                    249:
                    250: # clean target - remove all temp files, but leave executable intact
                    251: # needed when changing configuration (model or overlaying)
                    252:
                    253: clean:
                    254:        del *.obj
                    255:        del gnuplot.map
                    256:        del linkopt.tc
                    257:        del doc2gih.exe
                    258:        del cflags.tc
                    259:
                    260: # realclean target - remove all files created by the makefile
                    261:
                    262: realclean: clean
                    263:        del gnuplot.exe
                    264:        del gnuplot.gih
                    265:        del demo\soundfit.par
                    266:        del demo\fit.log
                    267:        del demo\bf_test.exe
                    268:        del demo\bf_test.map
                    269:        del demo\binary1
                    270:        del demo\binary2
                    271:        del demo\binary3

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