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

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

1.1       maekawa     1: #
                      2: # GNUPLOT makefile for GCC-ST 1.x and 2.x
                      3: # in a cross development environment (unix) or a native TOS environment
                      4: # (see configuration section)
                      5: #
                      6: # Modified from the BorlandC makefile by Alexander Lehmann
                      7: # Modified by Dirk Stadler for outboard terminal support
                      8: #
                      9: # produces executable which pipes data to the GCLIENT.PRG
                     10:
                     11: # -------------------- begin of configuration section -----------------------
                     12:
                     13: # CC is name of compiler producing TOS executables
                     14: # HOSTCC is the name of the native compiler
                     15: # SL is the path separator (/ for unix or UNIXMODE, \ for standard TOS)
                     16:
                     17: # settings for crosscompiling:
                     18: CC = gcc
                     19: HOSTCC = gcc
                     20: SL=/
                     21: MATHLIB= -lpml
                     22:
                     23: # settings for native compiling:
                     24: #CC = gcc
                     25: #HOSTCC = $(CC)
                     26: #SL=\
                     27: #MATHLIB= -lpml
                     28:
                     29: # -O means optimisation in general
                     30: #  o-f-p avoids link-unlink instructions
                     31: #  s-r  optimisation of loops and elimination of iterations variables
                     32: #  c-r  improve register movement
                     33: # if you have GCC 2.x (and time), you can choose the -O2 option
                     34:
                     35: # first line for GCC 1.x, second and third for GCC 2.x
                     36:
                     37: #OPTFLAGS = -O -fomit-frame-pointer -fstrength-reduce -fcombine-regs
                     38: #OPTFLAGS = -O -fomit-frame-pointer -fstrength-reduce
                     39: OPTFLAGS = -O2 -fomit-frame-pointer
                     40:
                     41: TTFLAGS  = -m68020 -m68881
                     42: COMMON   = -DMTOS -DREADLINE -DPIPES -DHAVE_STRNICMP -DNO_FLOAT_H -I. -I..
                     43:
                     44: # note that current versions of gcc for Atari may very well have float.h
                     45: # if anyone can verify this, please fix it.
                     46:
                     47: # -c means don't link
                     48: # -DREADLINE to use the history/line editing capability. If you want this
                     49: #            capability add -DREADLINE to CFLAGS
                     50:
                     51: # NOTE: since readline is the only place where AES events are processed, the
                     52: #         new (window) version will no longer work without -DREADLINE
                     53:
                     54: CFLAGS     = -c $(OPTFLAGS) $(COMMON)
                     55: LDFLAGS    = -lpml -lgem
                     56:
                     57: CFLAGS30   = -c $(OPTFLAGS) $(TTFLAGS) $(COMMON)
                     58: LDFLAGS30  = -lgem -lgnu020
                     59:
                     60: LDFLAGSSFP = -lpmlsfp -lgem -lgnusfp
                     61:
                     62: TERMFLAGS  =
                     63:
                     64: # where to place gnuplot.gih helpfile
                     65: HELPFILE=gnuplot.gih
                     66:
                     67: # gnuplot.doc as Tex-File
                     68: TEXFILE=docs/gnuplot.tex
                     69:
                     70: # -------------------- end of configuration section -------------------------
                     71:
                     72: OBJS   = bitmap.o command.o contour.o eval.o graphics.o graph3d.o \
                     73:             hidden3d.o util3d.o help.o internal.o misc.o parse.o \
                     74:             plot.o readline.o scanner.o set.o show.o specfun.o \
                     75:             standard.o stdfn.o term.o util.o version.o binary.o fit.o \
                     76:             matrix.o alloc.o datafile.o plot2d.o plot3d.o interpol.o
                     77:
                     78: OBJS30 = bitmap.o0 command.o0 contour.o0 eval.o0 graphics.o0 graph3d.o0 \
                     79:             hidden3d.o0 util3d.o0 help.o0 internal.o0 misc.o0 parse.o0 \
                     80:             plot.o0 readline.o0 scanner.o0 set.o0 show.o0 specfun.o0 \
                     81:             standard.o0 stdfn.o0 term.o0 util.o0 version.o0 binary.o0 fit.o0 \
                     82:             matrix.o0 alloc.o0 datafile.o0 plot2d.o0 plot3d.o0 interpol.o0
                     83:
                     84: # path prefix for the term subdirectory
                     85: TERM  = term$(SL)
                     86:
                     87: TERMS = $(TERM)atariaes.trm $(TERM)atarivdi.trm $(TERM)multitos.trm \
                     88:         $(TERM)dumb.trm $(TERM)eepic.trm \
                     89:         $(TERM)epson.trm $(TERM)hpgl.trm $(TERM)hpljii.trm $(TERM)hppj.trm \
