1*f169c0eaSGlenn Lagasse# 2*f169c0eaSGlenn Lagasse# CDDL HEADER START 3*f169c0eaSGlenn Lagasse# 4*f169c0eaSGlenn Lagasse# The contents of this file are subject to the terms of the 5*f169c0eaSGlenn Lagasse# Common Development and Distribution License (the "License"). 6*f169c0eaSGlenn Lagasse# You may not use this file except in compliance with the License. 7*f169c0eaSGlenn Lagasse# 8*f169c0eaSGlenn Lagasse# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*f169c0eaSGlenn Lagasse# or http://www.opensolaris.org/os/licensing. 10*f169c0eaSGlenn Lagasse# See the License for the specific language governing permissions 11*f169c0eaSGlenn Lagasse# and limitations under the License. 12*f169c0eaSGlenn Lagasse# 13*f169c0eaSGlenn Lagasse# When distributing Covered Code, include this CDDL HEADER in each 14*f169c0eaSGlenn Lagasse# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*f169c0eaSGlenn Lagasse# If applicable, add the following below this CDDL HEADER, with the 16*f169c0eaSGlenn Lagasse# fields enclosed by brackets "[]" replaced with your own identifying 17*f169c0eaSGlenn Lagasse# information: Portions Copyright [yyyy] [name of copyright owner] 18*f169c0eaSGlenn Lagasse# 19*f169c0eaSGlenn Lagasse# CDDL HEADER END 20*f169c0eaSGlenn Lagasse# 21*f169c0eaSGlenn Lagasse 22*f169c0eaSGlenn Lagasse# 23*f169c0eaSGlenn Lagasse# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 24*f169c0eaSGlenn Lagasse# 25*f169c0eaSGlenn Lagasse 26*f169c0eaSGlenn LagasseLIBRARY = libbe_py.a 27*f169c0eaSGlenn LagasseVERS = 28*f169c0eaSGlenn LagasseOBJECTS = libbe_py.o 29*f169c0eaSGlenn Lagasse 30*f169c0eaSGlenn Lagasseinclude ../../Makefile.lib 31*f169c0eaSGlenn Lagasse 32*f169c0eaSGlenn LagassePYTHON = $(PYTHON_26) 33*f169c0eaSGlenn LagasseLIBLINKS = 34*f169c0eaSGlenn LagasseSRCDIR = ../common 35*f169c0eaSGlenn LagasseROOTLIBDIR= $(ROOT)/usr/lib/python2.6/vendor-packages 36*f169c0eaSGlenn LagassePYOBJS= $(PYSRCS:%.py=$(SRCDIR)/%.pyc) 37*f169c0eaSGlenn LagassePYFILES= $(PYSRCS) $(PYSRCS:%.py=%.pyc) 38*f169c0eaSGlenn LagasseROOTPYBEFILES= $(PYFILES:%=$(ROOTLIBDIR)/%) 39*f169c0eaSGlenn Lagasse 40*f169c0eaSGlenn LagasseC99MODE= $(C99_ENABLE) 41*f169c0eaSGlenn Lagasse 42*f169c0eaSGlenn LagasseLIBS = $(DYNLIB) 43*f169c0eaSGlenn LagasseLDLIBS += -lbe -lnvpair -lc 44*f169c0eaSGlenn LagasseCFLAGS += $(CCVERBOSE) 45*f169c0eaSGlenn LagasseCPPFLAGS += -I/usr/include/python2.6 -D_FILE_OFFSET_BITS=64 -I../../libbe/common 46*f169c0eaSGlenn Lagasse 47*f169c0eaSGlenn Lagasse.KEEP_STATE: 48*f169c0eaSGlenn Lagasse 49*f169c0eaSGlenn Lagasseall install := LDLIBS += -lpython2.6 50*f169c0eaSGlenn Lagasse 51*f169c0eaSGlenn Lagasseall: $(PYOBJS) $(LIBS) 52*f169c0eaSGlenn Lagasse 53*f169c0eaSGlenn Lagasseinstall: all $(ROOTPYBEFILES) 54*f169c0eaSGlenn Lagasse 55*f169c0eaSGlenn Lagasse$(ROOTLIBDIR)/%: % 56*f169c0eaSGlenn Lagasse $(INS.pyfile) 57*f169c0eaSGlenn Lagasse 58*f169c0eaSGlenn Lagasselint: lintcheck 59*f169c0eaSGlenn Lagasse 60*f169c0eaSGlenn Lagasseinclude ../../Makefile.targ 61