xref: /illumos-gate/usr/src/lib/libpkg/Makefile.com (revision a92282e44f968185a6bba094d1e5fece2da819cf)
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 2017 Peter Tribble.
24
25#
26# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
27# Use is subject to license terms.
28#
29# Copyright (c) 2018, Joyent, Inc.
30
31LIBRARY= libpkg.a
32VERS=	.1
33
34# include library definitions
35OBJECTS=	\
36		canonize.o   ckparam.o    ckvolseq.o \
37		devtype.o    dstream.o    gpkglist.o \
38		gpkgmap.o    isdir.o      logerr.o \
39		mappath.o    ncgrpw.o     nhash.o \
40		path_valid.o pkgexecl.o   pkgexecv.o \
41		pkgmount.o   pkgtrans.o   ppkgmap.o \
42		progerr.o    putcfile.o   rrmdir.o \
43		runcmd.o     srchcfile.o  tputcfent.o \
44		verify.o \
45		vfpops.o     fmkdir.o     pkgstr.o \
46		handlelocalfs.o	pkgserv.o
47
48
49# include library definitions
50include $(SRC)/lib/Makefile.lib
51
52SRCDIR=		../common
53
54POFILE =	libpkg.po
55MSGFILES =	$(OBJECTS:%.o=../common/%.i)
56CLEANFILES +=   $(MSGFILES)
57
58
59
60LIBS = $(DYNLIB)
61
62
63LDLIBS +=	-lc -lscf -ladm
64
65CFLAGS +=	$(CCVERBOSE)
66CERRWARN +=	-_gcc=-Wno-parentheses
67CERRWARN +=	$(CNOWARN_UNINIT)
68CERRWARN +=	-_gcc=-Wno-clobbered
69CERRWARN +=	-_gcc=-Wno-switch
70
71# not linted
72SMATCH=off
73
74CPPFLAGS +=	-I$(SRCDIR) -D_FILE_OFFSET_BITS=64
75
76.KEEP_STATE:
77
78all:	$(LIBS)
79
80$(POFILE): $(MSGFILES)
81	$(BUILDPO.msgfiles)
82
83_msg: $(MSGDOMAINPOFILE)
84
85
86# include library targets
87include $(SRC)/lib/Makefile.targ
88include $(SRC)/Makefile.msg.targ
89