8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / libpkg / Makefile.com
bloba0dd3bcab5ef7bb08a79f8a5de89c55c798f1984
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright 2017 Peter Tribble.
26 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
27 # Use is subject to license terms.
30 LIBRARY= libpkg.a
31 VERS=   .1
33 # include library definitions
34 OBJECTS=        \
35                 canonize.o   ckparam.o    ckvolseq.o \
36                 devtype.o    dstream.o    gpkglist.o \
37                 gpkgmap.o    isdir.o      logerr.o \
38                 mappath.o    ncgrpw.o     nhash.o \
39                 path_valid.o pkgexecl.o   pkgexecv.o \
40                 pkgmount.o   pkgtrans.o   ppkgmap.o \
41                 progerr.o    putcfile.o   rrmdir.o \
42                 runcmd.o     srchcfile.o  tputcfent.o \
43                 verify.o \
44                 vfpops.o     fmkdir.o     pkgstr.o \
45                 handlelocalfs.o pkgserv.o
48 # include library definitions
49 include $(SRC)/lib/Makefile.lib
51 SRCDIR=         ../common
53 POFILE =        libpkg.po
54 MSGFILES =      $(OBJECTS:%.o=../common/%.i)
55 CLEANFILES +=   $(MSGFILES)
57 $(LINTLIB):=    SRCS = $(SRCDIR)/$(LINTSRC)
60 LIBS = $(DYNLIB) $(LINTLIB)
63 LDLIBS +=       -lc -lscf -ladm
65 CFLAGS +=       $(CCVERBOSE)
66 CERRWARN +=     -_gcc=-Wno-parentheses
67 CERRWARN +=     -_gcc=-Wno-uninitialized
68 CERRWARN +=     -_gcc=-Wno-clobbered
69 CERRWARN +=     -_gcc=-Wno-switch
70 CPPFLAGS +=     -I$(SRCDIR) -D_FILE_OFFSET_BITS=64
72 .KEEP_STATE:
74 all:    $(LIBS)
76 $(POFILE): $(MSGFILES)
77         $(BUILDPO.msgfiles)
79 _msg: $(MSGDOMAINPOFILE)
81 lint: lintcheck
83 # include library targets
84 include $(SRC)/lib/Makefile.targ
85 include $(SRC)/Makefile.msg.targ