Makefile revision 5f4bac2809e6bb7e9c779a047a0d4438669d85d6
0N/A#
813N/A# CDDL HEADER START
813N/A#
813N/A# The contents of this file are subject to the terms of the
2700N/A# Common Development and Distribution License (the "License").
2700N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2700N/A# or http://www.opensolaris.org/os/licensing.
2700N/A# See the License for the specific language governing permissions
2700N/A# and limitations under the License.
2700N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2700N/A# If applicable, add the following below this CDDL HEADER, with the
2700N/A# fields enclosed by brackets "[]" replaced with your own identifying
2700N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2700N/A#
0N/A# CDDL HEADER END
0N/A#
2700N/A#
2700N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
2700N/A# Use is subject to license terms.
2700N/A#
0N/A# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
0N/A#
2700N/A
2700N/ALIBRARY = mod_ipp.a
2700N/AVERS =
2700N/AOBJECTS = mod_ipp.o
0N/A
0N/Ainclude ../../Makefile.lib
2700N/Ainclude ../../Makefile.rootfs
2700N/A
2700N/A# These *BASE paths are used ONLY at build time to locate headers.
2700N/A# This builds against Apache 2.2 but the module should work with
0N/A# any Apache 2.x version, and APR 1.3 or later.
0N/AAPACHEBASE = /usr/apache2/2.2
2700N/AAPR_BASE = /usr/apr/1.3
2700N/AAPRUBASE = /usr/apr-util/1.3
2700N/A
2700N/AIPPCONFDIR = $(ROOT)/etc/lp/ipp
0N/AIPPLIBDIR = $(ROOT)/usr/lib/lp/ipp
0N/ALISTENERDIR = $(ROOT)/var/lp/ipp-listener
2700N/A
2700N/AROOTDIRS = $(ROOT)/etc/lp $(IPPCONFDIR) \
2700N/A $(ROOT)/usr/lib/lp $(IPPLIBDIR) \
2700N/A $(ROOT)/var/lp $(LISTENERDIR)
0N/A
0N/A$(ROOT)/etc/lp:= DIRMODE = 775
2700N/A$(ROOT)/var/lp:= DIRMODE = 775
2700N/A$(ROOT)/var/lp:= FILEMODE = 775
2700N/A
2700N/ALIBS = $(DYNLIB)
0N/A
0N/ASRCS = $(OBJECTS:%.o = %.c)
2700N/A
2700N/A
2700N/ACFLAGS += $(CCVERBOSE)
2700N/ACPPFLAGS += -I../libipp-listener/common
0N/ACPPFLAGS += -I../libipp-core/common
0N/ACPPFLAGS += -I$(ADJUNCT_PROTO)$(APACHEBASE)/include
2700N/ACPPFLAGS += -I$(ADJUNCT_PROTO)$(APR_BASE)/include
2700N/ACPPFLAGS += -I$(ADJUNCT_PROTO)$(APRUBASE)/include
2700N/ACPPFLAGS += -DAPACHE2
2700N/ACPPFLAGS += -DEAPI
0N/A
0N/A# See: /usr/apache2/2.2/build/config_vars.mk
2700N/A# Make sure to build with compatible flags.
2700N/ACPPFLAGS += -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2700N/A
2700N/AMAPFILES = mapfile httpd-syms.map
0N/A
0N/ALDLIBS += -lipp-listener -lipp-core -lpapi -lc
2700N/A
2700N/A# SMF manifest
2700N/AMANIFEST= ipp-listener.xml
2700N/AROOTMANIFESTDIR= $(ROOT)/lib/svc/manifest/application/print
0N/AROOTMANIFEST= $(MANIFEST:%=$(ROOTMANIFESTDIR)/%)
0N/A$(ROOTMANIFEST) := FILEMODE= 444
2700N/A
2700N/A# Apache module
2700N/A# LIBLINKS is not a link here, just the bare *.so name
2700N/A$(IPPLIBDIR)/$(LIBLINKS): $(ROOTDIRS)
0N/A
0N/A# Apache config
2700N/AAPACHECONFFILE= $(IPPCONFDIR)/httpd-standalone-ipp.conf
2700N/A$(APACHECONFFILE) := FILEMODE= 644
2700N/ALISTENERFILE= $(LISTENERDIR)/index.html
2700N/A$(LISTENERFILE) := FILEMODE= 444
0N/A
0N/A$(ROOT)/var/lp:= FILEMODE = 0775
2700N/A
2700N/A$(IPPLIBDIR)/$(LIBLINKS):= FILEMODE = 0555
2700N/A
2700N/A$(ROOTMANIFESTDIR)/% $(IPPLIBDIR)/% $(IPPCONFDIR)/% $(LISTENERDIR)/%: %
0N/A $(INS.file)
0N/A
2700N/A$(ROOTDIRS):
2700N/A $(INS.dir)
2700N/A
2700N/A.KEEP_STATE:
0N/A
0N/Aall: $(LIBS)
2700N/A
2700N/Ainstall: all $(IPPLIBDIR)/$(LIBLINKS) $(APACHECONFFILE) \
2700N/A $(LISTENERFILE) $(ROOTMANIFEST)
2700N/A
0N/Ainstall_h:
0N/A
2700N/Alint:
2700N/A
2700N/Ainclude ../../Makefile.targ
2700N/A