1.1.1.2 ! ohara      90:         $(TERM)latex.trm $(TERM)pbm.trm $(TERM)pdf.trm $(TERM)post.trm \
        !            91:        $(TERM)svg.trm $(TERM)texdraw.trm
1.1       maekawa    92:
                     93: all: gnuplot.tos gnuplt30.tos gpltsfp.tos $(HELPFILE) $(TEXFILE) demo$(SL)binary1
                     94:
                     95: gnuplot.tos:  $(OBJS)
                     96:                 $(CC) -o $@ $(OBJS) $(LDFLAGS)
                     97:                 fixstk 120k $@
                     98:                 xstrip -k $@
                     99:
                    100: gnuplt30.tos: $(OBJS30)
                    101:                 $(CC) -o $@ $(OBJS30) $(LDFLAGS30)
                    102:                 fixstk 120k $@
                    103:                 xstrip -k $@
                    104:
                    105: gpltsfp.tos: $(OBJS)
                    106:                 $(CC) -o $@ $(OBJS) $(LDFLAGSSFP)
                    107:                 fixstk 120k $@
                    108:                 xstrip -k $@
                    109:
                    110: # to run bivariat demo ca. 100k stack is needed, all others work with ca. 32k
                    111:
                    112: # default rules
                    113:
                    114: %.o:  %.c
                    115:         $(CC) -o $@ $(CFLAGS) $<
                    116:
                    117: %.o0: %.c
                    118:         $(CC) -o $@ $(CFLAGS30) $<
                    119:
                    120: # dependencies
                    121:
                    122: # for GNUPLOT.TOS and GPLTSFP.TOS
                    123:
                    124: alloc.o:     alloc.c plot.h
                    125: bitmap.o:    bitmap.c bitmap.h plot.h
                    126: binary.o:    binary.c plot.h
                    127: command.o:   command.c plot.h setshow.h help.h
                    128:                $(CC) -o $@ $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" $<
                    129: contour.o:   contour.c plot.h
                    130: datafile.o:  datafile.c plot.h fnproto.h binary.h setshow.h
                    131: eval.o:      eval.c plot.h
                    132: graphics.o:  graphics.c plot.h setshow.h
                    133: graph3d.o:   graph3d.c plot.h setshow.h
                    134: hidden3d.o:  hidden3d.c plot.h setshow.h
                    135: util3d.o:    util3d.c plot.h setshow.h
                    136: fit.o:       fit.c fit.h matrix.h plot.h
                    137: interpol.o:  interpol.c plot.h setshow.h
                    138: matrix.o:    matrix.c matrix.h fit.h
                    139: help.o:      help.c help.h
                    140: internal.o:  internal.c plot.h
                    141: misc.o:      misc.c plot.h setshow.h help.h
                    142: parse.o:     parse.c plot.h
                    143: plot.o:      plot.c plot.h fit.h setshow.h fnproto.h
                    144: plot2d.o:    plot2d.c plot.h setshow.h fit.h binary.h help.h
                    145: plot3d.o:    plot3d.c plot.h setshow.h binary.h help.h
                    146: readline.o:  readline.c
                    147: scanner.o:   scanner.c plot.h
                    148: show.o:      set.c plot.h setshow.h
                    149:                $(CC) -o $@ $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" $<
                    150: set.o:       show.c plot.h setshow.h
                    151: specfun.o:   plot.h specfun.c
                    152: standard.o:  standard.c plot.h
                    153: stdfn.o:     stdfn.c stdfn.h
                    154: term.o:      term.c term.h plot.h set.c show.c bitmap.h $(TERMS)
                    155:                $(CC) -o $@ $(CFLAGS) $(TERMFLAGS) -Iterm term.c
                    156: util.o:      util.c plot.h
                    157: version.o:   version.c
                    158:
                    159: # for GNUPLT30.TOS
                    160:
                    161: alloc.o0:    alloc.c plot.h
                    162: bitmap.o0:   bitmap.c bitmap.h plot.h
                    163: binary.o0:   binary.c plot.h
                    164: command.o0:  command.c plot.h setshow.h help.h
                    165:                $(CC) -o $@ $(CFLAGS30) -DHELPFILE=\"$(HELPFILE)\" $<
                    166: contour.o0:  contour.c plot.h
                    167: datafile.o0: datafile.c plot.h fnproto.h binary.h setshow.h
                    168: eval.o0:     eval.c plot.h
                    169: graphics.o0: graphics.c plot.h setshow.h
                    170: graph3d.o0:  graph3d.c plot.h setshow.h
                    171: hidden3d.o0: hidden3d.c plot.h setshow.h
                    172: util3d.o0:   util3d.c plot.h setshow.h
                    173: fit.o0:      fit.c fit.h matrix.h plot.h
                    174: interpol.o0: interpol.c plot.h setshow.h
                    175: matrix.o0:   matrix.c matrix.h fit.h
                    176: help.o0:     help.c help.h
                    177: internal.o0: internal.c plot.h
                    178: misc.o0:     misc.c plot.h setshow.h help.h
                    179: parse.o0:    parse.c plot.h
                    180: plot.o0:     plot.c plot.h fit.h setshow.h fnproto.h
                    181: plot2d.o0:   plot2d.c plot.h setshow.h fit.h binary.h help.h
                    182: plot3d.o0:   plot3d.c plot.h setshow.h binary.h help.h
                    183: readline.o0: readline.c
                    184: scanner.o0:  scanner.c plot.h
                    185: show.o0:     set.c plot.h setshow.h
                    186:                $(CC) -o $@ $(CFLAGS30) -DHELPFILE=\"$(HELPFILE)\" $<
                    187: set.o0:      show.c plot.h setshow.h
                    188: specfun.o0:  plot.h specfun.c
                    189: standard.o0: standard.c plot.h
                    190: stdfn.o):    stdfn.c stdfn.h
                    191: term.o0:     term.c term.h plot.h set.c show.c bitmap.h $(TERMS)
                    192:                $(CC) -o $@ $(CFLAGS30) $(TERMFLAGS) -Iterm term.c
                    193: util.o0:     util.c plot.h
                    194: version.o0:  version.c
                    195:
                    196: $(HELPFILE): doc2gih docs$(SL)gnuplot.doc
                    197:                doc2gih docs$(SL)gnuplot.doc $@
                    198:
                    199: $(TEXFILE):  doc2tex docs$(SL)gnuplot.doc
                    200:                doc2tex docs$(SL)gnuplot.doc $@
                    201:
                    202: doc2gih:     docs$(SL)doc2gih.c docs$(SL)termdoc.c
                    203:                $(HOSTCC) -I. -I.. -Idocs -o $@ $<
                    204:
                    205: doc2tex:     docs$(SL)doc2tex.c docs$(SL)termdoc.c
                    206:                $(HOSTCC) -DALL_TERM_DOC -I. -I.. -Idocs -o $@ $<
                    207:
                    208: bf_test:     bf_test.c binary.c alloc.c
                    209:             $(HOSTCC) -DMTOS -o $@ bf_test.c binary.c alloc.c $(MATHLIB)
                    210:
                    211: demo$(SL)binary1: bf_test
                    212:             (cd demo; ../bf_test)
                    213:
                    214: clean: # remove temporary files, but leave executable intact
                    215:                 rm -f $(OBJS) $(OBJS30) $(OBJSSFP) bf_test.o
                    216:
                    217: realclean:    clean # remove all files generated by make
                    218:                 rm -f *.tos doc2gih doc2tex bf_test
                    219:                 rm -f demo$(SL)binary1 demo$(SL)binary2 demo$(SL)binary3
                    220:                 rm -f $(HELPFILE) $(TEXFILE)
                    221:
                    222: # empty rules for file extensions (some makes might need this)
                    223: %.trm:
                    224:
                    225: %.doc:
                    226:

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