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