fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDYNPROG = sndrd sndradm sndrboot sndrsyncd
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../Makefile.cmd
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../Makefile.com
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePROG = $(DYNPROG)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSUBDIRS= etc
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortesndradm := POBJS = sndradm.o rdc_ioctl.o sndrsubr.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortesndrboot := POBJS = sndrboot.o rdc_ioctl.o sndrsubr.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortesndrd := POBJS = sndrd.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortesndrsyncd := POBJS = sndrsyncd.o rdc_ioctl.o sndrsubr.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJS= \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sndrboot.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sndradm.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sndrd.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sndrsyncd.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte rdc_ioctl.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sndrsubr.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteXTRA_OBJS= \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sdbc_ioctl.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSRCS= $(OBJS:%.o=%.c) ../sdbc/sdbc_ioctl.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortesndradm := LDLIBS += -lrdc -lunistat -ldscfg -lnsctl -lnsl
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortesndrboot := LDLIBS += -lrdc -lunistat -ldscfg
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortesndrd := LDLIBS += -lrdc -lnsl
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortesndrsyncd := LDLIBS += -lrdc -ldscfg -lunistat
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCFLAGS += $(CCVERBOSE) -D_RDC_ -D_SYSCALL32
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user -D_RDC_ -D_SYSCALL32
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -DDEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_FUNC_SET_NOT_USED
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-label
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePOFILE = rdc_all.po
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePOFILES = sndradm.po sndrboot.po
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, RamanaROOTLIBLINKS = $(ROOTLIB)/sndrd $(ROOTLIB)/sndrsyncd
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, RamanaROOTUSRSBINLINKS = $(ROOTUSRSBIN)/sndradm $(ROOTUSRSBIN)/sndrboot
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteall := TARGET= all
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinstall := TARGET= install
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclean := TARGET= clean
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclobber := TARGET= clobber
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelint := TARGET= lint
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte.KEEP_STATE:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte.PARALLEL: $(OBJS) $(XTRA_OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteall: $(SUBDIRS) $(PROG) $(POFILES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramanainstall: $(SUBDIRS) all $(ROOTPROG) $(ROOTLIBLINKS) $(ROOTUSRSBINLINKS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelint: $(SUBDIRS) lint_SRCS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclean: $(SUBDIRS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) *.o $(POFILES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(PROG): $$(POBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(LINK.c) $(POBJS) -o $@ $(LDLIBS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(POFILE): $(POFILES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(CAT) $(POFILES) > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortesdbc_ioctl.o: ../sdbc/sdbc_ioctl.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) ../sdbc/sdbc_ioctl.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(SUBDIRS): FRC
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @cd $@; pwd; $(MAKE) $(TARGET)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana$(ROOTLIBLINKS): $(ROOTLIB) $(ROOTPROG)
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana -$(RM) $(ROOTLIBLINKS);
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana $(LN) $(ROOTBIN)/sndrd $(ROOTLIB)/sndrd;
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana $(LN) $(ROOTBIN)/sndrsyncd $(ROOTLIB)/sndrsyncd
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana$(ROOTUSRSBINLINKS): $(ROOTUSRSBIN) $(ROOTPROG)
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana -$(RM) $(ROOTUSRSBINLINKS);
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana $(LN) $(ROOTBIN)/sndradm $(ROOTUSRSBIN)/sndradm;
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana $(LN) $(ROOTBIN)/sndrboot $(ROOTUSRSBIN)/sndrboot
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFRC:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../Makefile.targ