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