1*5c51f124SMoriah Waterland# 2*5c51f124SMoriah Waterland# CDDL HEADER START 3*5c51f124SMoriah Waterland# 4*5c51f124SMoriah Waterland# The contents of this file are subject to the terms of the 5*5c51f124SMoriah Waterland# Common Development and Distribution License (the "License"). 6*5c51f124SMoriah Waterland# You may not use this file except in compliance with the License. 7*5c51f124SMoriah Waterland# 8*5c51f124SMoriah Waterland# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*5c51f124SMoriah Waterland# or http://www.opensolaris.org/os/licensing. 10*5c51f124SMoriah Waterland# See the License for the specific language governing permissions 11*5c51f124SMoriah Waterland# and limitations under the License. 12*5c51f124SMoriah Waterland# 13*5c51f124SMoriah Waterland# When distributing Covered Code, include this CDDL HEADER in each 14*5c51f124SMoriah Waterland# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*5c51f124SMoriah Waterland# If applicable, add the following below this CDDL HEADER, with the 16*5c51f124SMoriah Waterland# fields enclosed by brackets "[]" replaced with your own identifying 17*5c51f124SMoriah Waterland# information: Portions Copyright [yyyy] [name of copyright owner] 18*5c51f124SMoriah Waterland# 19*5c51f124SMoriah Waterland# CDDL HEADER END 20*5c51f124SMoriah Waterland# 21*5c51f124SMoriah Waterland 22*5c51f124SMoriah Waterland# 23*5c51f124SMoriah Waterland# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24*5c51f124SMoriah Waterland# Use is subject to license terms. 25*5c51f124SMoriah Waterland# 26*5c51f124SMoriah Waterland 27*5c51f124SMoriah WaterlandLIBRARY= libpkg.a 28*5c51f124SMoriah WaterlandVERS= .1 29*5c51f124SMoriah Waterland 30*5c51f124SMoriah Waterland# include library definitions 31*5c51f124SMoriah WaterlandOBJECTS= \ 32*5c51f124SMoriah Waterland canonize.o ckparam.o ckvolseq.o \ 33*5c51f124SMoriah Waterland devtype.o dstream.o gpkglist.o \ 34*5c51f124SMoriah Waterland gpkgmap.o isdir.o logerr.o \ 35*5c51f124SMoriah Waterland mappath.o ncgrpw.o nhash.o \ 36*5c51f124SMoriah Waterland pkgexecl.o pkgexecv.o pkgmount.o \ 37*5c51f124SMoriah Waterland pkgtrans.o pkgxpand.o ppkgmap.o \ 38*5c51f124SMoriah Waterland progerr.o putcfile.o rrmdir.o \ 39*5c51f124SMoriah Waterland runcmd.o srchcfile.o tputcfent.o \ 40*5c51f124SMoriah Waterland verify.o security.o pkgweb.o \ 41*5c51f124SMoriah Waterland pkgerr.o keystore.o p12lib.o \ 42*5c51f124SMoriah Waterland vfpops.o fmkdir.o pkgstr.o \ 43*5c51f124SMoriah Waterland handlelocalfs.o 44*5c51f124SMoriah Waterland 45*5c51f124SMoriah Waterland 46*5c51f124SMoriah Waterland# include library definitions 47*5c51f124SMoriah Waterlandinclude $(SRC)/lib/Makefile.lib 48*5c51f124SMoriah Waterland 49*5c51f124SMoriah WaterlandSRCDIR= ../common 50*5c51f124SMoriah Waterland 51*5c51f124SMoriah WaterlandPOFILE = libpkg.po 52*5c51f124SMoriah WaterlandMSGFILES = $(OBJECTS:%.o=../common/%.i) 53*5c51f124SMoriah WaterlandCLEANFILES += $(MSGFILES) 54*5c51f124SMoriah Waterland 55*5c51f124SMoriah Waterland# This library is NOT lint clean 56*5c51f124SMoriah Waterland 57*5c51f124SMoriah Waterland# openssl forces us to ignore dubious pointer casts, thanks to its clever 58*5c51f124SMoriah Waterland# use of macros for stack management. 59*5c51f124SMoriah WaterlandLINTFLAGS= -umx -errtags \ 60*5c51f124SMoriah Waterland -erroff=E_BAD_PTR_CAST_ALIGN,E_BAD_PTR_CAST 61*5c51f124SMoriah Waterland$(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) 62*5c51f124SMoriah Waterland 63*5c51f124SMoriah Waterland 64*5c51f124SMoriah WaterlandLIBS = $(DYNLIB) $(LINTLIB) 65*5c51f124SMoriah Waterland 66*5c51f124SMoriah Waterland 67*5c51f124SMoriah WaterlandLDLIBS += -lc -lssl -lwanboot -lcrypto -lscf -ladm 68*5c51f124SMoriah Waterland 69*5c51f124SMoriah WaterlandCFLAGS += $(CCVERBOSE) 70*5c51f124SMoriah WaterlandCPPFLAGS += -I$(SRCDIR) -D_FILE_OFFSET_BITS=64 71*5c51f124SMoriah Waterland 72*5c51f124SMoriah Waterland.KEEP_STATE: 73*5c51f124SMoriah Waterland 74*5c51f124SMoriah Waterlandall: $(LIBS) 75*5c51f124SMoriah Waterland 76*5c51f124SMoriah Waterland$(POFILE): $(MSGFILES) 77*5c51f124SMoriah Waterland $(BUILDPO.msgfiles) 78*5c51f124SMoriah Waterland 79*5c51f124SMoriah Waterland_msg: $(MSGDOMAINPOFILE) 80*5c51f124SMoriah Waterland 81*5c51f124SMoriah Waterlandlint: lintcheck 82*5c51f124SMoriah Waterland 83*5c51f124SMoriah Waterland# include library targets 84*5c51f124SMoriah Waterlandinclude $(SRC)/lib/Makefile.targ 85*5c51f124SMoriah Waterlandinclude $(SRC)/Makefile.msg.targ 86