Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
18727N/A# CDDL HEADER START
13742N/A#
13742N/A# The contents of this file are subject to the terms of the
13742N/A# Common Development and Distribution License (the "License").
13742N/A# You may not use this file except in compliance with the License.
13742N/A#
13742N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13742N/A# or http://www.opensolaris.org/os/licensing.
13742N/A# See the License for the specific language governing permissions
13742N/A# and limitations under the License.
13742N/A#
13742N/A# When distributing Covered Code, include this CDDL HEADER in each
13742N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
13742N/A# If applicable, add the following below this CDDL HEADER, with the
13742N/A# fields enclosed by brackets "[]" replaced with your own identifying
13742N/A# information: Portions Copyright [yyyy] [name of copyright owner]
13742N/A#
13742N/A# CDDL HEADER END
13742N/A#
13742N/A#
13742N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
13742N/A# Use is subject to license terms.
13742N/A#
13742N/A#
13742N/A
13742N/ADYNPROG = sndrd sndradm sndrboot sndrsyncd
13742N/A
13742N/Ainclude ../../Makefile.cmd
13742N/Ainclude ../Makefile.com
13742N/A
13742N/APROG = $(DYNPROG)
13742N/A
13742N/ASUBDIRS= etc
13742N/A
13742N/Asndradm := POBJS = sndradm.o rdc_ioctl.o sndrsubr.o
13742N/Asndrboot := POBJS = sndrboot.o rdc_ioctl.o sndrsubr.o
13742N/Asndrd := POBJS = sndrd.o
13742N/Asndrsyncd := POBJS = sndrsyncd.o rdc_ioctl.o sndrsubr.o
13742N/A
13742N/AOBJS= \
13742N/A sndrboot.o \
13742N/A sndradm.o \
13742N/A sndrd.o \
13742N/A sndrsyncd.o \
13742N/A rdc_ioctl.o \
13742N/A sndrsubr.o
13742N/A
13742N/AXTRA_OBJS= \
13742N/A sdbc_ioctl.o
13742N/A
13742N/ASRCS= $(OBJS:%.o=%.c) ../sdbc/sdbc_ioctl.c
13742N/A
13742N/Asndradm := LDLIBS += -lrdc -lunistat -ldscfg -lnsctl -lnsl
13742N/Asndrboot := LDLIBS += -lrdc -lunistat -ldscfg
13742N/Asndrd := LDLIBS += -lrdc -lnsl
13742N/Asndrsyncd := LDLIBS += -lrdc -ldscfg -lunistat
13742N/A
13742N/ACFLAGS += $(CCVERBOSE) -D_RDC_ -D_SYSCALL32
13742N/ALINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user -D_RDC_ -D_SYSCALL32
13742N/ALINTFLAGS += -DDEBUG
13742N/ALINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
13742N/ALINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY
13742N/ALINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT
13742N/ALINTFLAGS += -erroff=E_FUNC_SET_NOT_USED
13742N/ACERRWARN += -_gcc=-Wno-unused-label
13742N/ACERRWARN += -_gcc=-Wno-parentheses
13742N/ACERRWARN += -_gcc=-Wno-uninitialized
13742N/APOFILE = rdc_all.po
13742N/APOFILES = sndradm.po sndrboot.po
13742N/AROOTLIBLINKS = $(ROOTLIB)/sndrd $(ROOTLIB)/sndrsyncd
13742N/AROOTUSRSBINLINKS = $(ROOTUSRSBIN)/sndradm $(ROOTUSRSBIN)/sndrboot
13742N/A
13742N/Aall := TARGET= all
13742N/Ainstall := TARGET= install
13742N/Aclean := TARGET= clean
13742N/Aclobber := TARGET= clobber
13742N/Alint := TARGET= lint
13742N/A
13742N/A.KEEP_STATE:
13742N/A
13742N/A.PARALLEL: $(OBJS) $(XTRA_OBJS)
13742N/A
13742N/Aall: $(SUBDIRS) $(PROG) $(POFILES)
13742N/A
13742N/Ainstall: $(SUBDIRS) all $(ROOTPROG) $(ROOTLIBLINKS) $(ROOTUSRSBINLINKS)
13742N/A
13742N/Alint: $(SUBDIRS) lint_SRCS
13742N/A
13742N/Aclean: $(SUBDIRS)
13742N/A $(RM) *.o $(POFILES)
13742N/A
13742N/A$(PROG): $$(POBJS)
13742N/A $(LINK.c) $(POBJS) -o $@ $(LDLIBS)
13742N/A $(POST_PROCESS)
13742N/A
13742N/A$(POFILE): $(POFILES)
13742N/A $(RM) $@
13742N/A $(CAT) $(POFILES) > $@
13742N/A
13742N/Asdbc_ioctl.o: ../sdbc/sdbc_ioctl.c
13742N/A $(COMPILE.c) ../sdbc/sdbc_ioctl.c
13742N/A
13742N/A$(SUBDIRS): FRC
13742N/A @cd $@; pwd; $(MAKE) $(TARGET)
13742N/A
13742N/A$(ROOTLIBLINKS): $(ROOTLIB) $(ROOTPROG)
13742N/A -$(RM) $(ROOTLIBLINKS);
13742N/A $(LN) $(ROOTBIN)/sndrd $(ROOTLIB)/sndrd;
13742N/A $(LN) $(ROOTBIN)/sndrsyncd $(ROOTLIB)/sndrsyncd
13742N/A
13742N/A$(ROOTUSRSBINLINKS): $(ROOTUSRSBIN) $(ROOTPROG)
13742N/A -$(RM) $(ROOTUSRSBINLINKS);
13742N/A $(LN) $(ROOTBIN)/sndradm $(ROOTUSRSBIN)/sndradm;
13742N/A $(LN) $(ROOTBIN)/sndrboot $(ROOTUSRSBIN)/sndrboot
13742N/A
FRC:
include ../../Makefile.targ