3 # The contents of this file are subject to the terms of the
4 # Common Development and Distribution License (the "License").
5 # You may not use this file except in compliance with the License.
7 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8 # or http://www.opensolaris.org/os/licensing.
9 # See the License for the specific language governing permissions
10 # and limitations under the License.
12 # When distributing Covered Code, include this CDDL HEADER in each
13 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14 # If applicable, add the following below this CDDL HEADER, with the
15 # fields enclosed by brackets "[]" replaced with your own identifying
16 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
26 # must be before include of Makefile.cmd
31 include ..
/..
/Makefile.cmd
32 include ..
/Makefile.com
38 scmadm
:= POBJS
= scmadm.o sdbc_ioctl.o
39 sd_stats
:= POBJS
= sd_stats.o sd_trace.o sdbc_ioctl.o rdc_ioctl.o
40 sd_diag
:= POBJS
= sd_diag.o
41 sdbc_dynmem
:= POBJS
= sdbc_dynmem.o
57 scmadm
:= LDLIBS
+= -lnsctl
-lunistat
-ldscfg
58 sd_stats
:= LDLIBS
+= -lunistat
-lcurses
59 sd_diag
:= LDLIBS
+= -lnsctl
60 sdbc_dynmem
:= LDLIBS
+= -lkstat
62 CFLAGS
+= $(CCVERBOSE
) -D_SCM_
-D_SD_8K_BLKSIZE
-D_SYSCALL32
63 CPPFLAGS
+= -DNSC_MULTI_TERABYTE
64 LINTFLAGS
+= -Xa
-n
-s
-x
-m
-u
-Dlint
-errhdr
=%user
65 LINTFLAGS
+= -D_SCM_
-D_SD_8K_BLKSIZE
-D_SYSCALL32
66 LINTFLAGS
+= -erroff
=E_SEC_PRINTF_VAR_FMT
67 LINTFLAGS
+= -erroff
=E_SEC_SPRINTF_UNBOUNDED_COPY
68 LINTFLAGS
+= -erroff
=E_SEC_SCANF_UNBOUNDED_COPY
69 LINTFLAGS
+= -erroff
=E_SEC_FORBIDDEN_WARN_ASCFTIME
71 CERRWARN
+= -_gcc
=-Wno-uninitialized
72 ROOTLINK
= $(ROOTUSRSBIN
)/scmadm
75 install := TARGET
= install
76 clean := TARGET
= clean
77 clobber := TARGET
= clobber
82 .PARALLEL
: $(OBJS
) $(XTRA_OBJS
)
84 all: $(SUBDIRS
) $(PROG
) $(POFILE
)
86 install: $(SUBDIRS
) all $(ROOTPROG
) $(ROOTLINK
)
88 lint
: $(SUBDIRS
) lint_SRCS
93 rdc_ioctl.o
: ..
/rdc
/rdc_ioctl.c
94 $(COMPILE.c
) ..
/rdc
/rdc_ioctl.c
97 $(LINK.c
) $(POBJS
) -o
$@
$(LDLIBS
)
101 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)
103 $(ROOTLINK
): $(ROOTUSRSBIN
) $(ROOTBIN
)/scmadm
104 -$(RM
) $@
; $(LN
) $(ROOTBIN
)/scmadm
$@
106 include ..
/..
/Makefile.targ