Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/isns/isnsd/Makefile
+++ new/usr/src/cmd/isns/isnsd/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25
26 26 #
27 27 # Copyright (c) 2012 by Delphix. All rights reserved.
28 28 # Copyright (c) 2018, Joyent, Inc.
29 29 #
30 30
31 31 PROG = isns
32 32
33 33 DSRC = isns_provider.d
34 34 DTRACE_HEADER = $(DSRC:%.d=%.h)
35 35
36 36 COBJS = main.o qry.o admintf.o dsapi.o log.o sched.o dseng.o scn.o cache.o
37 37 COBJS += dump.o msgq.o server.o config.o esi.o obj.o utils.o dd.o func.o
38 38 COBJS += pdu.o door.o htable.o
39 39 OBJS = $(COBJS) $(DSRC:%.d=%.o)
40 40 SRCS = $(COBJS:%.o=%.c)
41 41 POFILE= isns.po
42 42 POFILES = $(COBJS:%.o=%.po)
43 43
44 44 include ../../Makefile.cmd
45 45
46 46 DATA_STORE = xml
47 47 XML_DIR = xml_def
48 48 ISNS_SVC = $(XML_DIR)/isns_server.xml
49 49
50 50 MANIFEST = isns_server.xml
51 51 ROOTMANIFESTDIR = $(ROOTSVCNETWORK)
52 52 $(ROOTSVCNETWORK)/isns_server.xml := FILEMODE = 0444
53 53
↓ open down ↓ |
53 lines elided |
↑ open up ↑ |
54 54 CFLAGS += $(CCVERBOSE)
55 55 CPPFLAGS += -I./ -I$(ADJUNCT_PROTO)/usr/include/libxml2
56 56 CPPFLAGS += -DTARGET_DATA_STORE=$(DATA_STORE)
57 57 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
58 58 LINTFLAGS += -xerroff=E_BAD_PTR_CAST_ALIGN
59 59 LINTFLAGS += -xerroff=E_NAME_USED_NOT_DEF2
60 60 LINTFLAGS += -xerroff=E_CASE_FALLTHRU
61 61
62 62 CERRWARN += -_gcc=-Wno-char-subscripts
63 63 CERRWARN += -_gcc=-Wno-ignored-qualifiers
64 -CERRWARN += -_gcc=-Wno-uninitialized
64 +CERRWARN += $(CNOWARN_UNINIT)
65 65 CERRWARN += -_gcc=-Wno-implicit-function-declaration
66 66
67 67 # not linted
68 68 SMATCH=off
69 69
70 70 CLOBBERFILES += $(DTRACE_HEADER)
71 71
72 72 obj.o := CERRWARN += -erroff=E_CONST_OBJ_SHOULD_HAVE_INITIZR
73 73 obj.o := CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
74 74
75 75 LDLIBS += -lsecdb -lsocket -lnsl -lscf -lxml2
76 76
77 77 .KEEP_STATE:
78 78
79 79 all: $(PROG)
80 80
81 81 $(PROG): $(OBJS)
82 82 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
83 83 $(POST_PROCESS)
84 84
85 85 %.h: %.d
86 86 $(DTRACE) -h -s $< -o $@
87 87
88 88 %.o: %.c $(DTRACE_HEADER)
89 89 $(COMPILE.c) $<
90 90 $(POST_PROCESS_O)
91 91
92 92 %.o: %.d $(COBJS)
93 93 $(COMPILE.d) -s $< $(COBJS)
94 94 $(POST_PROCESS_O)
95 95
96 96 clean:
97 97 $(RM) $(OBJS)
98 98
99 99 lint: lint_SRCS
100 100
101 101 $(POFILES): $(DTRACE_HEADER)
102 102
103 103 $(POFILE): $(POFILES)
104 104 $(RM) $@
105 105 $(CAT) $(POFILES) > $@
106 106
107 107 check: $(CHKMANIFEST)
108 108
109 109 include ../../Makefile.targ
110 110
111 111 install: all .WAIT $(ROOTUSRSBINPROG) $(ROOTMANIFEST)
↓ open down ↓ |
37 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX