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. 238cfa78e6SAndy Fiddaman# Copyright 2018 OmniOS Community Edition (OmniOSce) Association. 24e4d060fbSSam Falkner# 25e4d060fbSSam Falkner 26e4d060fbSSam FalknerLIBRARY = misc.a 27e4d060fbSSam FalknerVERS = 28e4d060fbSSam FalknerOBJECTS = misc.o 29e4d060fbSSam Falkner 30e4d060fbSSam FalknerPYSRCS= __init__.py 31e4d060fbSSam Falkner 32e4d060fbSSam Falknerinclude ../../Makefile.lib 33e4d060fbSSam Falkner 34e4d060fbSSam FalknerLIBLINKS = 35e4d060fbSSam FalknerSRCDIR = ../common 36*c7815133SAndy FiddamanROOTLIBDIR= $(ROOT)/usr/lib/python$(PYVER)/vendor-packages/solaris 378cfa78e6SAndy FiddamanROOTLIBDIR64= $(ROOTLIBDIR)/64 38e4d060fbSSam FalknerPYOBJS= $(PYSRCS:%.py=$(SRCDIR)/%.pyc) 39e4d060fbSSam FalknerPYFILES= $(PYSRCS) $(PYSRCS:%.py=%.pyc) 40e4d060fbSSam FalknerROOTPYSOLFILES= $(PYFILES:%=$(ROOTLIBDIR)/%) 41e4d060fbSSam Falkner 42e4d060fbSSam FalknerC99MODE= -xc99=%all 43e4d060fbSSam FalknerC99LMODE= -Xc99=%all 44e4d060fbSSam Falkner 45e4d060fbSSam FalknerLIBS = $(DYNLIB) 46*c7815133SAndy FiddamanLDLIBS += -lc -lsec -lidmap -lpython$(PYVER)$(PYSUFFIX) 47e4d060fbSSam FalknerCFLAGS += $(CCVERBOSE) 487014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 498cfa78e6SAndy FiddamanCPPFLAGS += \ 50*c7815133SAndy Fiddaman -I$(ADJUNCT_PROTO)/usr/include/python$(PYVER)$(PYSUFFIX) 518cfa78e6SAndy Fiddaman 528cfa78e6SAndy Fiddamanall: 53e4d060fbSSam Falkner 54e4d060fbSSam Falkner.KEEP_STATE: 55e4d060fbSSam Falkner 56e4d060fbSSam Falkner$(ROOTLIBDIR)/%: % 57e4d060fbSSam Falkner $(INS.pyfile) 58e4d060fbSSam Falkner 5924bb1048SAlexander Pyhalov$(ROOTLIBDIR)/%: ../common/% 6024bb1048SAlexander Pyhalov $(INS.pyfile) 6124bb1048SAlexander Pyhalov 62e4d060fbSSam Falknerlint: lintcheck 63e4d060fbSSam Falkner 64e4d060fbSSam Falknerinclude ../../Makefile.targ 65