17836SJohn.Forte@Sun.COM# CDDL HEADER START 27836SJohn.Forte@Sun.COM# 37836SJohn.Forte@Sun.COM# The contents of this file are subject to the terms of the 47836SJohn.Forte@Sun.COM# Common Development and Distribution License (the "License"). 57836SJohn.Forte@Sun.COM# You may not use this file except in compliance with the License. 67836SJohn.Forte@Sun.COM# 77836SJohn.Forte@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 87836SJohn.Forte@Sun.COM# or http://www.opensolaris.org/os/licensing. 97836SJohn.Forte@Sun.COM# See the License for the specific language governing permissions 107836SJohn.Forte@Sun.COM# and limitations under the License. 117836SJohn.Forte@Sun.COM# 127836SJohn.Forte@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each 137836SJohn.Forte@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 147836SJohn.Forte@Sun.COM# If applicable, add the following below this CDDL HEADER, with the 157836SJohn.Forte@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying 167836SJohn.Forte@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner] 177836SJohn.Forte@Sun.COM# 187836SJohn.Forte@Sun.COM# CDDL HEADER END 197836SJohn.Forte@Sun.COM# 207836SJohn.Forte@Sun.COM# 21*8723SRamana.Srikanth@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 227836SJohn.Forte@Sun.COM# Use is subject to license terms. 237836SJohn.Forte@Sun.COM# 247836SJohn.Forte@Sun.COM# 257836SJohn.Forte@Sun.COM 267836SJohn.Forte@Sun.COMDYNPROG = sndrd sndradm sndrboot sndrsyncd 277836SJohn.Forte@Sun.COM 287836SJohn.Forte@Sun.COMinclude ../../Makefile.cmd 297836SJohn.Forte@Sun.COMinclude ../Makefile.com 307836SJohn.Forte@Sun.COM 317836SJohn.Forte@Sun.COMPROG = $(DYNPROG) 327836SJohn.Forte@Sun.COM 337836SJohn.Forte@Sun.COMSUBDIRS= etc 347836SJohn.Forte@Sun.COM 357836SJohn.Forte@Sun.COMsndradm := POBJS = sndradm.o rdc_ioctl.o sndrsubr.o 367836SJohn.Forte@Sun.COMsndrboot := POBJS = sndrboot.o rdc_ioctl.o sndrsubr.o 377836SJohn.Forte@Sun.COMsndrd := POBJS = sndrd.o 387836SJohn.Forte@Sun.COMsndrsyncd := POBJS = sndrsyncd.o rdc_ioctl.o sndrsubr.o 397836SJohn.Forte@Sun.COM 407836SJohn.Forte@Sun.COMOBJS= \ 417836SJohn.Forte@Sun.COM sndrboot.o \ 427836SJohn.Forte@Sun.COM sndradm.o \ 437836SJohn.Forte@Sun.COM sndrd.o \ 447836SJohn.Forte@Sun.COM sndrsyncd.o \ 457836SJohn.Forte@Sun.COM rdc_ioctl.o \ 467836SJohn.Forte@Sun.COM sndrsubr.o 477836SJohn.Forte@Sun.COM 487836SJohn.Forte@Sun.COMXTRA_OBJS= \ 497836SJohn.Forte@Sun.COM sdbc_ioctl.o 507836SJohn.Forte@Sun.COM 517836SJohn.Forte@Sun.COMSRCS= $(OBJS:%.o=%.c) ../sdbc/sdbc_ioctl.c 527836SJohn.Forte@Sun.COM 537836SJohn.Forte@Sun.COMsndradm := LDLIBS += -lrdc -lunistat -ldscfg -lnsctl -lnsl 547836SJohn.Forte@Sun.COMsndrboot := LDLIBS += -lrdc -lunistat -ldscfg 557836SJohn.Forte@Sun.COMsndrd := LDLIBS += -lrdc -lnsl 567836SJohn.Forte@Sun.COMsndrsyncd := LDLIBS += -lrdc -ldscfg -lunistat 577836SJohn.Forte@Sun.COM 587836SJohn.Forte@Sun.COMCFLAGS += -v -D_RDC_ -D_SYSCALL32 597836SJohn.Forte@Sun.COMLINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user -D_RDC_ -D_SYSCALL32 607836SJohn.Forte@Sun.COMLINTFLAGS += -DDEBUG 617836SJohn.Forte@Sun.COMLINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY 627836SJohn.Forte@Sun.COMLINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY 637836SJohn.Forte@Sun.COMLINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT 647836SJohn.Forte@Sun.COMLINTFLAGS += -erroff=E_FUNC_SET_NOT_USED 657836SJohn.Forte@Sun.COMPOFILE = rdc_all.po 667836SJohn.Forte@Sun.COMPOFILES = sndradm.po sndrboot.po 67*8723SRamana.Srikanth@Sun.COMROOTLIBLINKS = $(ROOTLIB)/sndrd $(ROOTLIB)/sndrsyncd 68*8723SRamana.Srikanth@Sun.COMROOTUSRSBINLINKS = $(ROOTUSRSBIN)/sndradm $(ROOTUSRSBIN)/sndrboot 697836SJohn.Forte@Sun.COM 707836SJohn.Forte@Sun.COMall := TARGET= all 717836SJohn.Forte@Sun.COMinstall := TARGET= install 727836SJohn.Forte@Sun.COMclean := TARGET= clean 737836SJohn.Forte@Sun.COMclobber := TARGET= clobber 747836SJohn.Forte@Sun.COMlint := TARGET= lint 757836SJohn.Forte@Sun.COM 767836SJohn.Forte@Sun.COM.KEEP_STATE: 777836SJohn.Forte@Sun.COM 787836SJohn.Forte@Sun.COM.PARALLEL: $(OBJS) $(XTRA_OBJS) 797836SJohn.Forte@Sun.COM 807836SJohn.Forte@Sun.COMall: $(SUBDIRS) $(PROG) $(POFILES) 817836SJohn.Forte@Sun.COM 82*8723SRamana.Srikanth@Sun.COMinstall: $(SUBDIRS) all $(ROOTPROG) $(ROOTLIBLINKS) $(ROOTUSRSBINLINKS) 837836SJohn.Forte@Sun.COM 847836SJohn.Forte@Sun.COMlint: $(SUBDIRS) lint_SRCS 857836SJohn.Forte@Sun.COM 867836SJohn.Forte@Sun.COMclean: $(SUBDIRS) 877836SJohn.Forte@Sun.COM $(RM) *.o $(POFILES) 887836SJohn.Forte@Sun.COM 897836SJohn.Forte@Sun.COM$(PROG): $$(POBJS) 907836SJohn.Forte@Sun.COM $(LINK.c) $(POBJS) -o $@ $(LDLIBS) 917836SJohn.Forte@Sun.COM $(POST_PROCESS) 927836SJohn.Forte@Sun.COM 937836SJohn.Forte@Sun.COM$(POFILE): $(POFILES) 947836SJohn.Forte@Sun.COM $(RM) $@ 957836SJohn.Forte@Sun.COM $(CAT) $(POFILES) > $@ 967836SJohn.Forte@Sun.COM 977836SJohn.Forte@Sun.COMsdbc_ioctl.o: ../sdbc/sdbc_ioctl.c 987836SJohn.Forte@Sun.COM $(COMPILE.c) ../sdbc/sdbc_ioctl.c 997836SJohn.Forte@Sun.COM 1007836SJohn.Forte@Sun.COM$(SUBDIRS): FRC 1017836SJohn.Forte@Sun.COM @cd $@; pwd; $(MAKE) $(TARGET) 1027836SJohn.Forte@Sun.COM 103*8723SRamana.Srikanth@Sun.COM$(ROOTLIBLINKS): $(ROOTLIB) $(ROOTPROG) 104*8723SRamana.Srikanth@Sun.COM -$(RM) $(ROOTLIBLINKS); 105*8723SRamana.Srikanth@Sun.COM $(LN) $(ROOTBIN)/sndrd $(ROOTLIB)/sndrd; 106*8723SRamana.Srikanth@Sun.COM $(LN) $(ROOTBIN)/sndrsyncd $(ROOTLIB)/sndrsyncd 107*8723SRamana.Srikanth@Sun.COM 108*8723SRamana.Srikanth@Sun.COM$(ROOTUSRSBINLINKS): $(ROOTUSRSBIN) $(ROOTPROG) 109*8723SRamana.Srikanth@Sun.COM -$(RM) $(ROOTUSRSBINLINKS); 110*8723SRamana.Srikanth@Sun.COM $(LN) $(ROOTBIN)/sndradm $(ROOTUSRSBIN)/sndradm; 111*8723SRamana.Srikanth@Sun.COM $(LN) $(ROOTBIN)/sndrboot $(ROOTUSRSBIN)/sndrboot 112*8723SRamana.Srikanth@Sun.COM 1137836SJohn.Forte@Sun.COMFRC: 1147836SJohn.Forte@Sun.COM 1157836SJohn.Forte@Sun.COMinclude ../../Makefile.targ 116