Makefile revision 355b4669e025ff377602b6fc7caaf30dbc218371
90N/A#
90N/A# CDDL HEADER START
1276N/A#
90N/A# The contents of this file are subject to the terms of the
1370N/A# Common Development and Distribution License (the "License").
90N/A# You may not use this file except in compliance with the License.
90N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
90N/A# ident "%Z%%M% %I% %E% SMI"
90N/A#
90N/A
90N/ALIBRARY = mod_ipp.a
493N/AVERS =
90N/AOBJECTS = mod_ipp.o
90N/A
1370N/Ainclude ../../Makefile.lib
90N/Ainclude ../../Makefile.rootfs
911N/A
1370N/AAPACHEMODDIR = $(ROOT)/usr/apache/libexec
1370N/AAPACHECONFDIR = $(ROOT)/etc/apache
1370N/ALISTENERDIR = $(ROOT)/var/lp/ipp-listener
911N/A
90N/AROOTDIRS = $(ROOT)/usr/apache $(APACHEMODDIR) $(APACHECONFDIR) \
90N/A $(ROOT)/var/lp $(LISTENERDIR)
90N/A
970N/A$(ROOT)/var/lp:= DIRMODE = 775
970N/A$(ROOT)/var/lp:= FILEMODE = 775
970N/A$(ROOT)/var/lp:= OWNER = lp
90N/A$(ROOT)/var/lp:= GROUP = lp
90N/A
90N/ALIBS = $(DYNLIB)
90N/A
90N/ASRCS = $(OBJECTS:%.o = %.c)
493N/A
90N/AMMAPFILE = mapfile
90N/A
90N/ACFLAGS += $(CCVERBOSE)
493N/ACPPFLAGS += -I../libipp-listener/common
90N/ACPPFLAGS += -I../libipp-core/common
90N/ACPPFLAGS += -I/usr/apache/include
90N/ACPPFLAGS += -DEAPI
90N/AZDEFS = $(ZNODEFS)
90N/ADYNFLAGS += -M$(MMAPFILE)
1072N/ALDLIBS += -lipp-listener -lipp-core -lpapi -lc
90N/A
970N/A# SMF manifest
970N/AMANIFEST= ipp-listener.xml
970N/AROOTMANIFESTDIR= $(ROOT)/var/svc/manifest/application/print
970N/AROOTMANIFEST= $(MANIFEST:%=$(ROOTMANIFESTDIR)/%)
970N/A$(ROOTMANIFEST) := FILEMODE= 444
970N/A
90N/A# Apache module
90N/A$(APACHEMODDIR)/$(LIBLINKS): $(ROOTDIRS)
970N/A
970N/A# Apache config
970N/AAPACHECONFFILE= $(APACHECONFDIR)/httpd-standalone-ipp.conf
1072N/A$(APACHECONFFILE) := FILEMODE= 644
1072N/ALISTENERFILE= $(LISTENERDIR)/index.html
$(LISTENERFILE) := FILEMODE= 444
$(ROOT)/var/lp:= OWNER = lp
$(ROOT)/var/lp:= GROUP = lp
$(ROOT)/var/lp:= FILEMODE = 0775
$(APACHEMODDIR)/$(LIBLINKS):= FILEMODE = 0555
$(ROOTMANIFESTDIR)/% $(APACHEMODDIR)/% $(APACHECONFDIR)/% $(LISTENERDIR)/%: %
$(INS.file)
$(ROOTDIRS):
$(INS.dir)
.KEEP_STATE:
all: $(LIBS)
install: all $(APACHEMODDIR)/$(LIBLINKS) $(APACHECONFFILE) \
$(LISTENERFILE) $(ROOTMANIFEST)
install_h:
lint:
include ../../Makefile.targ