Makefile.am 1.68 KB
## This file is part of GNU Mailutils.
## Copyright (C) 2005, 2007, 2010-2012, 2014-2016 Free Software
## Foundation, Inc.
##
## GNU Mailutils 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, or (at
## your option) any later version.
##
## GNU Mailutils 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 GNU Mailutils.  If not, see <http://www.gnu.org/licenses/>. 

AM_CPPFLAGS = \
 @MU_APP_COMMON_INCLUDES@\
 -D_GNU_SOURCE=1\
 -DDEFAULT_CUPS_CONFDIR=\"@DEFAULT_CUPS_CONFDIR@\"

bin_PROGRAMS = mimeview
mimeview_SOURCES = \
 mimeview.c \
 mimetypes-gram.c \
 mimetypes-lex.c \
 mimetypes-decl.h \
 mimeview.h 

YLWRAP = $(SHELL) $(mu_aux_dir)/gylwrap
AM_YFLAGS=-vt
AM_LEXFLAGS=-d
EXTRA_DIST = mimetypes.y mimetypes.l

mimetypes-gram.c mimetypes-decl.h: $(srcdir)/mimetypes.y
	$(YLWRAP) "$(YACC) $(AM_YFLAGS) -d" $< \
	          y.tab.c mimetypes-gram.c y.tab.h mimetypes-decl.h \
                  y.output mimetypes.output \
                  -- -yy mimetypes_yy

mimetypes-lex.c: $(srcdir)/mimetypes.l mimetypes-decl.h
	$(YLWRAP) "$(LEX) $(AM_LEXFLAGS) $(LEXFLAGS)" \
                  $(srcdir)/mimetypes.l lex.yy.c mimetypes-lex.c \
                  -- -yy mimetypes_yy

BUILT_SOURCES = mimetypes-gram.c mimetypes-lex.c mimetypes-decl.h

mimeview_LDADD = \
 ${MU_APP_LIBRARIES}\
 ${MU_LIB_MAILUTILS}\
 @LTLIBINTL@