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