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