# Copyright (C) 2014-2020 Free Software Foundation, Inc.
#
# This file is part of groff.
#
# groff is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# groff is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

prefixexecbin_PROGRAMS += pic
pic_CPPFLAGS = $(AM_CPPFLAGS) \
  -I $(top_srcdir)/src/preproc/pic \
  -I $(top_builddir)/src/preproc/pic
pic_LDADD = libgroff.a $(LIBM) lib/libgnu.a
pic_SOURCES = \
  src/preproc/pic/pic.ypp \
  src/preproc/pic/lex.cpp \
  src/preproc/pic/main.cpp \
  src/preproc/pic/object.cpp \
  src/preproc/pic/common.cpp \
  src/preproc/pic/troff.cpp \
  src/preproc/pic/tex.cpp \
  src/preproc/pic/pic.h \
  src/preproc/pic/position.h \
  src/preproc/pic/text.h \
  src/preproc/pic/common.h \
  src/preproc/pic/output.h \
  src/preproc/pic/object.h

PREFIXMAN1 += src/preproc/pic/pic.1
EXTRA_DIST += \
  src/preproc/pic/TODO \
  src/preproc/pic/pic.1.man

# Since pic_CPPFLAGS was set, all .o files have a 'pic-' prefix.
src/preproc/pic/pic-lex.$(OBJEXT): src/preproc/pic/pic.hpp

MAINTAINERCLEANFILES += \
  src/preproc/pic/pic.cpp \
  src/preproc/pic/pic.hpp \
  src/preproc/pic/pic.output


# Local Variables:
# fill-column: 72
# mode: makefile-automake
# End:
# vim: set autoindent filetype=automake textwidth=72:
