Annotation of OpenXM_contrib/gnuplot/makefile.mto, Revision 1.1
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 \
! 90: $(TERM)latex.trm $(TERM)pbm.trm $(TERM)post.trm $(TERM)texdraw.trm
! 91:
! 92: all: gnuplot.tos gnuplt30.tos gpltsfp.tos $(HELPFILE) $(TEXFILE) demo$(SL)binary1
! 93:
! 94: gnuplot.tos: $(OBJS)
! 95: $(CC) -o $@ $(OBJS) $(LDFLAGS)
! 96: fixstk 120k $@
! 97: xstrip -k $@
! 98:
! 99: gnuplt30.tos: $(OBJS30)
! 100: $(CC) -o $@ $(OBJS30) $(LDFLAGS30)
! 101: fixstk 120k $@
! 102: xstrip -k $@
! 103:
! 104: gpltsfp.tos: $(OBJS)
! 105: $(CC) -o $@ $(OBJS) $(LDFLAGSSFP)
! 106: fixstk 120k $@
! 107: xstrip -k $@
! 108:
! 109: # to run bivariat demo ca. 100k stack is needed, all others work with ca. 32k
! 110:
! 111: # default rules
! 112:
! 113: %.o: %.c
! 114: $(CC) -o $@ $(CFLAGS) $<
! 115:
! 116: %.o0: %.c
! 117: $(CC) -o $@ $(CFLAGS30) $<
! 118:
! 119: # dependencies
! 120:
! 121: # for GNUPLOT.TOS and GPLTSFP.TOS
! 122:
! 123: alloc.o: alloc.c plot.h
! 124: bitmap.o: bitmap.c bitmap.h plot.h
! 125: binary.o: binary.c plot.h
! 126: command.o: command.c plot.h setshow.h help.h
! 127: $(CC) -o $@ $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" $<
! 128: contour.o: contour.c plot.h
! 129: datafile.o: datafile.c plot.h fnproto.h binary.h setshow.h
! 130: eval.o: eval.c plot.h
! 131: graphics.o: graphics.c plot.h setshow.h
! 132: graph3d.o: graph3d.c plot.h setshow.h
! 133: hidden3d.o: hidden3d.c plot.h setshow.h
! 134: util3d.o: util3d.c plot.h setshow.h
! 135: fit.o: fit.c fit.h matrix.h plot.h
! 136: interpol.o: interpol.c plot.h setshow.h
! 137: matrix.o: matrix.c matrix.h fit.h
! 138: help.o: help.c help.h
! 139: internal.o: internal.c plot.h
! 140: misc.o: misc.c plot.h setshow.h help.h
! 141: parse.o: parse.c plot.h
! 142: plot.o: plot.c plot.h fit.h setshow.h fnproto.h
! 143: plot2d.o: plot2d.c plot.h setshow.h fit.h binary.h help.h
! 144: plot3d.o: plot3d.c plot.h setshow.h binary.h help.h
! 145: readline.o: readline.c
! 146: scanner.o: scanner.c plot.h
! 147: show.o: set.c plot.h setshow.h
! 148: $(CC) -o $@ $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" $<
! 149: set.o: show.c plot.h setshow.h
! 150: specfun.o: plot.h specfun.c
! 151: standard.o: standard.c plot.h
! 152: stdfn.o: stdfn.c stdfn.h
! 153: term.o: term.c term.h plot.h set.c show.c bitmap.h $(TERMS)
! 154: $(CC) -o $@ $(CFLAGS) $(TERMFLAGS) -Iterm term.c
! 155: util.o: util.c plot.h
! 156: version.o: version.c
! 157:
! 158: # for GNUPLT30.TOS
! 159:
! 160: alloc.o0: alloc.c plot.h
! 161: bitmap.o0: bitmap.c bitmap.h plot.h
! 162: binary.o0: binary.c plot.h
! 163: command.o0: command.c plot.h setshow.h help.h
! 164: $(CC) -o $@ $(CFLAGS30) -DHELPFILE=\"$(HELPFILE)\" $<
! 165: contour.o0: contour.c plot.h
! 166: datafile.o0: datafile.c plot.h fnproto.h binary.h setshow.h
! 167: eval.o0: eval.c plot.h
! 168: graphics.o0: graphics.c plot.h setshow.h
! 169: graph3d.o0: graph3d.c plot.h setshow.h
! 170: hidden3d.o0: hidden3d.c plot.h setshow.h
! 171: util3d.o0: util3d.c plot.h setshow.h
! 172: fit.o0: fit.c fit.h matrix.h plot.h
! 173: interpol.o0: interpol.c plot.h setshow.h
! 174: matrix.o0: matrix.c matrix.h fit.h
! 175: help.o0: help.c help.h
! 176: internal.o0: internal.c plot.h
! 177: misc.o0: misc.c plot.h setshow.h help.h
! 178: parse.o0: parse.c plot.h
! 179: plot.o0: plot.c plot.h fit.h setshow.h fnproto.h
! 180: plot2d.o0: plot2d.c plot.h setshow.h fit.h binary.h help.h
! 181: plot3d.o0: plot3d.c plot.h setshow.h binary.h help.h
! 182: readline.o0: readline.c
! 183: scanner.o0: scanner.c plot.h
! 184: show.o0: set.c plot.h setshow.h
! 185: $(CC) -o $@ $(CFLAGS30) -DHELPFILE=\"$(HELPFILE)\" $<
! 186: set.o0: show.c plot.h setshow.h
! 187: specfun.o0: plot.h specfun.c
! 188: standard.o0: standard.c plot.h
! 189: stdfn.o): stdfn.c stdfn.h
! 190: term.o0: term.c term.h plot.h set.c show.c bitmap.h $(TERMS)
! 191: $(CC) -o $@ $(CFLAGS30) $(TERMFLAGS) -Iterm term.c
! 192: util.o0: util.c plot.h
! 193: version.o0: version.c
! 194:
! 195: $(HELPFILE): doc2gih docs$(SL)gnuplot.doc
! 196: doc2gih docs$(SL)gnuplot.doc $@
! 197:
! 198: $(TEXFILE): doc2tex docs$(SL)gnuplot.doc
! 199: doc2tex docs$(SL)gnuplot.doc $@
! 200:
! 201: doc2gih: docs$(SL)doc2gih.c docs$(SL)termdoc.c
! 202: $(HOSTCC) -I. -I.. -Idocs -o $@ $<
! 203:
! 204: doc2tex: docs$(SL)doc2tex.c docs$(SL)termdoc.c
! 205: $(HOSTCC) -DALL_TERM_DOC -I. -I.. -Idocs -o $@ $<
! 206:
! 207: bf_test: bf_test.c binary.c alloc.c
! 208: $(HOSTCC) -DMTOS -o $@ bf_test.c binary.c alloc.c $(MATHLIB)
! 209:
! 210: demo$(SL)binary1: bf_test
! 211: (cd demo; ../bf_test)
! 212:
! 213: clean: # remove temporary files, but leave executable intact
! 214: rm -f $(OBJS) $(OBJS30) $(OBJSSFP) bf_test.o
! 215:
! 216: realclean: clean # remove all files generated by make
! 217: rm -f *.tos doc2gih doc2tex bf_test
! 218: rm -f demo$(SL)binary1 demo$(SL)binary2 demo$(SL)binary3
! 219: rm -f $(HELPFILE) $(TEXFILE)
! 220:
! 221: # empty rules for file extensions (some makes might need this)
! 222: %.trm:
! 223:
! 224: %.doc:
! 225:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>