fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
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#
3f1da666124ac25caadfacd3f2a361d4a41268a8wl# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
0a49f0acd6427f9d299d5b4fe3792feaa7d20e34Adam H. Leventhal#
0a49f0acd6427f9d299d5b4fe3792feaa7d20e34Adam H. Leventhal# Copyright (c) 2012 by Delphix. All rights reserved.
0a49f0acd6427f9d299d5b4fe3792feaa7d20e34Adam H. Leventhal#
0a49f0acd6427f9d299d5b4fe3792feaa7d20e34Adam H. Leventhal
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePROG = isns
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDSRC = isns_provider.d
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDTRACE_HEADER = $(DSRC:%.d=%.h)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOBJS = main.o qry.o admintf.o dsapi.o log.o sched.o dseng.o scn.o cache.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOBJS += dump.o msgq.o server.o config.o esi.o obj.o utils.o dd.o func.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOBJS += pdu.o door.o htable.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJS = $(COBJS) $(DSRC:%.d=%.o)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSRCS = $(COBJS:%.o=%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePOFILE= isns.po
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePOFILES = $(COBJS:%.o=%.po)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../Makefile.cmd
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDATA_STORE = xml
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteXML_DIR = xml_def
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteISNS_SVC = $(XML_DIR)/isns_server.xml
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMANIFEST = isns_server.xml
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteROOTMANIFESTDIR = $(ROOTSVCNETWORK)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(ROOTSVCNETWORK)/isns_server.xml := FILEMODE = 0444
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCFLAGS += $(CCVERBOSE)
494f7e12a62129ef191a15f9dfde6b7abe3bf510Keith M WesolowskiCPPFLAGS += -I./ -I$(ADJUNCT_PROTO)/usr/include/libxml2
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCPPFLAGS += -DTARGET_DATA_STORE=$(DATA_STORE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -xerroff=E_BAD_PTR_CAST_ALIGN
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -xerroff=E_NAME_USED_NOT_DEF2
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -xerroff=E_CASE_FALLTHRU
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-char-subscripts
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-ignored-qualifiers
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon RossCLOBBERFILES += $(DTRACE_HEADER)
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteobj.o := CERRWARN += -erroff=E_CONST_OBJ_SHOULD_HAVE_INITIZR
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteobj.o := CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
8afbae077394bf15b64633f006ff3cbba11fcd87Rod EvansLDLIBS += -lsecdb -lsocket -lnsl -lscf -lxml2
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte.KEEP_STATE:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteall: $(PROG)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(PROG): $(OBJS)
3f1da666124ac25caadfacd3f2a361d4a41268a8wl $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte%.h: %.d
0a49f0acd6427f9d299d5b4fe3792feaa7d20e34Adam H. Leventhal $(DTRACE) -h -s $< -o $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte%.o: %.c $(DTRACE_HEADER)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte%.o: %.d $(COBJS)
0a49f0acd6427f9d299d5b4fe3792feaa7d20e34Adam H. Leventhal $(COMPILE.d) -s $< $(COBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclean:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $(OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelint: lint_SRCS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(POFILE): $(POFILES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(CAT) $(POFILES) > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortecheck: $(CHKMANIFEST)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../Makefile.targ
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinstall: all .WAIT $(ROOTUSRSBINPROG) $(ROOTMANIFEST)