#
# "$Id: Makedefs.in 5564 2006-05-22 00:59:11Z mike $"
#
#   Common makefile definitions for the Common UNIX Printing System (CUPS).
#
#   Copyright 1997-2006 by Easy Software Products, all rights reserved.
#
#   These coded instructions, statements, and computer programs are the
#   property of Easy Software Products and are protected by Federal
#   copyright law.  Distribution and use rights are outlined in the file
#   "LICENSE.txt" which should have been included with this file.  If this
#   file is missing or damaged please contact Easy Software Products
#   at:
#
#       Attn: CUPS Licensing Information
#       Easy Software Products
#       44141 Airport View Drive, Suite 204
#       Hollywood, Maryland 20636 USA
#
#       Voice: (301) 373-9600
#       EMail: cups-info@cups.org
#         WWW: http://www.cups.org
#

#
# Programs...
#

AR		=	/usr/local/920t_le/bin/arm_920t_le-ar
AWK		=	gawk
CC		=	 /usr/local/920t_le/bin/arm_920t_le-gcc
CXX		=	 /usr/local/920t_le/bin/arm_920t_le-g++
DSO		=	$(CC)
HTMLDOC		=	
INSTALL		=	/usr/bin/install -c
LD		=	/usr/local/920t_le/bin/arm_920t_le-ldd
LIBTOOL		=	
LN		=	/bin/ln -sf
MV		=	/bin/mv
PHPCONFIG	=	
RANLIB		=	ranlib
RM		=	/bin/rm -f
RMDIR		=	/bin/rmdir
SED		=	/bin/sed
SHELL		=	/bin/sh
STRIP		=	/usr/bin/strip

#
# Installation programs...
#

INSTALL_BIN	=	$(LIBTOOL) $(INSTALL) -m 755
INSTALL_CONFIG	=	$(INSTALL) -m 640
INSTALL_DATA	=	$(INSTALL) -m 644
INSTALL_DIR	=	$(INSTALL) -d
INSTALL_LIB	=	$(LIBTOOL) $(INSTALL) -m 755
INSTALL_MAN	=	$(INSTALL) -m 644
INSTALL_SCRIPT	=	$(INSTALL) -m 755

#
# Default user, group, and system groups for the scheduler...
#

CUPS_USER	=	lp
CUPS_GROUP	=	lp
CUPS_SYSTEM_GROUPS =	sys root
CUPS_PRIMARY_SYSTEM_GROUP =	sys

#
# Default permissions...
#

CUPS_CONFIG_FILE_PERM = 640
CUPS_LOG_FILE_PERM = 644

#
# Languages to install...
#

LANGUAGES	=	es ja pl sv

#
# Libraries...
#

LIBCUPS		=	libcups.so.2
LIBCUPSIMAGE	=	libcupsimage.so.2
LIBJPEG		=	
LIBLDAP		=	
LIBMALLOC	=	
LIBPAPER	=	
LIBPNG		=	
LIBSLP		=	
LIBTIFF		=	
LIBZ		=	

#
# Install static libraries?
#

INSTALLSTATIC	=	

#
# Program options...
#
# ARCHFLAGS     Defines the default architecture build options, used
#               when compiling separate 32/64-bit libraries.
# ARCH32FLAGS   Defines the 32-bit architecture build options, used
#               when compiling separate 32/64-bit libraries.
# ARCH64FLAGS   Defines the 64-bit architecture build options, used
#               when compiling separate 32/64-bit libraries.
# OPTIM         Defines the common compiler optimization/debugging options
#               for all architectures.
# OPTIONS       Defines other compile-time options (currently only -DDEBUG
#               for extra debug info)
#

ARCHFLAGS	=	
ARFLAGS		=	crvs
BACKLIBS	=	
CFLAGS		=	-I.. $(SSLFLAGS)   \
			-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT $(OPTIONS)
COMMONLIBS	=	-lpthread -lcrypt 
CUPSDLIBS	=	 
CXXFLAGS	=	-I.. $(SSLFLAGS)   \
			-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT $(OPTIONS)
CXXLIBS		=	
DSOFLAGS	=	 -Wl,-soname,`basename $@` -shared $(OPTIM)
DSOLIBS		=	$(LIBPNG) $(LIBTIFF) $(LIBJPEG) $(LIBZ) $(COMMONLIBS)
IMGLIBS		=	 -lm
IMGFILTERS	=	imagetops imagetoraster
LDFLAGS		=	-L../cups -L../filter $(RC_CFLAGS) $(ARCHFLAGS) \
			  $(OPTIM)
