#
# Description: Makefile to construct and install a2ps. Don't forget
# to give your own values to define variables HEADER_PS and name of
# compiler (see OPTIONS).
#
# File: imag:/users/local/a2ps/Makefile
# Created: Mon Nov 29 14:05:39 1988 by miguel@imag (Miguel Santana)
# Version: 2.0
#

# Copyright (c) 1988, Miguel Santana, miguel@imag.imag.fr
#
# Permission is granted to copy and distribute this file in modified
# or unmodified form, whether for noncommercial or commercial use,
# provided (a) this copyright notice is preserved, (b) no attempt is
# made to restrict redistribution of this file, and (c) this file is
# not distributed as part of any collection whose redistribution is
# restricted by a compilation copyright.
#

D	=.

O	=.

I	=/usr/local/bin

# The name of a header that a2ps will use
INST_PS_HEADER=/usr/local/lib/a2ps.header_cyr.ps

# A raw header (header.ps or header_cyr.ps)
LOC_PS_HEADER=header_cyr.ps

OPTIONS	 =-DINST_PS_HEADER=\"$(INST_PS_HEADER)\" -DLOC_PS_HEADER=\"$(LOC_PS_HEADER)\" -DANSIC -DHEIGHT=11 -DWIDTH=8.5 -O
#OPTIONS =-DBSD -DHEIGHT=11 -DWIDTH=8.5 -O
#OPTIONS =-DSYSV -DHEIGHT=11 -DWIDTH=8.5 -O
# Default values for HEIGHT, WIDTH, MARGIN and DIR_SEP (11.64, 8.27, 1.2, /).

OBJS	      = a2ps.o

all: a2ps

a2ps:		a2ps.o
		cc -o $D/a2ps a2ps.o

install:	all
		cp a2ps $I/a2ps
		cp $(LOC_PS_HEADER) $(INST_PS_HEADER)

shar:;		shar -b -oa2ps.shar README Makefile a2ps.1 a2ps.c header.ps

clean:;		rm -f $(OBJS) xa2ps

a2ps.o:;
		cc -c $(OPTIONS) a2ps.c
