home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
GRAPHICS
/
gnuplot32x.tar.Z
/
gnuplot32x.tar
/
os9gnuplot3
/
MAkefile.OSK
< prev
next >
Wrap
Text File
|
1992-06-29
|
5KB
|
171 lines
# Make file for use with gcc Version 1.40 on OS-9 Ver. 2.3-
# by Dietmar Budelsky 22-5-1992
# budelsky@haegar.ikp.uni-koeln.de
# From here, check for right paths and flags
# Correct them, if You want
# where to place gnuplot.gih helpfile
HELPFILE = /dd/sys/help/gnuplot.gih
# Installation of X11 support...
# You need additional the original cc for compiling gnuplot_X11
# Choose one of the following variants: X11 or no X11
# Install X11 support
PLOTXFLAG = -DX11
# Compile the X11 driver
GNUPLOT_X11 = gnuplot_X11
# Do not support X11
# GNUPLOT_X11 =
# PLOTXFLAG =
# Use blarslib.l or equal (here os9lib020.l) for UNIX-compatibility */
UNIXLIBDIR = /dd/lib
UNIXHEADDIR = /dd/defs/UNIX
# Compiler, must be ANSI compatible
CC = gcc
# Compiler flags
# -ansi -O -m68020: neccesary flags for compiling, insert 68881 here
# -DOSK: should be obsolete, but was not (don't know why)
# -DNOVFORK -DMEMCPY -DMEMSET -DNOGAMMA:
# gnuplot sets for OS-9 (see README.Install)
# -DREADLINE: include nano emacs commands
# -mlong-calls: neccesary for not getting out of range errors
# -fcombine-regs -pipe:
# the usual, insert -T/r0, if wanted
# -I$(UNIXHEADDIR): where to find UNIX header files
# -Dgetcwd=getwd: compatibility defines
#
CFLAGS = -ansi -O -m68020 -DOSK -DNOVFORK -DMEMCPY -DMEMSET -DNOGAMMA\
-DREADLINE -mlong-calls -fcombine-regs -pipe\
-I$(UNIXHEADDIR) -Dgetcwd=getwd
# see other terminal defines in term.h
TERMFLAGS = $(PLOTXFLAG)
# Where to write gnuplot and gnuplot_X11
ODIR = /dd/local/cmds
# Where to find libs
LIBDIR = /dd/lib
# linker flags, nothing special for gcc
LFLAGS = -e 1 -m68020 -cio -s 64 -n gnuplot -o $(ODIR)/gnuplot
# Give UNIX compatibility library
LIBS = -l$(UNIXLIBDIR)/os9lib020.l
# X11FLAGS and X11LIBS for linking with cc, obsolete for no
# X11 support
X11FLAGS = -I -K=2 -M=64K -n$(GNUPLOT_X11) -F=$(ODIR)/$(GNUPLOT_X11)
X11LIBS = -l=$(LIBDIR)/X11/xlib.l -l=$(LIBDIR)/X11/xaulib.l\
-l=$(LIBDIR)/X11/apsd4os9.l -l=$(LIBDIR)/netdb.l\
-l=$(LIBDIR)/gnulib.l -l=$(LIBDIR)/math.l\
-l=$(LIBDIR)/socklib.l -l=$(UNIXLIBDIR)/os9lib020.l
# From here, things should be all right
OBJS = OS9comp.r bitmap.r command.r contour.r eval.r \
graphics.r graph3d.r \
help.r internal.r misc.r parse.r plot.r getline.r \
scanner.r setshow.r standard.r term.r util.r version.r
CSOURCE5 = term/aed.trm term/cgi.trm term/dumb.trm term/dxf.trm term/dxy.trm \
term/eepic.trm term/epson.trm term/fig.trm term/hp26.trm \
term/hp2648.trm term/hpgl.trm term/hpljii.trm
CSOURCE6 = term/impcodes.h term/imagen.trm term/object.h \
term/iris4d.trm term/kyo.trm term/latex.trm term/pc.trm
CSOURCE7 = term/post.trm term/qms.trm term/regis.trm term/sun.trm \
term/t410x.trm term/tek.trm term/unixpc.trm term/unixplot.trm \
term/v384.trm term/x11.trm
CSOURCE8 = contour.c
# make complete project
gnuplotproject: $(HELPFILE) $(GNUPLOT_X11) $(ODIR)/gnuplot plot.h.tmp
#kill obsolete files
del *.r
# restore old plot.h
copy -r plot.h.tmp plot.h
touch plot.h
del plot.h.tmp
#ready with gnuplot
@echo "gnuplot ready to go!"
# Add OS-9 definitions to plot.h
plot.h.tmp: plot.h
copy -r plot.h plot.h.tmp
list plot.h.OSK plot.h.tmp >plot.h
touch plot.h.tmp
# convert gnuplot.doc to gnuplot.gih
$(HELPFILE): $(ODIR)/doc2gih docs/gnuplot.doc
doc2gih <docs/gnuplot.doc >$(HELPFILE)
attr -pr $(HELPFILE)
$(ODIR)/doc2gih: docs/doc2gih.c
$(CC) $(CFLAGS) -o $(ODIR)/doc2gih -n doc2gih docs/doc2gih.c
# For X11 support generate gnuplot_X11
$(GNUPLOT_X11): $(GNUPLOT_X11).r
cc $(X11FLAGS) $(X11LIBS) $(GNUPLOT_X11).r
attr -e -pe $(ODIR)/$(GNUPLOT_X11)
$(GNUPLOT_X11).r: $(GNUPLOT_X11).c
$(CC) $(CFLAGS) -c -Daccept=newaccept $(GNUPLOT_X11).c
# Object files in link command line are ordered to avoid far jumps.
$(ODIR)/gnuplot: $(OBJS)
$(CC) $(LFLAGS) $(LIBS) $(OBJS)
attr -e -pe $(ODIR)/gnuplot
# Now, produce the object files
OS9comp.r: OS9comp.c OS9comp.h
bitmap.r: bitmap.c bitmap.h plot.h plot.h.tmp
command.r: command.c plot.h setshow.h help.h plot.h.tmp
$(CC) $(CFLAGS) \
-Dunix -DHELPFILE=\"$(HELPFILE)\" -c command.c
contour.r: contour.c plot.h plot.h.tmp
eval.r: eval.c plot.h plot.h.tmp
graphics.r: graphics.c plot.h setshow.h plot.h.tmp
graph3d.r: graphics.c plot.h setshow.h plot.h.tmp
help.r: help.c plot.h help.h plot.h.tmp
internal.r: internal.c plot.h plot.h.tmp
misc.r: misc.c plot.h setshow.h plot.h.tmp
parse.r: parse.c plot.h plot.h.tmp
plot.r: plot.c plot.h setshow.h plot.h.tmp
$(CC) $(CFLAGS) \
-Dunix -c plot.c
getline.r: getline.c OS9comp.h
scanner.r: scanner.c plot.h plot.h.tmp
setshow.r: setshow.c plot.h setshow.h plot.h.tmp
standard.r: standard.c plot.h plot.h.tmp
term.r: term.c term.h plot.h setshow.h bitmap.h plot.h.tmp \
$(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
$(CC) $(CFLAGS) $(TERMFLAGS) -Iterm -c term.c
util.r: util.c plot.h plot.h.tmp
version.r: version.c