xref: /titanic_52/usr/src/lib/libpkg/Makefile.com (revision 37bbd7cc85ebfd31fbf68569b8b098e5448c9ce9)
15c51f124SMoriah Waterland#
25c51f124SMoriah Waterland# CDDL HEADER START
35c51f124SMoriah Waterland#
45c51f124SMoriah Waterland# The contents of this file are subject to the terms of the
55c51f124SMoriah Waterland# Common Development and Distribution License (the "License").
65c51f124SMoriah Waterland# You may not use this file except in compliance with the License.
75c51f124SMoriah Waterland#
85c51f124SMoriah Waterland# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95c51f124SMoriah Waterland# or http://www.opensolaris.org/os/licensing.
105c51f124SMoriah Waterland# See the License for the specific language governing permissions
115c51f124SMoriah Waterland# and limitations under the License.
125c51f124SMoriah Waterland#
135c51f124SMoriah Waterland# When distributing Covered Code, include this CDDL HEADER in each
145c51f124SMoriah Waterland# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155c51f124SMoriah Waterland# If applicable, add the following below this CDDL HEADER, with the
165c51f124SMoriah Waterland# fields enclosed by brackets "[]" replaced with your own identifying
175c51f124SMoriah Waterland# information: Portions Copyright [yyyy] [name of copyright owner]
185c51f124SMoriah Waterland#
195c51f124SMoriah Waterland# CDDL HEADER END
205c51f124SMoriah Waterland#
215c51f124SMoriah Waterland
225c51f124SMoriah Waterland#
235c51f124SMoriah Waterland# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
245c51f124SMoriah Waterland# Use is subject to license terms.
255c51f124SMoriah Waterland#
265c51f124SMoriah Waterland
275c51f124SMoriah WaterlandLIBRARY= libpkg.a
285c51f124SMoriah WaterlandVERS=	.1
295c51f124SMoriah Waterland
305c51f124SMoriah Waterland# include library definitions
315c51f124SMoriah WaterlandOBJECTS=	\
325c51f124SMoriah Waterland		canonize.o   ckparam.o    ckvolseq.o \
335c51f124SMoriah Waterland		devtype.o    dstream.o    gpkglist.o \
345c51f124SMoriah Waterland		gpkgmap.o    isdir.o      logerr.o \
355c51f124SMoriah Waterland		mappath.o    ncgrpw.o     nhash.o \
365c51f124SMoriah Waterland		pkgexecl.o   pkgexecv.o   pkgmount.o \
374656d474SGarrett D'Amore		pkgtrans.o   ppkgmap.o \
385c51f124SMoriah Waterland		progerr.o    putcfile.o   rrmdir.o \
395c51f124SMoriah Waterland		runcmd.o     srchcfile.o  tputcfent.o \
405c51f124SMoriah Waterland		verify.o     security.o   pkgweb.o \
415c51f124SMoriah Waterland		pkgerr.o     keystore.o   p12lib.o \
425c51f124SMoriah Waterland		vfpops.o     fmkdir.o     pkgstr.o \
4362224350SCasper H.S. Dik		handlelocalfs.o	pkgserv.o
445c51f124SMoriah Waterland
455c51f124SMoriah Waterland
465c51f124SMoriah Waterland# include library definitions
475c51f124SMoriah Waterlandinclude $(SRC)/lib/Makefile.lib
485c51f124SMoriah Waterland
495c51f124SMoriah WaterlandSRCDIR=		../common
505c51f124SMoriah Waterland
515c51f124SMoriah WaterlandPOFILE =	libpkg.po
525c51f124SMoriah WaterlandMSGFILES =	$(OBJECTS:%.o=../common/%.i)
535c51f124SMoriah WaterlandCLEANFILES +=   $(MSGFILES)
545c51f124SMoriah Waterland
555c51f124SMoriah Waterland# This library is NOT lint clean
565c51f124SMoriah Waterland
575c51f124SMoriah Waterland# openssl forces us to ignore dubious pointer casts, thanks to its clever
585c51f124SMoriah Waterland# use of macros for stack management.
595c51f124SMoriah WaterlandLINTFLAGS=      -umx -errtags \
605c51f124SMoriah Waterland		-erroff=E_BAD_PTR_CAST_ALIGN,E_BAD_PTR_CAST
61*37bbd7ccSRichard LoweLINTFLAGS +=	-erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
62*37bbd7ccSRichard LoweLINTFLAGS64 +=	-erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
635c51f124SMoriah Waterland$(LINTLIB):=	SRCS = $(SRCDIR)/$(LINTSRC)
645c51f124SMoriah Waterland
655c51f124SMoriah Waterland
665c51f124SMoriah WaterlandLIBS = $(DYNLIB) $(LINTLIB)
675c51f124SMoriah Waterland
685c51f124SMoriah Waterland
69d7141854SRobert MustacchiLDLIBS +=	-lc -lssl -lwanboot -lcrypto -lscf -ladm
705c51f124SMoriah Waterland
715c51f124SMoriah WaterlandCFLAGS +=	$(CCVERBOSE)
727014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-label
737014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
747014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
757014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-clobbered
767014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-switch
777014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-value
785c51f124SMoriah WaterlandCPPFLAGS +=	-I$(SRCDIR) -D_FILE_OFFSET_BITS=64
795c51f124SMoriah Waterland
805c51f124SMoriah Waterland.KEEP_STATE:
815c51f124SMoriah Waterland
825c51f124SMoriah Waterlandall:	$(LIBS)
835c51f124SMoriah Waterland
845c51f124SMoriah Waterland$(POFILE): $(MSGFILES)
855c51f124SMoriah Waterland	$(BUILDPO.msgfiles)
865c51f124SMoriah Waterland
875c51f124SMoriah Waterland_msg: $(MSGDOMAINPOFILE)
885c51f124SMoriah Waterland
895c51f124SMoriah Waterlandlint: lintcheck
905c51f124SMoriah Waterland
915c51f124SMoriah Waterland# include library targets
925c51f124SMoriah Waterlandinclude $(SRC)/lib/Makefile.targ
935c51f124SMoriah Waterlandinclude $(SRC)/Makefile.msg.targ
94