Makefile revision 494f7e12a62129ef191a15f9dfde6b7abe3bf510
1268N/A#
1268N/A# CDDL HEADER START
1268N/A#
1268N/A# The contents of this file are subject to the terms of the
1268N/A# Common Development and Distribution License (the "License").
1268N/A# You may not use this file except in compliance with the License.
1268N/A#
1268N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1268N/A# or http://www.opensolaris.org/os/licensing.
1268N/A# See the License for the specific language governing permissions
1268N/A# and limitations under the License.
1268N/A#
1268N/A# When distributing Covered Code, include this CDDL HEADER in each
1268N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1268N/A# If applicable, add the following below this CDDL HEADER, with the
1268N/A# fields enclosed by brackets "[]" replaced with your own identifying
1268N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1268N/A#
1268N/A# CDDL HEADER END
1268N/A#
1268N/A#
1268N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1268N/A# Use is subject to license terms.
1268N/A#
1268N/A
1268N/A#
1268N/A# Copyright (c) 2012 by Delphix. All rights reserved.
1268N/A#
1268N/A
1268N/APROG = isns
1268N/A
1268N/ADSRC = isns_provider.d
1268N/ADTRACE_HEADER = $(DSRC:%.d=%.h)
1268N/A
1268N/ACOBJS = main.o qry.o admintf.o dsapi.o log.o sched.o dseng.o scn.o cache.o
1268N/ACOBJS += dump.o msgq.o server.o config.o esi.o obj.o utils.o dd.o func.o
1268N/ACOBJS += pdu.o door.o htable.o
1268N/AOBJS = $(COBJS) $(DSRC:%.d=%.o)
1268N/ASRCS = $(COBJS:%.o=%.c)
1268N/APOFILE= isns.po
1268N/APOFILES = $(COBJS:%.o=%.po)
1268N/A
1268N/Ainclude ../../Makefile.cmd
1268N/A
1268N/ADATA_STORE = xml
1268N/AXML_DIR = xml_def
1268N/AISNS_SVC = $(XML_DIR)/isns_server.xml
1268N/A
1268N/AMANIFEST = isns_server.xml
1268N/AROOTMANIFESTDIR = $(ROOTSVCNETWORK)
1268N/A$(ROOTSVCNETWORK)/isns_server.xml := FILEMODE = 0444
1268N/A
1268N/ACFLAGS += $(CCVERBOSE)
1268N/ACPPFLAGS += -I./ -I$(ADJUNCT_PROTO)/usr/include/libxml2
1268N/ACPPFLAGS += -DTARGET_DATA_STORE=$(DATA_STORE)
1268N/ACPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
1268N/ALINTFLAGS += -xerroff=E_BAD_PTR_CAST_ALIGN
1268N/ALINTFLAGS += -xerroff=E_NAME_USED_NOT_DEF2
LINTFLAGS += -xerroff=E_CASE_FALLTHRU
CERRWARN += -_gcc=-Wno-char-subscripts
CERRWARN += -_gcc=-Wno-ignored-qualifiers
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-implicit-function-declaration
obj.o := CERRWARN += -erroff=E_CONST_OBJ_SHOULD_HAVE_INITIZR
obj.o := CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
LDLIBS += -lsecdb -lsocket -lnsl -lscf -lxml2
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
%.h: %.d
$(DTRACE) -h -s $< -o $@
%.o: %.c $(DTRACE_HEADER)
$(COMPILE.c) $<
$(POST_PROCESS_O)
%.o: %.d $(COBJS)
$(COMPILE.d) -s $< $(COBJS)
$(POST_PROCESS_O)
clean:
$(RM) $(OBJS)
lint: lint_SRCS
$(POFILE): $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
check: $(CHKMANIFEST)
include ../../Makefile.targ
install: all .WAIT $(ROOTUSRSBINPROG) $(ROOTMANIFEST)