xref: /titanic_41/usr/src/lib/print/mod_ipp/Makefile (revision 60425338a8e9a5ded7e559e227eedd42d30c8967)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28LIBRARY =		mod_ipp.a
29VERS =
30OBJECTS = mod_ipp.o
31
32include ../../Makefile.lib
33include ../../Makefile.rootfs
34
35APACHEMODDIR =	$(ROOT)/usr/apache/libexec
36APACHECONFDIR =	$(ROOT)/etc/apache
37LISTENERDIR =	$(ROOT)/var/lp/ipp-listener
38
39ROOTDIRS =	$(ROOT)/usr/apache $(APACHEMODDIR) $(APACHECONFDIR) \
40		$(ROOT)/var/lp $(LISTENERDIR)
41
42$(ROOT)/var/lp:=	DIRMODE = 775
43$(ROOT)/var/lp:=	FILEMODE = 775
44$(ROOT)/var/lp:=	OWNER = lp
45$(ROOT)/var/lp:=	GROUP = lp
46
47LIBS =			$(DYNLIB)
48
49SRCS = $(OBJECTS:%.o = %.c)
50
51MMAPFILE =	mapfile
52
53CFLAGS +=	$(CCVERBOSE)
54CPPFLAGS +=	-I../libipp-listener/common
55CPPFLAGS +=	-I../libipp-core/common
56CPPFLAGS +=	-I/usr/apache/include
57CPPFLAGS +=	-DEAPI
58ZDEFS =		$(ZNODEFS)
59DYNFLAGS +=	-M$(MMAPFILE)
60LDLIBS +=	-lipp-listener -lipp-core -lpapi -lc
61
62#	SMF manifest
63MANIFEST=       ipp-listener.xml
64ROOTMANIFESTDIR=        $(ROOT)/var/svc/manifest/application/print
65ROOTMANIFEST=		$(MANIFEST:%=$(ROOTMANIFESTDIR)/%)
66$(ROOTMANIFEST)         := FILEMODE= 444
67
68#	Apache module
69$(APACHEMODDIR)/$(LIBLINKS):	$(ROOTDIRS)
70
71#	Apache config
72APACHECONFFILE=	$(APACHECONFDIR)/httpd-standalone-ipp.conf
73$(APACHECONFFILE)         := FILEMODE= 644
74LISTENERFILE=	$(LISTENERDIR)/index.html
75$(LISTENERFILE)         := FILEMODE= 444
76
77$(ROOT)/var/lp:=	OWNER = lp
78$(ROOT)/var/lp:=	GROUP = lp
79$(ROOT)/var/lp:=	FILEMODE = 0775
80
81$(APACHEMODDIR)/$(LIBLINKS):=	FILEMODE = 0555
82
83$(ROOTMANIFESTDIR)/% $(APACHEMODDIR)/% $(APACHECONFDIR)/% $(LISTENERDIR)/%:	%
84	$(INS.file)
85
86$(ROOTDIRS):
87	$(INS.dir)
88
89.KEEP_STATE:
90
91all:	$(LIBS)
92
93install:	all $(APACHEMODDIR)/$(LIBLINKS) $(APACHECONFFILE) \
94		$(LISTENERFILE) $(ROOTMANIFEST)
95
96install_h:
97
98lint:
99
100include ../../Makefile.targ
101