Makefile revision a1e9eea083a8f257157edb8a1efb5bbd300eb4bf
6214N/A# CDDL HEADER START
6214N/A#
6214N/A# The contents of this file are subject to the terms of the
6214N/A# Common Development and Distribution License (the "License").
6214N/A# You may not use this file except in compliance with the License.
6214N/A#
6214N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6214N/A# or http://www.opensolaris.org/os/licensing.
6214N/A# See the License for the specific language governing permissions
6214N/A# and limitations under the License.
6214N/A#
6214N/A# When distributing Covered Code, include this CDDL HEADER in each
6214N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6214N/A# If applicable, add the following below this CDDL HEADER, with the
6214N/A# fields enclosed by brackets "[]" replaced with your own identifying
6214N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6214N/A#
6214N/A# CDDL HEADER END
6214N/A#
6214N/A#
6214N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
6214N/A# Use is subject to license terms.
6214N/A#
6214N/A#
6214N/A
6214N/A# must be before include of Makefile.cmd
6214N/ADYNPROG = scmadm \
6214N/A sd_stats \
6214N/A sd_diag
6214N/A
6214N/Ainclude ../../Makefile.cmd
6214N/Ainclude ../Makefile.com
6214N/A
6214N/ASUBDIRS= etc
6214N/A
6214N/APROG = $(DYNPROG)
6214N/A
6214N/Ascmadm := POBJS = scmadm.o sdbc_ioctl.o
6214N/Asd_stats := POBJS = sd_stats.o sd_trace.o sdbc_ioctl.o rdc_ioctl.o
6214N/Asd_diag := POBJS = sd_diag.o
6214N/Asdbc_dynmem := POBJS = sdbc_dynmem.o
6214N/A
6214N/AOBJS= scmadm.o\
6214N/A sdbc_ioctl.o\
6214N/A sd_diag.o\
6214N/A sd_stats.o\
6214N/A sd_trace.o\
6214N/A sdbc_dynmem.o
6214N/A
6214N/AXTRA_OBJS= \
6214N/A rdc_ioctl.o
6214N/A
7335N/ASRCS= $(OBJS:%.o=%.c)
7335N/A
7335N/APOFILE = scmadm.po
6214N/A
6214N/Ascmadm := LDLIBS += -lnsctl -lunistat -ldscfg
6214N/Asd_stats := LDLIBS += -lunistat -lcurses
6214N/Asd_diag := LDLIBS += -lnsctl
6214N/Asdbc_dynmem := LDLIBS += -lkstat
6214N/A
6214N/ACFLAGS += -v -D_SCM_ -D_SD_8K_BLKSIZE -D_SYSCALL32
6214N/ACPPFLAGS += -DNSC_MULTI_TERABYTE
6214N/ALINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user
6214N/ALINTFLAGS += -D_SCM_ -D_SD_8K_BLKSIZE -D_SYSCALL32
6214N/ALINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT
6214N/ALINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
6214N/ALINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY
6214N/ALINTFLAGS += -erroff=E_SEC_FORBIDDEN_WARN_ASCFTIME
6214N/ALINTFLAGS += -DDEBUG
6214N/AROOTLINK = $(ROOTUSRSBIN)/scmadm
6214N/A
6214N/Aall := TARGET= all
6214N/Ainstall := TARGET= install
6214N/Aclean := TARGET= clean
6214N/Aclobber := TARGET= clobber
6214N/Alint := TARGET= lint
6214N/A
6214N/A.KEEP_STATE:
6214N/A
6214N/A.PARALLEL: $(OBJS) $(XTRA_OBJS)
6214N/A
6214N/Aall: $(SUBDIRS) $(PROG) $(POFILE)
6214N/A
6214N/Ainstall: $(SUBDIRS) all $(ROOTPROG) $(ROOTLINK)
6214N/A
6214N/Alint: $(SUBDIRS) lint_SRCS
6214N/A
6214N/Aclean: $(SUBDIRS)
6214N/A $(RM) *.o
6214N/A
6214N/Ardc_ioctl.o: ../rdc/rdc_ioctl.c
6214N/A $(COMPILE.c) ../rdc/rdc_ioctl.c
$(PROG): $$(POBJS)
$(LINK.c) $(POBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
$(ROOTLINK): $(ROOTUSRSBIN) $(ROOTBIN)/scmadm
-$(RM) $@; $(LN) $(ROOTBIN)/scmadm $@
include ../../Makefile.targ
FRC: