dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / isns / isnsd / Makefile
blob517c2fe78e6e22a39060732adfab8b4ced4035bc
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
27 # Copyright (c) 2012 by Delphix. All rights reserved.
28 # Copyright 2017 Joyent, Inc.
31 PROG = isns
33 DSRC = isns_provider.d
34 DTRACE_HEADER = $(DSRC:%.d=%.h)
36 COBJS = main.o qry.o admintf.o dsapi.o log.o sched.o dseng.o scn.o cache.o
37 COBJS += dump.o msgq.o server.o config.o esi.o obj.o utils.o dd.o func.o
38 COBJS += pdu.o door.o htable.o
39 OBJS = $(COBJS) $(DSRC:%.d=%.o)
40 SRCS = $(COBJS:%.o=%.c)
41 POFILE= isns.po
42 POFILES = $(COBJS:%.o=%.po)
44 include ../../Makefile.cmd
46 DATA_STORE = xml
47 XML_DIR = xml_def
48 ISNS_SVC = $(XML_DIR)/isns_server.xml
50 MANIFEST = isns_server.xml
51 ROOTMANIFESTDIR = $(ROOTSVCNETWORK)
52 $(ROOTSVCNETWORK)/isns_server.xml := FILEMODE = 0444
54 CPPFLAGS += -I./ -I$(ADJUNCT_PROTO)/usr/include/libxml2
55 CPPFLAGS += -DTARGET_DATA_STORE=$(DATA_STORE)
56 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
58 CERRWARN += -Wno-char-subscripts
59 CERRWARN += -Wno-ignored-qualifiers
60 CERRWARN += -Wno-uninitialized
61 CERRWARN += -Wno-implicit-function-declaration
63 CLOBBERFILES += $(DTRACE_HEADER)
65 LDLIBS += -lsecdb -lscf -lxml2
67 .KEEP_STATE:
69 all: $(PROG)
71 $(PROG): $(OBJS)
72 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
73 $(POST_PROCESS)
75 %.h: %.d
76 $(DTRACE) -h -s $< -o $@
78 %.o: %.c $(DTRACE_HEADER)
79 $(COMPILE.c) $<
80 $(POST_PROCESS_O)
82 %.o: %.d $(COBJS)
83 $(COMPILE.d) -s $< $(COBJS)
84 $(POST_PROCESS_O)
86 clean:
87 $(RM) $(OBJS)
90 $(POFILES): $(DTRACE_HEADER)
92 $(POFILE): $(POFILES)
93 $(RM) $@
94 $(CAT) $(POFILES) > $@
96 check: $(CHKMANIFEST)
98 include ../../Makefile.targ
100 install: all .WAIT $(ROOTUSRSBINPROG) $(ROOTMANIFEST)