xref: /titanic_41/usr/src/lib/print/mod_ipp/Makefile (revision 60405de4d8688d96dd05157c28db3ade5c9bc234)
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
51
52CFLAGS +=	$(CCVERBOSE)
53CPPFLAGS +=	-I../libipp-listener/common
54CPPFLAGS +=	-I../libipp-core/common
55CPPFLAGS +=	-I/usr/apache/include
56CPPFLAGS +=	-DEAPI
57ZDEFS =		$(ZNODEFS)
58
59MAPFILES =	mapfile
60
61LDLIBS +=	-lipp-listener -lipp-core -lpapi -lc
62
63#	SMF manifest
64MANIFEST=       ipp-listener.xml
65ROOTMANIFESTDIR=        $(ROOT)/var/svc/manifest/application/print
66ROOTMANIFEST=		$(MANIFEST:%=$(ROOTMANIFESTDIR)/%)
67$(ROOTMANIFEST)         := FILEMODE= 444
68
69#	Apache module
70$(APACHEMODDIR)/$(LIBLINKS):	$(ROOTDIRS)
71
72#	Apache config
73APACHECONFFILE=	$(APACHECONFDIR)/httpd-standalone-ipp.conf
74$(APACHECONFFILE)         := FILEMODE= 644
75LISTENERFILE=	$(LISTENERDIR)/index.html
76$(LISTENERFILE)         := FILEMODE= 444
77
78$(ROOT)/var/lp:=	OWNER = lp
79$(ROOT)/var/lp:=	GROUP = lp
80$(ROOT)/var/lp:=	FILEMODE = 0775
81
82$(APACHEMODDIR)/$(LIBLINKS):=	FILEMODE = 0555
83
84$(ROOTMANIFESTDIR)/% $(APACHEMODDIR)/% $(APACHECONFDIR)/% $(LISTENERDIR)/%:	%
85	$(INS.file)
86
87$(ROOTDIRS):
88	$(INS.dir)
89
90.KEEP_STATE:
91
92all:	$(LIBS)
93
94install:	all $(APACHEMODDIR)/$(LIBLINKS) $(APACHECONFFILE) \
95		$(LISTENERFILE) $(ROOTMANIFEST)
96
97install_h:
98
99lint:
100
101include ../../Makefile.targ
102