xref: /titanic_41/usr/src/cmd/isns/isnsd/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1fcf3ce44SJohn Forte#
2fcf3ce44SJohn Forte# CDDL HEADER START
3fcf3ce44SJohn Forte#
4fcf3ce44SJohn Forte# The contents of this file are subject to the terms of the
5fcf3ce44SJohn Forte# Common Development and Distribution License (the "License").
6fcf3ce44SJohn Forte# You may not use this file except in compliance with the License.
7fcf3ce44SJohn Forte#
8fcf3ce44SJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9fcf3ce44SJohn Forte# or http://www.opensolaris.org/os/licensing.
10fcf3ce44SJohn Forte# See the License for the specific language governing permissions
11fcf3ce44SJohn Forte# and limitations under the License.
12fcf3ce44SJohn Forte#
13fcf3ce44SJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
14fcf3ce44SJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15fcf3ce44SJohn Forte# If applicable, add the following below this CDDL HEADER, with the
16fcf3ce44SJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
17fcf3ce44SJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
18fcf3ce44SJohn Forte#
19fcf3ce44SJohn Forte# CDDL HEADER END
20fcf3ce44SJohn Forte#
21fcf3ce44SJohn Forte#
223f1da666Swl202157@icefox# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23fcf3ce44SJohn Forte# Use is subject to license terms.
24fcf3ce44SJohn Forte#
25fcf3ce44SJohn Forte
260a49f0acSAdam H. Leventhal#
270a49f0acSAdam H. Leventhal# Copyright (c) 2012 by Delphix. All rights reserved.
280a49f0acSAdam H. Leventhal#
290a49f0acSAdam H. Leventhal
30fcf3ce44SJohn FortePROG = isns
31fcf3ce44SJohn Forte
32fcf3ce44SJohn ForteDSRC = isns_provider.d
33fcf3ce44SJohn ForteDTRACE_HEADER = $(DSRC:%.d=%.h)
34fcf3ce44SJohn Forte
35fcf3ce44SJohn ForteCOBJS	= main.o qry.o admintf.o dsapi.o log.o sched.o dseng.o scn.o cache.o
36fcf3ce44SJohn ForteCOBJS	+= dump.o msgq.o server.o config.o esi.o obj.o utils.o dd.o func.o
37fcf3ce44SJohn ForteCOBJS	+= pdu.o door.o htable.o
38fcf3ce44SJohn ForteOBJS	= $(COBJS) $(DSRC:%.d=%.o)
39fcf3ce44SJohn ForteSRCS	= $(COBJS:%.o=%.c)
40fcf3ce44SJohn FortePOFILE= isns.po
41fcf3ce44SJohn FortePOFILES	= $(COBJS:%.o=%.po)
42fcf3ce44SJohn Forte
43fcf3ce44SJohn Forteinclude ../../Makefile.cmd
44fcf3ce44SJohn Forte
45fcf3ce44SJohn ForteDATA_STORE	= xml
46fcf3ce44SJohn ForteXML_DIR		= xml_def
47fcf3ce44SJohn ForteISNS_SVC	= $(XML_DIR)/isns_server.xml
48fcf3ce44SJohn Forte
49fcf3ce44SJohn ForteMANIFEST	= isns_server.xml
50fcf3ce44SJohn ForteROOTMANIFESTDIR	= $(ROOTSVCNETWORK)
51fcf3ce44SJohn Forte$(ROOTSVCNETWORK)/isns_server.xml	:= FILEMODE = 0444
52fcf3ce44SJohn Forte
53fcf3ce44SJohn ForteCFLAGS 		+=	$(CCVERBOSE)
54fcf3ce44SJohn ForteCPPFLAGS 	+= -I./ -I/usr/include/libxml2
55fcf3ce44SJohn ForteCPPFLAGS	+= -DTARGET_DATA_STORE=$(DATA_STORE)
56fcf3ce44SJohn ForteCPPFLAGS	+= -D_POSIX_PTHREAD_SEMANTICS
57fcf3ce44SJohn ForteLINTFLAGS += -xerroff=E_BAD_PTR_CAST_ALIGN
58fcf3ce44SJohn ForteLINTFLAGS += -xerroff=E_NAME_USED_NOT_DEF2
59fcf3ce44SJohn ForteLINTFLAGS += -xerroff=E_CASE_FALLTHRU
60fcf3ce44SJohn Forte
61*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-char-subscripts
62*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-ignored-qualifiers
63*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
64*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration
65*7014882cSRichard Lowe
66fcf3ce44SJohn Forteobj.o := CERRWARN += -erroff=E_CONST_OBJ_SHOULD_HAVE_INITIZR
67fcf3ce44SJohn Forteobj.o := CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
68fcf3ce44SJohn Forte
698afbae07SRod EvansLDLIBS		+= -lsecdb -lsocket -lnsl -lscf -lxml2
70fcf3ce44SJohn Forte
71fcf3ce44SJohn Forte.KEEP_STATE:
72fcf3ce44SJohn Forte
73fcf3ce44SJohn Forteall:	$(PROG)
74fcf3ce44SJohn Forte
75fcf3ce44SJohn Forte$(PROG): $(OBJS)
763f1da666Swl202157@icefox	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
77fcf3ce44SJohn Forte	$(POST_PROCESS)
78fcf3ce44SJohn Forte
79fcf3ce44SJohn Forte%.h: %.d
800a49f0acSAdam H. Leventhal	$(DTRACE) -h -s $< -o $@
81fcf3ce44SJohn Forte
82fcf3ce44SJohn Forte%.o:	%.c $(DTRACE_HEADER)
83fcf3ce44SJohn Forte	$(COMPILE.c) $<
84fcf3ce44SJohn Forte	$(POST_PROCESS_O)
85fcf3ce44SJohn Forte
86fcf3ce44SJohn Forte%.o:	%.d $(COBJS)
870a49f0acSAdam H. Leventhal	$(COMPILE.d) -s $< $(COBJS)
88fcf3ce44SJohn Forte	$(POST_PROCESS_O)
89fcf3ce44SJohn Forte
90fcf3ce44SJohn Forteclean:
91fcf3ce44SJohn Forte	$(RM) $(OBJS)
92fcf3ce44SJohn Forte
93fcf3ce44SJohn Fortelint:	lint_SRCS
94fcf3ce44SJohn Forte
95fcf3ce44SJohn Forte$(POFILE): $(POFILES)
96fcf3ce44SJohn Forte	$(RM) $@
97fcf3ce44SJohn Forte	$(CAT) $(POFILES) > $@
98fcf3ce44SJohn Forte
99fcf3ce44SJohn Fortecheck:	$(CHKMANIFEST)
100fcf3ce44SJohn Forte
101fcf3ce44SJohn Forteinclude ../../Makefile.targ
102fcf3ce44SJohn Forte
103fcf3ce44SJohn Forteinstall: all .WAIT $(ROOTUSRSBINPROG) $(ROOTMANIFEST)
104