Makedefs   [plain text]


#
# "$Id: Makedefs,v 1.50 2005/02/16 17:57:59 jlovell Exp $"
#
#   Common makefile definitions for the Common UNIX Printing System (CUPS).
#
#   Copyright 1997-2005 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/bin/ar
AWK		=	awk
CC		=	 gcc
CXX		=	 gcc
DSO		=	$(CC)
HTMLDOC		=	
INSTALL		=	/usr/bin/install -c
LIBTOOL		=	
LN		=	/bin/ln -sf
MV		=	/bin/mv
NROFF		=	/usr/bin/nroff
RANLIB		=	ranlib
RM		=	/bin/rm -f
SED		=	/usr/bin/sed
SHELL		=	/bin/sh
STRIP		=	/usr/bin/strip

#
# Installation programs...
#

INSTALL_BIN	=	$(LIBTOOL) $(INSTALL) -m 755 -s
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 and group for the scheduler...
#

CUPS_USER	=	lp
CUPS_GROUP	=	lp

#
# Libraries...
#

LIBCUPS		=	libcups.2.dylib
LIBCUPSIMAGE	=	libcupsimage.2.dylib
LIBJPEG		=	
LIBMALLOC	=	
LIBPAPER	=	
LIBPNG		=	
LIBSLP		=	
LIBTIFF		=	
LIBZ		=	-lz

#
# Program options...
#
# OPTIM   defines the common compiler optimization/debugging options.
# OPTIONS defines other compile-time options (currently only -dDEBUG for
#         extra debug info)
#

ARFLAGS		=	-rcv
BACKLIBS	=	-framework CoreFoundation -framework IOKit
CFLAGS		=	$(RC_CFLAGS) $(SSLFLAGS)   -I.. $(OPTIONS)
COMMONLIBS	=	
CXXFLAGS	=	$(RC_CFLAGS)   -I.. $(OPTIONS)
CXXLIBS		=	-lsupc++
DSOFLAGS	=	 $(RC_CFLAGS) -dynamiclib -single_module -lc
DSOLIBS		=	$(LIBPNG) $(LIBTIFF) $(LIBJPEG) $(LIBZ) $(COMMONLIBS)
IMGLIBS		=	 -lm
LDFLAGS		=	-L../cups -L../filter $(RC_CFLAGS)  $(OPTIM)
LINKCUPS	=	-lcups
LINKCUPSIMAGE	=	-lcupsimage
LIBS		=	$(LINKCUPS) $(NETLIBS)  $(COMMONLIBS)
NETLIBS		=	
OPTIM		=	-fPIC -Os -g -Wall 
OPTIONS		=
PAMLIBS		=	-lpam -ldl
SSLFLAGS	=	
SSLLIBS		=	 
DNSSDLIBS	=	-framework CoreFoundation -framework SystemConfiguration
LIBCUPSLIBS	=	-framework CoreFoundation
CUPSDLIBS	=	-framework CoreFoundation -framework IOKit $(DNSSDLIBS)

#
# 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		=	${exec_prefix}/bin
datadir		=	/usr/share
exec_prefix	=	/usr
includedir	=	/usr/include
infodir		=	${prefix}/info
libdir		=	/usr/lib
libexecdir	=	${exec_prefix}/libexec
localstatedir	=	/private/var
mandir		=	/usr/share/man
oldincludedir	=	/usr/include
prefix		=	/
sbindir		=	${exec_prefix}/sbin
sharedstatedir	=	/usr/com
srcdir		=	.
sysconfdir	=	/private/etc
top_srcdir	=	.

BUILDROOT	=	$(DSTROOT)

AMANDIR		=	$(BUILDROOT)/usr/share/man
BINDIR		=	$(BUILDROOT)${exec_prefix}/bin
DATADIR		=	$(BUILDROOT)/usr/share/cups
DOCDIR		=	$(BUILDROOT)/usr/share/doc/cups
INCLUDEDIR	=	$(BUILDROOT)$(includedir)
INITDIR		=	
INITDDIR	=	/System/Library/StartupItems/PrintingServices
LIBDIR		=	$(BUILDROOT)$(libdir)
LOCALEDIR	= 	$(BUILDROOT)/usr/share/locale
LOGDIR		= 	$(BUILDROOT)/private/var/log/cups
MANDIR		=	$(BUILDROOT)/usr/share/man
PMANDIR		=	$(BUILDROOT)/usr/share/man
REQUESTS	= 	$(BUILDROOT)/private/var/spool/cups
SBINDIR		=	$(BUILDROOT)${exec_prefix}/sbin
SERVERBIN	= 	$(BUILDROOT)/usr/libexec/cups
SERVERROOT	= 	$(BUILDROOT)/private/etc/cups

CAT1EXT		=	0
CAT3EXT		=	0
CAT5EXT		=	0
CAT8EXT		=	0
MAN8EXT		=	8
MAN8DIR		=	8

PAMDIR		=	$(BUILDROOT)/private/etc/pam.d
PAMFILE		=	pam.darwin


#
# Rules...
#

.SILENT:
.SUFFIXES:	.a .c .cxx .h .man .o .0 .1 .1m .3 .5 .8 .z
.c.o:
	echo Compiling $<...
	$(CC) $(OPTIM) $(CFLAGS) -c $<
.cxx.o:
	echo Compiling $<...
	$(CXX) $(OPTIM) $(CXXFLAGS) -c $<
.man.0 .man.1 .man.1m .man.3 .man.5 .man.8:
	echo Formatting $<...
	$(RM) $@
	-$(NROFF) -man $< >$@
.man.z:
	echo Formatting $<...
	$(RM) $@ $@.tmp $@.tmp.z
	-$(NROFF) -man $< >$@.tmp
	pack -f $@.tmp
	$(MV) $@.tmp.z $@


#
# End of "$Id: Makedefs,v 1.50 2005/02/16 17:57:59 jlovell Exp $"
#