home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
gondwana.ecr.mu.oz.au/pub/
/
Graphics.tar
/
Graphics
/
avogl.tar.gz
/
avogl.tar
/
vogl
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-09-24
|
8KB
|
314 lines
#
# Makefile for vogle
#
# Usage: make os
#
# You might have to set:
#
# DEVICES
# FONTLIB
# OS
# RANLIB
# CFLAGS
# FLOATING_POINT
# F77 <== If you want the f77 examples
# FFLAGS " " " " " "
#
############################################################
#
# The Devices you want compiled into the library.
# (Note the "make sun" automatically includes -DSUN later on)
#
DEVICES = -DPOSTSCRIPT -DDXY -DHPGL -DTEK
#
# Where the fonts a going to live (For making the Hershey library)
#
#FONTLIB = /usr/local/lib/hershey/
FONTLIB = /tmp/
#
# You can set -DBSD or -DSYS5 here
#
#OS = -DBSD
RANLIB = ranlib
# If you set -DSYS5 then set RANLIB = "ar ts" or maybe "echo" in later versions
#RANLIB = echo
#
# Set your floating point options here...
#
FLOATING_POINT = /usr/lib/libm.il
#
# For most machines...
#FLOATING_POINT =
#
# Global CFLAGS can be set here. These are the ones we use on a sun.
# You can add a -f68881 if you are on a sun3 with an MC68881 chip.
#
CFLAGS = $(OS) -O4 -fsingle
#
# For SUNOS 3.5 set -DSUN_3_5
#
#CFLAGS = $(OS) -O4 -DSUN_3_5
#
# For SGI's
#
#CFLAGS = $(OS) -O -float
#
# Or on an apollo... (-Wp make it use the 'other cpp')
#CFLAGS = $(OS) -O -Wp -M3000
#
# Or on a Decstation (running Ultrix of course)
#CFLAGS = -O $(OS) -f
#
# Or an IBM RS6000
#
#CFLAGS = $(OS) -O -Q
#
# Define F77 if you want the f77 examples.
# You also define your f77 flags here too. These are the ones we used on sun
#
F77 = f77
FFLAGS = -g -w
#
# Or on an apollo (We didn't have ftn)
#F77 =
#FFLAGS =
#
# Or on an IBM RS6000
#
#F77 = xlf
#FFLAGS = -O -qextname
#
# The name of the library to install and where to put it.
#
LIB = libvogle.a
DEST = /usr/local/lib
#
# Some dork machines made /bin/csh the default shell and didn't change`
# the man page for make did they now....
#
SHELL = /bin/sh
#
# Any other libraries that are needed go here
#
SUNLIBS = -lsuntool -lsunwindow -lpixrect
X11LIBS = -lX11
SGILIBS = -lgl_s
UNIXLIBS =
APOLLOLIBS =
MCFLAGS = $(CFLAGS) $(FLOATING_POINT)
MFFLAGS = $(FFLAGS) $(FLOATING_POINT)
all:
@echo "Usage: 'make sun' or 'make X11' or 'make sun-X11' or 'make dec-X11' or 'make unix' or 'make apollo' or 'make sgi'"
install:
cp src/$(LIB) $(DEST)
chmod 644 $(DEST)/$(LIB)
$(RANLIB) $(DEST)/$(LIB)
sun:
cd src; make -f Makefile \
DEVICES="$(DEVICES) -DSUN" \
MCFLAGS="$(MCFLAGS)" \
DOBJS="../drivers/sun.o"\
RANLIB="$(RANLIB)"
cd hershey/src; make -f Makefile \
FONTLIB="$(FONTLIB)" \
MCFLAGS="$(MCFLAGS)" \
LIBS="$(SUNLIBS)" \
RANLIB="$(RANLIB)"
cd examples; make -f Makefile \
MCFLAGS="$(MCFLAGS)" \
LIBS="$(SUNLIBS)"
if test -n "$(F77)" ; \
then cd examples; make -f Makefile.f77 \
LIBS="$(SUNLIBS)" \
MFFLAGS="$(MFFLAGS)" \
F77="$(F77)" ; \
fi ; exit 0
sgi:
cd hershey/src; make -f Makefile.sgi \
FONTLIB="$(FONTLIB)"
cd examples; make -f Makefile.sgi \
MCFLAGS="$(MCFLAGS) -DSGI"
X11:
cd src; make -f Makefile \
DEVICES="$(DEVICES) -DX11" \
MCFLAGS="$(MCFLAGS)" \
DOBJS="../drivers/X11.o" \
RANLIB="$(RANLIB)"
cd hershey/src; make -f Makefile \
FONTLIB="$(FONTLIB)" \
MCFLAGS="$(MCFLAGS)" \
LIBS="$(X11LIBS)" \
RANLIB="$(RANLIB)"
cd examples; make -f Makefile \
MCFLAGS="$(MCFLAGS)" \
LIBS="$(X11LIBS)"
if test -n "$(F77)" ; \
then cd examples; make -f Makefile.f77 \
LIBS="$(X11LIBS)" \
MFFLAGS="$(MFFLAGS)" \
F77="$(F77)" ; \
fi ; exit 0
sun-X11:
cd src; make -f Makefile \
DEVICES="$(DEVICES) -DX11 -DSUN" \
MCFLAGS="$(MCFLAGS)" \
DOBJS="../drivers/X11.o ../drivers/sun.o" \
RANLIB="$(RANLIB)"
cd hershey/src; make -f Makefile \
FONTLIB="$(FONTLIB)" \
MCFLAGS="$(MCFLAGS)" \
LIBS="$(X11LIBS) $(SUNLIBS)" \
RANLIB="$(RANLIB)"
cd examples; make -f Makefile \
MCFLAGS="$(MCFLAGS)" \
LIBS="$(X11LIBS) $(SUNLIBS)"
if test -n "$(F77)" ; \
then cd examples; make -f Makefile.f77 \
LIBS="$(X11LIBS) $(SUNLIBS)" \
MFFLAGS="$(MFFLAGS)" \
F77="$(F77)" ; \
fi ; exit 0
dec-X11:
cd src; make -f Makefile \
DEVICES="$(DEVICES) -DX11 -DDECX11" \
MCFLAGS="$(MCFLAGS)" \
DOBJS="../drivers/X11.o ../drivers/decX11.o"
RANLIB="$(RANLIB)"
cd hershey/src; make -f Makefile \
FONTLIB="$(FONTLIB)" \
MCFLAGS="$(MCFLAGS)" \
LIBS="$(X11LIBS)" \
RANLIB="$(RANLIB)"
cd examples; make -f Makefile \
MCFLAGS="$(MCFLAGS)" \
LIBS="$(X11LIBS)"
if test -n "$(F77)" ; \
then cd examples; make -f Makefile.f77 \
LIBS="$(X11LIBS)" \
MFFLAGS="$(MFFLAGS)" \
F77="$(F77)" ; \
fi ; exit 0
apollo:
cd src; make -f Makefile \
DEVICES="$(DEVICES) -DAPOLLO" \
MCFLAGS="$(MCFLAGS)" \
DOBJS="../drivers/apollo.o"
RANLIB="$(RANLIB)"
cd hershey/src; make -f Makefile \
FONTLIB="$(FONTLIB)" \
LIBS="$(APOLLOLIBS)" \
MCFLAGS="$(MCFLAGS)" \
RANLIB="$(RANLIB)"
cd examples; make -f Makefile \
LIBS="$(APOLLOLIBS)" \
MCFLAGS="$(MCFLAGS)"
if test -n "$(F77)" ; \
then cd examples; make -f Makefile.f77 \
MFFLAGS="$(MFFLAGS)" \
LIBS="$(APOLLOLIBS)" \
F77="$(F77)" ; \
fi ; exit 0
unix:
cd src; make -f Makefile \
DEVICES="$(DEVICES)" \
MCFLAGS="$(MCFLAGS)" \
DOBJS=""\
RANLIB="$(RANLIB)"
cd hershey/src; make -f Makefile \
FONTLIB="$(FONTLIB)" \
MCFLAGS="$(MCFLAGS)" \
LIBS="$(UNIXLIBS)" \
RANLIB="$(RANLIB)"
cd examples; make -f Makefile \
MCFLAGS="$(MCFLAGS)" \
LIBS="$(UNIXLIBS)"
if test -n "$(F77)" ; \
then cd examples; make -f Makefile.f77 \
LIBS="$(UNIXLIBS)" \
MFFLAGS="$(MFFLAGS)" \
F77="$(F77)" ; \
fi ; exit 0
gcc:
cd src
make -f Makefile.gcc
cd /hershey/src
make -f Makefile.gcc
cd //examples
make -f Makefile.gcc
cd /
dcc:
cd src
make -f Makefile.dcc
cd /hershey/src
make -f Makefile.dcc
cd //examples
make -f Makefile.dcc
cd /
clean:
cd src; make clean
cd hershey/src; make clean
cd drivers; make clean
cd examples; make clean
cd examples; make -f Makefile.f77 clean
clobber:
cd src; make clobber
cd hershey/src; make clobber
cd drivers; make clobber
cd examples; make clobber
cd examples; make -f Makefile.f77 clobber