#       BSDI Makefile,v 1.8 1995/01/06 16:16:01 polk Exp

PROG=gs
CFLAGS+=-DUSE_ASM=0 -I. -I${.CURDIR} -I/usr/X11/include
LDFLAGS+=-L/usr/X11/lib
LDADD+=-lXt -lXext -lSM -lICE -lX11 -lm
SRCS=	gconfig.c gdev3852.c gdev4081.c gdev4693.c gdev8510.c \
	gdevbit.c gdevbj10.c gdevbmp.c gdevcdj.c gdevdfax.c gdevdjet.c \
	gdevdjtc.c gdevemap.c gdevepsc.c gdevepsn.c gdevescp.c \
	gdevgif.c gdevlbp8.c gdevln03.c gdevmem1.c gdevmem2.c \
	gdevmem3.c gdevnp6.c gdevo182.c gdevpbm.c gdevpccm.c \
	gdevpcl.c gdevpcx.c gdevpipe.c gdevpjet.c gdevprn.c gdevtiff.c \
	gdevtknk.c gdevx.c gdevxini.c gdevxxf.c gp_nofb.c gp_unix.c \
	gs.c gschar.c gschar0.c gscie.c gscolor.c gscolor2.c \
	gscoord.c gsdevice.c gsdps1.c gsfile.c gsfont.c gsht.c \
	gsimage.c gsimage1.c gsimage2.c gsimpath.c \
	gsline.c gsmain.c gsmatrix.c gsmisc.c gspaint.c gspath.c \
	gspath2.c gsstate.c gstdev.c gstype1.c gsutil.c \
	gxccache.c gxccman.c gxclist.c gxclread.c gxcmap.c \
	gxcpath.c gxdither.c gxdraw.c gxfill.c gxhint1.c gxhint2.c \
	gxht.c gxpath.c gxpath2.c gxpcopy.c gxstroke.c ialloc.c \
	ibnum.c idebug.c idict.c idparam.c iinit.c iname.c \
	interp.c isave.c iscan.c iscan2.c iutil.c sbits.c scfd.c \
	scfdtab.c scfe.c scftab.c sdctd.c sdcte.c sfilter.c sfilter2.c \
	slzwd.c slzwe.c stream.c zarith.c zarray.c zbseq.c zchar.c \
	zchar2.c zcie.c zcolor.c zcolor2.c zcontext.c zcontrol.c \
	zcspace2.c zdevice.c zdict.c zdps1.c zfile.c zfiledev.c \
	zfileio.c zfilter.c zfilter2.c zfont.c zfont0.c zfont1.c \
	zfont2.c zgeneric.c zgstate.c zht.c zht2.c zimage2.c zmath.c \
	zmatrix.c zmisc.c zmisc2.c zpacked.c zpaint.c zpath.c \
	zpath2.c zprops.c zrelbit.c zstack.c zstring.c ztype.c \
	zupath.c zvmem.c zvmem2.c

CLEANFILES+=arch.h genarch

arch.h: genarch
	./genarch arch.h

genarch: genarch.c
	${CC} ${CFLAGS} -o genarch ${.CURDIR}/genarch.c

.depend: arch.h

beforeinstall:
	install -c -o ${BINOWN} -g ${BINGRP} -m 555 ${.CURDIR}/gsnd ${BINDIR}

.include "../Makefile.inc"
.include <bsd.prog.mk>
