xref: /titanic_41/usr/src/cmd/isns/isnsd/Makefile (revision 0b42f15ac52b077791d4ba079e8c163c592c3fda)
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)
54494f7e12SKeith M WesolowskiCPPFLAGS 	+= -I./ -I$(ADJUNCT_PROTO)/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
617014882cSRichard LoweCERRWARN += -_gcc=-Wno-char-subscripts
627014882cSRichard LoweCERRWARN += -_gcc=-Wno-ignored-qualifiers
637014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
647014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration
657014882cSRichard Lowe
66*b6805bf7SGordon RossCLOBBERFILES += $(DTRACE_HEADER)
67*b6805bf7SGordon Ross
68fcf3ce44SJohn Forteobj.o := CERRWARN += -erroff=E_CONST_OBJ_SHOULD_HAVE_INITIZR
69fcf3ce44SJohn Forteobj.o := CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
70fcf3ce44SJohn Forte
718afbae07SRod EvansLDLIBS		+= -lsecdb -lsocket -lnsl -lscf -lxml2
72fcf3ce44SJohn Forte
73fcf3ce44SJohn Forte.KEEP_STATE:
74fcf3ce44SJohn Forte
75fcf3ce44SJohn Forteall:	$(PROG)
76fcf3ce44SJohn Forte
77fcf3ce44SJohn Forte$(PROG): $(OBJS)
783f1da666Swl202157@icefox	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
79fcf3ce44SJohn Forte	$(POST_PROCESS)
80fcf3ce44SJohn Forte
81fcf3ce44SJohn Forte%.h: %.d
820a49f0acSAdam H. Leventhal	$(DTRACE) -h -s $< -o $@
83fcf3ce44SJohn Forte
84fcf3ce44SJohn Forte%.o:	%.c $(DTRACE_HEADER)
85fcf3ce44SJohn Forte	$(COMPILE.c) $<
86fcf3ce44SJohn Forte	$(POST_PROCESS_O)
87fcf3ce44SJohn Forte
88fcf3ce44SJohn Forte%.o:	%.d $(COBJS)
890a49f0acSAdam H. Leventhal	$(COMPILE.d) -s $< $(COBJS)
90fcf3ce44SJohn Forte	$(POST_PROCESS_O)
91fcf3ce44SJohn Forte
92fcf3ce44SJohn Forteclean:
93fcf3ce44SJohn Forte	$(RM) $(OBJS)
94fcf3ce44SJohn Forte
95fcf3ce44SJohn Fortelint:	lint_SRCS
96fcf3ce44SJohn Forte
97fcf3ce44SJohn Forte$(POFILE): $(POFILES)
98fcf3ce44SJohn Forte	$(RM) $@
99fcf3ce44SJohn Forte	$(CAT) $(POFILES) > $@
100fcf3ce44SJohn Forte
101fcf3ce44SJohn Fortecheck:	$(CHKMANIFEST)
102fcf3ce44SJohn Forte
103fcf3ce44SJohn Forteinclude ../../Makefile.targ
104fcf3ce44SJohn Forte
105fcf3ce44SJohn Forteinstall: all .WAIT $(ROOTUSRSBINPROG) $(ROOTMANIFEST)
106