LINKCUPS	=	-lcups $(SSLLIBS)
LINKCUPSIMAGE	=	-lcupsimage
LIBS		=	$(LINKCUPS) $(COMMONLIBS)
OPTIM		=	-Wshadow -Wunused -Wall -Wno-format-y2k -fPIC -Os -g
OPTIONS		=
PAMLIBS		=	
PAP		=	
PDFTOPS		=	pdftops
PHPDIR		=	
SSLFLAGS	=	
SSLLIBS		=	
LAUNCHDLIBS	=	

#
# Separate 32/64-bit library support...
#

ARCH32FLAGS	=	
DSO32FLAGS	=	 -Wl,-soname,`basename $@` -shared $(OPTIM)
INSTALL32	=	
LIB32CUPS	=	
LIB32CUPSIMAGE	=	
LIB32DIR	=	$(BUILDROOT)
UNINSTALL32	=	

ARCH64FLAGS	=	
DSO64FLAGS	=	 -Wl,-soname,`basename $@` -shared $(OPTIM)
INSTALL64	=	
LIB64CUPS	=	
LIB64CUPSIMAGE	=	
LIB64DIR	=	$(BUILDROOT)
UNINSTALL64	=	

#
# Directories...
#
# The first section uses the GNU names (which are *extremely*
# difficult to find in a makefile because they are lowercase...)
# We have to define these first because autoconf uses ${prefix}
# and ${exec_prefix} for most of the other directories...
#
# This is immediately followed by definition in ALL CAPS for the
# needed directories...
#

bindir		=	/usr/bin
datadir		=	/usr/share
exec_prefix	=	/usr
includedir	=	/usr/include
infodir		=	${prefix}/info
libdir		=	/usr/lib
libexecdir	=	${exec_prefix}/libexec
localstatedir	=	/var
mandir		=	/usr/share/man
oldincludedir	=	/usr/include
prefix		=	/
sbindir		=	/usr/sbin
sharedstatedir	=	/usr/com
srcdir		=	.
sysconfdir	=	/etc
top_srcdir	=	.

BUILDROOT	=	$(DSTROOT)

AMANDIR		=	$(BUILDROOT)/usr/share/man
BINDIR		=	$(BUILDROOT)/usr/bin
CACHEDIR	=	$(BUILDROOT)/var/cache/cups
DATADIR		=	$(BUILDROOT)/usr/share/cups
DOCDIR		=	$(BUILDROOT)/usr/share/doc/cups
INCLUDEDIR	=	$(BUILDROOT)$(includedir)
INITDIR		=	/etc/rc.d
INITDDIR	=	../init.d
LIBDIR		=	$(BUILDROOT)$(libdir)
LOCALEDIR	= 	$(BUILDROOT)/usr/share/locale
LOGDIR		= 	$(BUILDROOT)/var/log/cups
MANDIR		=	$(BUILDROOT)/usr/share/man
PMANDIR		=	$(BUILDROOT)/usr/share/man
REQUESTS	= 	$(BUILDROOT)/var/spool/cups
SBINDIR		=	$(BUILDROOT)/usr/sbin
SERVERBIN	= 	$(BUILDROOT)/usr/lib/cups
SERVERROOT	= 	$(BUILDROOT)/etc/cups
STATEDIR	=	$(BUILDROOT)/var/run/cups
XINETD		=	

MAN1EXT		=	1.gz
MAN5EXT		=	5.gz
MAN7EXT		=	7.gz
MAN8EXT		=	8.gz
MAN8DIR		=	8

PAMDIR		=	
PAMFILE		=	pam.std

DEFAULT_LAUNCHD_CONF =	
DBUSDIR		=	


#
# Rules...
#

.SILENT:
.SUFFIXES:	.1 .1.gz .1m .1m.gz .5 .5.gz .7 .7.gz .8 .8.gz .a .c .cxx .h .man .o .32.o .64.o .gz

.c.o:
	echo Compiling $<...
	$(CC) $(ARCHFLAGS) $(OPTIM) $(CFLAGS) -c $<

.c.32.o:
	echo Compiling 32-bit $<...
	$(CC) $(ARCH32FLAGS) $(OPTIM) $(CFLAGS) -c -o $@ $<

.c.64.o:
	echo Compiling 64-bit $<...
	$(CC) $(ARCH64FLAGS) $(OPTIM) $(CFLAGS) -c -o $@ $<

.cxx.o:
	echo Compiling $<...
	$(CXX) $(ARCHFLAGS) $(OPTIM) $(CXXFLAGS) -c $<

.man.1 .man.1m .man.5 .man.7 .man.8:
	echo Linking $<...
	$(RM) $@
	$(LN) $< $@

.man.1.gz .man.1m.gz .man.5.gz .man.7.gz .man.8.gz .man.gz:
	echo -n Compressing $<...
	$(RM) $@
	gzip -v9 <$< >$@


#
# End of "$Id: Makedefs.in 5564 2006-05-22 00:59:11Z mike $"
#
