xref: /onnv-gate/usr/src/lib/print/mod_ipp/Makefile (revision 11996:91b62f7b8186)
12264Sjacobs#
22264Sjacobs# CDDL HEADER START
32264Sjacobs#
42264Sjacobs# The contents of this file are subject to the terms of the
52264Sjacobs# Common Development and Distribution License (the "License").
62264Sjacobs# You may not use this file except in compliance with the License.
72264Sjacobs#
82264Sjacobs# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92264Sjacobs# or http://www.opensolaris.org/os/licensing.
102264Sjacobs# See the License for the specific language governing permissions
112264Sjacobs# and limitations under the License.
122264Sjacobs#
132264Sjacobs# When distributing Covered Code, include this CDDL HEADER in each
142264Sjacobs# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152264Sjacobs# If applicable, add the following below this CDDL HEADER, with the
162264Sjacobs# fields enclosed by brackets "[]" replaced with your own identifying
172264Sjacobs# information: Portions Copyright [yyyy] [name of copyright owner]
182264Sjacobs#
192264Sjacobs# CDDL HEADER END
202264Sjacobs#
212264Sjacobs#
22*11996SThomas.Whitten@Sun.COM# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
232264Sjacobs# Use is subject to license terms.
242264Sjacobs#
252264Sjacobs
262264SjacobsLIBRARY =		mod_ipp.a
272264SjacobsVERS =
282264SjacobsOBJECTS = mod_ipp.o
292264Sjacobs
302264Sjacobsinclude ../../Makefile.lib
312264Sjacobsinclude ../../Makefile.rootfs
322264Sjacobs
332264SjacobsAPACHEMODDIR =	$(ROOT)/usr/apache/libexec
342264SjacobsAPACHECONFDIR =	$(ROOT)/etc/apache
352264SjacobsLISTENERDIR =	$(ROOT)/var/lp/ipp-listener
362264Sjacobs
372264SjacobsROOTDIRS =	$(ROOT)/usr/apache $(APACHEMODDIR) $(APACHECONFDIR) \
382264Sjacobs		$(ROOT)/var/lp $(LISTENERDIR)
392264Sjacobs
402264Sjacobs$(ROOT)/var/lp:=	DIRMODE = 775
412264Sjacobs$(ROOT)/var/lp:=	FILEMODE = 775
422264Sjacobs
432264SjacobsLIBS =			$(DYNLIB)
442264Sjacobs
452264SjacobsSRCS = $(OBJECTS:%.o = %.c)
462264Sjacobs
472264Sjacobs
482264SjacobsCFLAGS +=	$(CCVERBOSE)
492264SjacobsCPPFLAGS +=	-I../libipp-listener/common
502264SjacobsCPPFLAGS +=	-I../libipp-core/common
512264SjacobsCPPFLAGS +=	-I/usr/apache/include
522264SjacobsCPPFLAGS +=	-DEAPI
532264SjacobsZDEFS =		$(ZNODEFS)
542522Sraf
552522SrafMAPFILES =	mapfile
562522Sraf
572264SjacobsLDLIBS +=	-lipp-listener -lipp-core -lpapi -lc
582264Sjacobs
592264Sjacobs#	SMF manifest
602264SjacobsMANIFEST=       ipp-listener.xml
61*11996SThomas.Whitten@Sun.COMROOTMANIFESTDIR=        $(ROOT)/lib/svc/manifest/application/print
622264SjacobsROOTMANIFEST=		$(MANIFEST:%=$(ROOTMANIFESTDIR)/%)
632264Sjacobs$(ROOTMANIFEST)         := FILEMODE= 444
642264Sjacobs
652264Sjacobs#	Apache module
662264Sjacobs$(APACHEMODDIR)/$(LIBLINKS):	$(ROOTDIRS)
672264Sjacobs
682264Sjacobs#	Apache config
692264SjacobsAPACHECONFFILE=	$(APACHECONFDIR)/httpd-standalone-ipp.conf
702264Sjacobs$(APACHECONFFILE)         := FILEMODE= 644
712264SjacobsLISTENERFILE=	$(LISTENERDIR)/index.html
722264Sjacobs$(LISTENERFILE)         := FILEMODE= 444
732264Sjacobs
742264Sjacobs$(ROOT)/var/lp:=	FILEMODE = 0775
752264Sjacobs
762264Sjacobs$(APACHEMODDIR)/$(LIBLINKS):=	FILEMODE = 0555
772264Sjacobs
782264Sjacobs$(ROOTMANIFESTDIR)/% $(APACHEMODDIR)/% $(APACHECONFDIR)/% $(LISTENERDIR)/%:	%
792264Sjacobs	$(INS.file)
802264Sjacobs
812264Sjacobs$(ROOTDIRS):
822264Sjacobs	$(INS.dir)
832264Sjacobs
842264Sjacobs.KEEP_STATE:
852264Sjacobs
862264Sjacobsall:	$(LIBS)
872264Sjacobs
882264Sjacobsinstall:	all $(APACHEMODDIR)/$(LIBLINKS) $(APACHECONFFILE) \
892264Sjacobs		$(LISTENERFILE) $(ROOTMANIFEST)
902264Sjacobs
912264Sjacobsinstall_h:
922264Sjacobs
932264Sjacobslint:
942264Sjacobs
952264Sjacobsinclude ../../Makefile.targ
96