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# 226d52f363SLori 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 356d52f363SLori 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)/%) 396d52f363SLori AltPYTHON= $(PYTHON_26) 40e4d060fbSSam Falkner 41e4d060fbSSam FalknerC99MODE= -xc99=%all 42e4d060fbSSam FalknerC99LMODE= -Xc99=%all 43e4d060fbSSam Falkner 44e4d060fbSSam FalknerLIBS = $(DYNLIB) 456d52f363SLori AltLDLIBS += -lc -lsec -lidmap -lpython2.6 46e4d060fbSSam FalknerCFLAGS += $(CCVERBOSE) 477014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 48*494f7e12SKeith M WesolowskiCPPFLAGS += -I$(ADJUNCT_PROTO)/usr/include/python2.6 49e4d060fbSSam Falkner 50e4d060fbSSam Falkner.KEEP_STATE: 51e4d060fbSSam Falkner 52e4d060fbSSam Falknerall: $(PYOBJS) $(LIBS) 53e4d060fbSSam Falkner 54e4d060fbSSam Falknerinstall: all $(ROOTPYSOLFILES) 55e4d060fbSSam Falkner 56e4d060fbSSam Falkner$(ROOTLIBDIR)/%: % 57e4d060fbSSam Falkner $(INS.pyfile) 58e4d060fbSSam Falkner 59e4d060fbSSam Falknerlint: lintcheck 60e4d060fbSSam Falkner 61e4d060fbSSam Falknerinclude ../../Makefile.targ 62