Makefile revision a1e9eea083a8f257157edb8a1efb5bbd300eb4bf
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# CDDL HEADER START
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# The contents of this file are subject to the terms of the
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Common Development and Distribution License (the "License").
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# You may not use this file except in compliance with the License.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# or http://www.opensolaris.org/os/licensing.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# See the License for the specific language governing permissions
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# and limitations under the License.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# When distributing Covered Code, include this CDDL HEADER in each
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# If applicable, add the following below this CDDL HEADER, with the
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# fields enclosed by brackets "[]" replaced with your own identifying
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# information: Portions Copyright [yyyy] [name of copyright owner]
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# CDDL HEADER END
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
ea65739ebec0cbd625d8c89e19592be58fa186a6chenlu chen - Sun Microsystems - Beijing China# Use is subject to license terms.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btDYNPROG = sndrd sndradm sndrboot sndrsyncd
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btinclude ../../Makefile.cmd
9da57d7b0ddd8d73b676ce12c040362132cdd538btinclude ../Makefile.com
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btPROG = $(DYNPROG)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btSUBDIRS= etc
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btsndradm := POBJS = sndradm.o rdc_ioctl.o sndrsubr.o
9da57d7b0ddd8d73b676ce12c040362132cdd538btsndrboot := POBJS = sndrboot.o rdc_ioctl.o sndrsubr.o
9da57d7b0ddd8d73b676ce12c040362132cdd538btsndrd := POBJS = sndrd.o
9da57d7b0ddd8d73b676ce12c040362132cdd538btsndrsyncd := POBJS = sndrsyncd.o rdc_ioctl.o sndrsubr.o
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btOBJS= \
9da57d7b0ddd8d73b676ce12c040362132cdd538bt sndrboot.o \
9da57d7b0ddd8d73b676ce12c040362132cdd538bt sndradm.o \
9da57d7b0ddd8d73b676ce12c040362132cdd538bt sndrd.o \
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale Ghent sndrsyncd.o \
9da57d7b0ddd8d73b676ce12c040362132cdd538bt rdc_ioctl.o \
9da57d7b0ddd8d73b676ce12c040362132cdd538bt sndrsubr.o
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btXTRA_OBJS= \
9da57d7b0ddd8d73b676ce12c040362132cdd538bt sdbc_ioctl.o
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btSRCS= $(OBJS:%.o=%.c) ../sdbc/sdbc_ioctl.c
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btsndradm := LDLIBS += -lrdc -lunistat -ldscfg -lnsctl -lnsl
5fc77b81fbb2d591a82c9778896a466ebc9928cdRobert Mustacchisndrboot := LDLIBS += -lrdc -lunistat -ldscfg
5fc77b81fbb2d591a82c9778896a466ebc9928cdRobert Mustacchisndrd := LDLIBS += -lrdc -lnsl
5fc77b81fbb2d591a82c9778896a466ebc9928cdRobert Mustacchisndrsyncd := LDLIBS += -lrdc -ldscfg -lunistat
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCFLAGS += -v -D_RDC_ -D_SYSCALL32
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweLINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user -D_RDC_ -D_SYSCALL32
dc0cb1cda72a989d92d813e487cdff59f629aa3fDale GhentLINTFLAGS += -DDEBUG
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweLINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
9da57d7b0ddd8d73b676ce12c040362132cdd538btLINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY
9da57d7b0ddd8d73b676ce12c040362132cdd538btLINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT
9da57d7b0ddd8d73b676ce12c040362132cdd538btLINTFLAGS += -erroff=E_FUNC_SET_NOT_USED
9da57d7b0ddd8d73b676ce12c040362132cdd538btPOFILE = rdc_all.po
9da57d7b0ddd8d73b676ce12c040362132cdd538btPOFILES = sndradm.po sndrboot.po
9da57d7b0ddd8d73b676ce12c040362132cdd538btROOTLIBLINKS = $(ROOTLIB)/sndrd $(ROOTLIB)/sndrsyncd
9da57d7b0ddd8d73b676ce12c040362132cdd538btROOTUSRSBINLINKS = $(ROOTUSRSBIN)/sndradm $(ROOTUSRSBIN)/sndrboot
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
ea65739ebec0cbd625d8c89e19592be58fa186a6chenlu chen - Sun Microsystems - Beijing Chinaall := TARGET= all
9da57d7b0ddd8d73b676ce12c040362132cdd538btinstall := TARGET= install
ea65739ebec0cbd625d8c89e19592be58fa186a6chenlu chen - Sun Microsystems - Beijing Chinaclean := TARGET= clean
9da57d7b0ddd8d73b676ce12c040362132cdd538btclobber := TARGET= clobber
9da57d7b0ddd8d73b676ce12c040362132cdd538btlint := TARGET= lint
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt.KEEP_STATE:
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt.PARALLEL: $(OBJS) $(XTRA_OBJS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btall: $(SUBDIRS) $(PROG) $(POFILES)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btinstall: $(SUBDIRS) all $(ROOTPROG) $(ROOTLIBLINKS) $(ROOTUSRSBINLINKS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btlint: $(SUBDIRS) lint_SRCS
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btclean: $(SUBDIRS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt $(RM) *.o $(POFILES)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt$(PROG): $$(POBJS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt $(LINK.c) $(POBJS) -o $@ $(LDLIBS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt $(POST_PROCESS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt$(POFILE): $(POFILES)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt $(RM) $@
9da57d7b0ddd8d73b676ce12c040362132cdd538bt $(CAT) $(POFILES) > $@
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btsdbc_ioctl.o: ../sdbc/sdbc_ioctl.c
9da57d7b0ddd8d73b676ce12c040362132cdd538bt $(COMPILE.c) ../sdbc/sdbc_ioctl.c
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
$(ROOTLIBLINKS): $(ROOTLIB) $(ROOTPROG)
-$(RM) $(ROOTLIBLINKS);
$(LN) $(ROOTBIN)/sndrd $(ROOTLIB)/sndrd;
$(LN) $(ROOTBIN)/sndrsyncd $(ROOTLIB)/sndrsyncd
$(ROOTUSRSBINLINKS): $(ROOTUSRSBIN) $(ROOTPROG)
-$(RM) $(ROOTUSRSBINLINKS);
$(LN) $(ROOTBIN)/sndradm $(ROOTUSRSBIN)/sndradm;
$(LN) $(ROOTBIN)/sndrboot $(ROOTUSRSBIN)/sndrboot
FRC:
include ../../Makefile.targ