Annotation of OpenXM_contrib/gnuplot/makefile.st, Revision 1.1
1.1 ! maekawa 1: #
! 2: # $Id: makefile.st,v 1.19 1998/04/14 00:15:56 drd Exp $
! 3: #
! 4:
! 5: #
! 6: # GNUPLOT makefile for GCC-ST 1.x and 2.x
! 7: # in a cross development environment (unix) or a native TOS environment
! 8: # (see configuration section)
! 9: #
! 10: # Modified from the BorlandC makefile by Alexander Lehmann
! 11: #
! 12:
! 13: # the executable will with both regular AES and MultiAES
! 14: # the version for MultiAES is relatively new and is only tested with a beta
! 15: # version of MultiAES (AES 4.0) and Mint 0.99, so you'll probably have to
! 16: # expect bugs.
! 17:
! 18: # I was sortof pressed for time when I wrote the window support, so the version
! 19: # currently doesn't process redraw messages. All it does is clear the screen.
! 20: # I'll try to finish a better version for 3.4
! 21:
! 22: # -------------------- begin of configuration section -----------------------
! 23:
! 24: # CC is name of compiler producing TOS executables
! 25: # HOSTCC is the name of the native compiler
! 26: # SL is the path separator (/ for unix or UNIXMODE, \ for standard TOS)
! 27:
! 28: # settings for crosscompiling:
! 29: CC = gcc
! 30: #HOSTCC = gcc
! 31: HOSTCC = cc
! 32: SL=/
! 33:
! 34: # settings for native compiling:
! 35: #CC = gcc
! 36: #HOSTCC = $(CC)
! 37: #SL=\
! 38:
! 39: # -O means optimisation in general
! 40: # o-f-p avoids link-unlink instructions
! 41: # s-r optimisation of loops and elimination of iterations variables
! 42: # c-r improve register movement
! 43: # if you have GCC 2.x (and time), you can choose the -O2 option
! 44:
! 45: # first line for GCC 1.x, second and third for GCC 2.x
! 46:
! 47: #OPTFLAGS = -O -fomit-frame-pointer -fstrength-reduce -fcombine-regs
! 48: OPTFLAGS = -O -fomit-frame-pointer -fstrength-reduce
! 49: #OPTFLAGS = -O2 -fomit-frame-pointer
! 50:
! 51: # -c means don't link
! 52: # -DREADLINE to use the history/line editing capability. If you want this
! 53: # capability add -DREADLINE to CFLAGS
! 54: # -DHAVE_STRNICMP if your library supports strnicmp (GNU- and MiNTLib do)
! 55:
! 56: # NOTE: since readline is the only place where AES events are processed, the
! 57: # new (window) version will no longer work without -DREADLINE
! 58:
! 59: # note that current versions of gcc for Atari may very well have float.h
! 60: # if anyone can verify this, please fix it.
! 61:
! 62: CFLAGS = -c -I. -I.. $(OPTFLAGS) -DATARI -DREADLINE -DPIPES -DHAVE_STRNICMP -DNO_FLOAT_H
! 63: TERMFLAGS =
! 64:
! 65: # where to place gnuplot.gih helpfile
! 66: # if this is an absolute pathname, shel_find will not be used.
! 67: HELPFILE=gnuplot.gih
! 68:
! 69: # -------------------- end of configuration section -------------------------
! 70:
! 71: OBJS = bitmap.o command.o contour.o eval.o graphics.o graph3d.o \
! 72: hidden3d.o util3d.o help.o internal.o misc.o parse.o \
! 73: plot.o readline.o scanner.o set.o show.o specfun.o \
! 74: standard.o stdfn.o term.o util.o version.o binary.o fit.o \
! 75: matrix.o alloc.o datafile.o plot2d.o plot3d.o interpol.o
! 76:
! 77: # path prefix for the term subdirectory
! 78: TERM=term$(SL)
! 79:
! 80: TERMS = $(TERM)atariaes.trm $(TERM)dumb.trm $(TERM)eepic.trm $(TERM)epson.trm \
! 81: $(TERM)hpgl.trm $(TERM)hpljii.trm $(TERM)hppj.trm $(TERM)latex.trm \
! 82: $(TERM)pbm.trm $(TERM)post.trm $(TERM)texdraw.trm
! 83:
! 84: all: gnuplot.prg $(HELPFILE) demo$(SL)bf_test.tos
! 85:
! 86: gnuplot.prg: $(OBJS)
! 87: $(CC) -o $@ $(OBJS) -lgem -lpml.olb
! 88: fixstk 120k $@
! 89: # strip -k $@ # you might want to add strip here
! 90:
! 91: # to run bivariat demo ca. 100k stack is needed, all others work with ca. 32k
! 92:
! 93: # default rules
! 94:
! 95: %.o: %.c
! 96: $(CC) -o $@ $(CFLAGS) $<
! 97:
! 98: # dependencies
! 99:
! 100: alloc.o: alloc.c plot.h
! 101: bitmap.o: bitmap.c bitmap.h plot.h
! 102: binary.o: binary.c plot.h
! 103: command.o: command.c plot.h setshow.h help.h
! 104: $(CC) -o $@ $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" $<
! 105: contour.o: contour.c plot.h
! 106: datafile.o: datafile.c plot.h fnproto.h binary.h setshow.h
! 107: eval.o: eval.c plot.h
! 108: graphics.o: graphics.c plot.h setshow.h
! 109: graph3d.o: graph3d.c plot.h setshow.h
! 110: hidden3d.o: hidden3d.c plot.h setshow.h
! 111: util3d.o: util3d.c plot.h setshow.h
! 112: fit.o: fit.c fit.h matrix.h plot.h
! 113: interpol.o: interpol.c plot.h setshow.h
! 114: matrix.o: matrix.c matrix.h fit.h
! 115: help.o: help.c help.h
! 116: internal.o: internal.c plot.h
! 117: misc.o: misc.c plot.h setshow.h help.h
! 118: parse.o: parse.c plot.h
! 119: plot.o: plot.c plot.h fit.h setshow.h fnproto.h
! 120: plot2d.o: plot2d.c plot.h setshow.h fit.h binary.h help.h
! 121: plot3d.o: plot3d.c plot.h setshow.h binary.h help.h
! 122: readline.o: readline.c
! 123: scanner.o: scanner.c plot.h
! 124: show.o: set.c plot.h setshow.h
! 125: $(CC) -o $@ $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" $<
! 126: set.o: show.c plot.h setshow.h
! 127: specfun.o: plot.h specfun.c
! 128: standard.o: standard.c plot.h
! 129: stdfn.o: stdfn.c sstdfn.h
! 130: term.o: term.c term.h plot.h set.c show.c bitmap.h $(TERMS)
! 131: $(CC) -o $@ $(CFLAGS) $(TERMFLAGS) -Iterm term.c
! 132: util.o: util.c plot.h
! 133: version.o: version.c
! 134:
! 135: # convert gnuplot.doc to gnuplot.gih
! 136: $(HELPFILE): doc2gih docs$(SL)gnuplot.doc
! 137: doc2gih docs$(SL)gnuplot.doc $(HELPFILE)
! 138:
! 139: doc2gih: docs$(SL)doc2gih.c docs$(SL)termdoc.c
! 140: $(HOSTCC) -I. -I.. -o doc2gih docs$(SL)doc2gih.c docs$(SL)termdoc.c
! 141:
! 142: demo$(SL)bf_test.tos: bf_test.o binary.o alloc.o
! 143: $(CC) -s -o $@ bf_test.o binary.o alloc.o -lpml
! 144:
! 145: clean: # remove temporary files, but leave executable intact
! 146: rm -f $(OBJS) bf_test.o doc2gih
! 147:
! 148: realclean: clean # remove all files generated by make
! 149: rm -f gnuplot.prg gnuplot.gih demo$(SL)binary1 demo$(SL)binary2
! 150: rm -f demo$(SL)binary3 demo$(SL)bf_test.tos
! 151:
! 152: # empty rules for file extensions (some makes might need this)
! 153: %.trm:
! 154:
! 155: %.doc:
! 156:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>