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