comm: add -Wall
[unleashed.git] / usr / src / cmd / Makefile.check
blob33b82f781f332f39294ec1ed0e6887c4259a4b93
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 (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
25 # Copyright 2017 Nexenta Systems, Inc.
28 include ../Makefile.master
31 # Commands providing manifests must offer a check target.  A recursive check
32 # target across all commands directories is not currently provided.
34 MANIFEST_TOPDIRS=                       \
35         acctadm                         \
36         consadm                         \
37         coreadm                         \
38         cron                            \
39         dispadmin                       \
40         dumpadm                         \
41         fcinfo                          \
42         fcoesvc                         \
43         fm                              \
44         ibd_upgrade                     \
45         intrd                           \
46         iscsid                          \
47         iscsitsvc                       \
48         kbd                             \
49         keyserv                         \
50         ldapcachemgr                    \
51         dlmgmtd                         \
52         ndmpd                           \
53         nscd                            \
54         pools                           \
55         power                           \
56         rmvolmgr                        \
57         rpcbind                         \
58         rpcsvc                          \
59         sa                              \
60         saf                             \
61         smserverd                       \
62         stmfsvc                         \
63         stmsboot                        \
64         syseventd                       \
65         syslogd                         \
66         utmpd                           \
67         ypcmd                           \
68         zoneadm                         \
69         zoneadmd
71 MANIFEST_SUBDIRS=                       \
72         boot/scripts                    \
73         cmd-crypto/scripts              \
74         cmd-inet/usr.lib/ilbd           \
75         cmd-inet/usr.lib/in.chargend    \
76         cmd-inet/usr.lib/in.daytimed    \
77         cmd-inet/usr.lib/in.discardd    \
78         cmd-inet/usr.lib/in.echod       \
79         cmd-inet/usr.lib/in.ndpd        \
80         cmd-inet/usr.lib/in.ripngd      \
81         cmd-inet/usr.lib/in.timed       \
82         cmd-inet/usr.lib/inetd          \
83         cmd-inet/usr.lib/mdnsd          \
84         cmd-inet/usr.lib/vrrpd          \
85         cmd-inet/usr.lib/wpad           \
86         cmd-inet/usr.sbin               \
87         cmd-inet/usr.sbin/in.rdisc      \
88         cmd-inet/usr.sbin/in.routed     \
89         cmd-inet/usr.sbin/in.talkd      \
90         cmd-inet/usr.sbin/ipsecutils    \
91         dfs.cmds/sharemgr               \
92         fs.d/autofs                     \
93         fs.d/nfs/svc                    \
94         fs.d/smbclnt/svc                \
95         gss/gssd                        \
96         hal/hald/solaris                \
97         halt/smf.$(MACH)                \
98         hostid/smf                      \
99         idmap/idmapd                    \
100         ipf/svc                         \
101         isns/isnsd                      \
102         krb5/kadmin/server              \
103         krb5/krb5kdc                    \
104         krb5/kwarn                      \
105         krb5/slave                      \
106         rcap/rcapd                      \
107         rpcsvc/rpc.bootparamd           \
108         smbsrv/smbd                     \
109         svc/milestone                   \
110         vscan/vscand                    \
111         ypcmd/yppasswd                  \
112         ypcmd/ypupdated                 \
113         zonestat/zonestatd
115 MISC_SUBDIRS=           \
116         dtrace/test/tst \
117         sgs
119 .KEEP_STATE:
121 # Manifests cannot be checked in parallel, because we are using the global
122 # repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
123 # repository that is built from the manifests in this workspace, whereas
124 # the build machine's repository may be out of sync with these manifests.
125 # Because we are using a private repository, svccfg-native must start up a
126 # private copy of configd-native.  We cannot have multiple copies of
127 # configd-native trying to access global.db simultaneously.
129 .NO_PARALLEL:
131 check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS)
133 svccfg_check:
134         @$(ECHO) "building requirements for svccfg check ..."; \
135         (cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
137 $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS): FRC
138         @cd $@; pwd; $(MAKE) check
140 FRC: