# Makefile for gsftopkk --kb@cs.umb.edu.
version = 1.9

ac_include ../make/paths.make

# (Optional) The fully-qualified path of Ghostscript.
# GSPATH=-DGS=\"/usr/local/gnu/bin/gs\"
GSPATH=-DGS=\"gs\"

# See INSTALL for compilation options.
DEFS = $(GSPATH) $(XDEFS)

ac_include ../make/common.make
ac_include ../make/programs.make

objects = gsftopk.o

program = gsftopk

default all: $(program)

$(program): $(kpathsea) $(objects)
	$(CC) $(LDFLAGS) -o $@ $(objects) $(LOADLIBES)

ac_include ../make/tkpathsea.make

install: install-exec install-data
uninstall: uninstall-exec uninstall-data

install-exec: $(program)
	$(SHELL) $(top_srcdir)/../mkdirchain $(bindir)
	$(INSTALL_PROGRAM) $(program) $(bindir)/$(program)
uninstall-exec:
	rm -f $(bindir)/$(program)

install-data:
	$(SHELL) $(top_srcdir)/../mkdirchain $(mandir) $(psheaderdir)/gsftopk
	$(INSTALL_DATA) $(srcdir)/gsftopk.1 $(mandir)/gsftopk.$(manext)
	$(INSTALL_DATA) $(srcdir)/render.ps $(psheaderdir)/gsftopk/render.ps
uninstall-data:
	rm -f $(mandir)/gsftopk.$(manext)
	rm -f $(psheaderdir)/render.ps

ac_include ../make/config.make

info dvi check:

ac_include ../make/misc.make
