xref: /illumos-gate/usr/src/cmd/isns/isnsd/Makefile (revision e9344627fd9b13a2a1fe91a37a88c0edbc4e5191)
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.
285661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc.
29*e9344627SAndy Fiddaman# Copyright 2025 OmniOS Community Edition (OmniOSce) Association.
300a49f0acSAdam H. Leventhal#
310a49f0acSAdam H. Leventhal
32fcf3ce44SJohn FortePROG = isns
33fcf3ce44SJohn Forte
34fcf3ce44SJohn ForteDSRC = isns_provider.d
35fcf3ce44SJohn ForteDTRACE_HEADER = $(DSRC:%.d=%.h)
36fcf3ce44SJohn Forte
37fcf3ce44SJohn ForteCOBJS	= main.o qry.o admintf.o dsapi.o log.o sched.o dseng.o scn.o cache.o
38fcf3ce44SJohn ForteCOBJS	+= dump.o msgq.o server.o config.o esi.o obj.o utils.o dd.o func.o
39fcf3ce44SJohn ForteCOBJS	+= pdu.o door.o htable.o
40fcf3ce44SJohn ForteOBJS	= $(COBJS) $(DSRC:%.d=%.o)
41fcf3ce44SJohn FortePOFILE= isns.po
42fcf3ce44SJohn FortePOFILES	= $(COBJS:%.o=%.po)
43fcf3ce44SJohn Forte
44fcf3ce44SJohn Forteinclude ../../Makefile.cmd
45*e9344627SAndy Fiddamaninclude ../../Makefile.ctf
46*e9344627SAndy Fiddaman
47*e9344627SAndy FiddamanCTF_MODE = link
48fcf3ce44SJohn Forte
49fcf3ce44SJohn ForteDATA_STORE	= xml
50fcf3ce44SJohn ForteXML_DIR		= xml_def
51fcf3ce44SJohn ForteISNS_SVC	= $(XML_DIR)/isns_server.xml
52fcf3ce44SJohn Forte
53fcf3ce44SJohn ForteMANIFEST	= isns_server.xml
54fcf3ce44SJohn ForteROOTMANIFESTDIR	= $(ROOTSVCNETWORK)
55fcf3ce44SJohn Forte$(ROOTSVCNETWORK)/isns_server.xml	:= FILEMODE = 0444
56fcf3ce44SJohn Forte
57fcf3ce44SJohn ForteCFLAGS		+=	$(CCVERBOSE)
58494f7e12SKeith M WesolowskiCPPFLAGS	+= -I./ -I$(ADJUNCT_PROTO)/usr/include/libxml2
59fcf3ce44SJohn ForteCPPFLAGS	+= -DTARGET_DATA_STORE=$(DATA_STORE)
60fcf3ce44SJohn ForteCPPFLAGS	+= -D_POSIX_PTHREAD_SEMANTICS
61fcf3ce44SJohn Forte
627014882cSRichard LoweCERRWARN += -_gcc=-Wno-char-subscripts
637014882cSRichard LoweCERRWARN += -_gcc=-Wno-ignored-qualifiers
64d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT)
657014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration
667014882cSRichard Lowe
675661bb76SJohn Levon# not linted
685661bb76SJohn LevonSMATCH=off
695661bb76SJohn Levon
70b6805bf7SGordon RossCLOBBERFILES += $(DTRACE_HEADER)
71b6805bf7SGordon Ross
728afbae07SRod EvansLDLIBS		+= -lsecdb -lsocket -lnsl -lscf -lxml2
735801b0f0SToomas SoomeNATIVE_LIBS	+= libxml2.so
74fcf3ce44SJohn Forte
75fcf3ce44SJohn Forte.KEEP_STATE:
76fcf3ce44SJohn Forte
77fcf3ce44SJohn Forteall:	$(PROG)
78fcf3ce44SJohn Forte
79fcf3ce44SJohn Forte$(PROG): $(OBJS)
803f1da666Swl202157@icefox	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
81fcf3ce44SJohn Forte	$(POST_PROCESS)
82fcf3ce44SJohn Forte
83fcf3ce44SJohn Forte%.h: %.d
840a49f0acSAdam H. Leventhal	$(DTRACE) -h -s $< -o $@
85fcf3ce44SJohn Forte
86fcf3ce44SJohn Forte%.o:	%.c $(DTRACE_HEADER)
87fcf3ce44SJohn Forte	$(COMPILE.c) $<
88fcf3ce44SJohn Forte	$(POST_PROCESS_O)
89fcf3ce44SJohn Forte
90fcf3ce44SJohn Forte%.o:	%.d $(COBJS)
910a49f0acSAdam H. Leventhal	$(COMPILE.d) -s $< $(COBJS)
92fcf3ce44SJohn Forte	$(POST_PROCESS_O)
93fcf3ce44SJohn Forte
94fcf3ce44SJohn Forteclean:
95fcf3ce44SJohn Forte	$(RM) $(OBJS)
96fcf3ce44SJohn Forte
979e01f109SJason King$(POFILES): $(DTRACE_HEADER)
989e01f109SJason King
99fcf3ce44SJohn Forte$(POFILE): $(POFILES)
100fcf3ce44SJohn Forte	$(RM) $@
101fcf3ce44SJohn Forte	$(CAT) $(POFILES) > $@
102fcf3ce44SJohn Forte
103fcf3ce44SJohn Fortecheck:	$(CHKMANIFEST)
104fcf3ce44SJohn Forte
105fcf3ce44SJohn Forteinclude ../../Makefile.targ
106fcf3ce44SJohn Forte
107fcf3ce44SJohn Forteinstall: all .WAIT $(ROOTUSRSBINPROG) $(ROOTMANIFEST)
108