xref: /titanic_52/usr/src/lib/pysolaris/Makefile.com (revision 6d52f363e3b2c0c5da672c5b8c8adec99d345f38)
1e4d060fbSSam Falkner#
2e4d060fbSSam Falkner# CDDL HEADER START
3e4d060fbSSam Falkner#
4e4d060fbSSam Falkner# The contents of this file are subject to the terms of the
5e4d060fbSSam Falkner# Common Development and Distribution License (the "License").
6e4d060fbSSam Falkner# You may not use this file except in compliance with the License.
7e4d060fbSSam Falkner#
8e4d060fbSSam Falkner# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e4d060fbSSam Falkner# or http://www.opensolaris.org/os/licensing.
10e4d060fbSSam Falkner# See the License for the specific language governing permissions
11e4d060fbSSam Falkner# and limitations under the License.
12e4d060fbSSam Falkner#
13e4d060fbSSam Falkner# When distributing Covered Code, include this CDDL HEADER in each
14e4d060fbSSam Falkner# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15e4d060fbSSam Falkner# If applicable, add the following below this CDDL HEADER, with the
16e4d060fbSSam Falkner# fields enclosed by brackets "[]" replaced with your own identifying
17e4d060fbSSam Falkner# information: Portions Copyright [yyyy] [name of copyright owner]
18e4d060fbSSam Falkner#
19e4d060fbSSam Falkner# CDDL HEADER END
20e4d060fbSSam Falkner#
21e4d060fbSSam Falkner#
22*6d52f363SLori Alt# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
23e4d060fbSSam Falkner#
24e4d060fbSSam Falkner
25e4d060fbSSam FalknerLIBRARY =	misc.a
26e4d060fbSSam FalknerVERS =
27e4d060fbSSam FalknerOBJECTS =	misc.o
28e4d060fbSSam Falkner
29e4d060fbSSam FalknerPYSRCS=		__init__.py
30e4d060fbSSam Falkner
31e4d060fbSSam Falknerinclude ../../Makefile.lib
32e4d060fbSSam Falkner
33e4d060fbSSam FalknerLIBLINKS =
34e4d060fbSSam FalknerSRCDIR =	../common
35*6d52f363SLori AltROOTLIBDIR=	$(ROOT)/usr/lib/python2.6/vendor-packages/solaris
36e4d060fbSSam FalknerPYOBJS=		$(PYSRCS:%.py=$(SRCDIR)/%.pyc)
37e4d060fbSSam FalknerPYFILES=	$(PYSRCS) $(PYSRCS:%.py=%.pyc)
38e4d060fbSSam FalknerROOTPYSOLFILES= $(PYFILES:%=$(ROOTLIBDIR)/%)
39*6d52f363SLori AltPYTHON=		$(PYTHON_26)
40e4d060fbSSam Falkner
41e4d060fbSSam FalknerC99MODE=        -xc99=%all
42e4d060fbSSam FalknerC99LMODE=       -Xc99=%all
43e4d060fbSSam Falkner
44e4d060fbSSam FalknerLIBS =		$(DYNLIB)
45*6d52f363SLori AltLDLIBS +=	-lc -lsec -lidmap -lpython2.6
46e4d060fbSSam FalknerCFLAGS +=	$(CCVERBOSE)
47*6d52f363SLori AltCPPFLAGS +=	-I/usr/include/python2.6
48e4d060fbSSam Falkner
49e4d060fbSSam Falkner.KEEP_STATE:
50e4d060fbSSam Falkner
51e4d060fbSSam Falknerall: $(PYOBJS) $(LIBS)
52e4d060fbSSam Falkner
53e4d060fbSSam Falknerinstall: all $(ROOTPYSOLFILES)
54e4d060fbSSam Falkner
55e4d060fbSSam Falkner$(ROOTLIBDIR)/%: %
56e4d060fbSSam Falkner	$(INS.pyfile)
57e4d060fbSSam Falkner
58e4d060fbSSam Falknerlint: lintcheck
59e4d060fbSSam Falkner
60e4d060fbSSam Falknerinclude ../../Makefile.targ
61