## Makefile.am -- an automake template for a Makefile.in file
## EPSON ESC/P-R Printer Driver for Linux
## Copyright (C) Seiko Epson Corporation 2000-2013.
##  This program 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 2 of the License, or
## (at your option) any later version.
##
## This program 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, write to the Free Software
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA.

################################################################
# Protocol set for esc/p-r lib
################################################################
DEFINES			=
DEFINES 		+=	-DGCOMSW_PRT_USE_USB
DEFINES 		+=	-DGCOMSW_PRT_USE_LPR
DEFINES 		+=	-DGCOMSW_PRT_USE_RAW

################################################################
# Extend function
################################################################
#DEFINES 		+=	-DGCOMSW_CMD_ESCPAGE
DEFINES 		+=	-DGCOMSW_EL_CDLABEL
DEFINES 		+=	-DGCOMSW_EF_MAINTE

################################################################
# Language
################################################################
#DEFINES 		+=	-DGCOMSW_CMD_ESCPAGE
DEFINES 		+= 	-DEPS_FILTER

################################################################
# Use Async job process
DEFINES 		+=	-DGCOMSW_ASYNCJOB_SUPPORT
# Use raw file print
DEFINES 	    +=	-DGCOMSW_RAWFILE_SUPPORT

lib_LTLIBRARIES = libescpr.la
libescpr_la_CFLAGS = -Wall $(DEFINES)
## Make sure these will be cleaned even when they're not built by
## default.
CLEANFILES = libescpr.la
libescpr_la_SOURCES = \
	epson-cbt.c epson-cbt.h \
	epson-escpr-api.c epson-escpr-api.h \
	epson-escpr-dbg.c epson-escpr-dbg.h \
	epson-escpr-def.h \
	epson-escpr-err.h \
	epson-escpr-media.h \
	epson-escpr-mem.c epson-escpr-mem.h \
	epson-escpr-pm.c epson-escpr-pm.h \
	epson-escpr-pvt.h \
	epson-escpr-services.c epson-escpr-services.h \
	epson-layout.c epson-layout.h \
	epson-net-lpr.c epson-net-lpr.h \
	epson-net-raw.c epson-net-raw.h \
	epson-net-snmp.c epson-net-snmp.h \
	epson-protocol.c epson-protocol.h \
	epson-typedefs.h \
	epson-usb.c epson-usb.h

libescpr_la_LDFLAGS = -O2 -version-info 1:0:0

