Print this page
don't pass in lint libraries which no longer exist
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 #
29 29
30 30 PROG = isns
31 31
32 32 DSRC = isns_provider.d
33 33 DTRACE_HEADER = $(DSRC:%.d=%.h)
34 34
35 35 COBJS = main.o qry.o admintf.o dsapi.o log.o sched.o dseng.o scn.o cache.o
36 36 COBJS += dump.o msgq.o server.o config.o esi.o obj.o utils.o dd.o func.o
37 37 COBJS += pdu.o door.o htable.o
38 38 OBJS = $(COBJS) $(DSRC:%.d=%.o)
39 39 SRCS = $(COBJS:%.o=%.c)
40 40 POFILE= isns.po
41 41 POFILES = $(COBJS:%.o=%.po)
42 42
43 43 include ../../Makefile.cmd
44 44
45 45 DATA_STORE = xml
46 46 XML_DIR = xml_def
47 47 ISNS_SVC = $(XML_DIR)/isns_server.xml
48 48
49 49 MANIFEST = isns_server.xml
50 50 ROOTMANIFESTDIR = $(ROOTSVCNETWORK)
51 51 $(ROOTSVCNETWORK)/isns_server.xml := FILEMODE = 0444
52 52
53 53 CFLAGS += $(CCVERBOSE)
54 54 CPPFLAGS += -I./ -I$(ADJUNCT_PROTO)/usr/include/libxml2
55 55 CPPFLAGS += -DTARGET_DATA_STORE=$(DATA_STORE)
56 56 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
57 57 LINTFLAGS += -xerroff=E_BAD_PTR_CAST_ALIGN
58 58 LINTFLAGS += -xerroff=E_NAME_USED_NOT_DEF2
59 59 LINTFLAGS += -xerroff=E_CASE_FALLTHRU
60 60
↓ open down ↓ |
60 lines elided |
↑ open up ↑ |
61 61 CERRWARN += -_gcc=-Wno-char-subscripts
62 62 CERRWARN += -_gcc=-Wno-ignored-qualifiers
63 63 CERRWARN += -_gcc=-Wno-uninitialized
64 64 CERRWARN += -_gcc=-Wno-implicit-function-declaration
65 65
66 66 CLOBBERFILES += $(DTRACE_HEADER)
67 67
68 68 obj.o := CERRWARN += -erroff=E_CONST_OBJ_SHOULD_HAVE_INITIZR
69 69 obj.o := CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
70 70
71 -LDLIBS += -lsecdb -lsocket -lnsl -lscf -lxml2
71 +LDLIBS += -lsecdb -lsocket -lnsl -lscf
72 +
73 +# libxml2 has no lint library, so we can only include this while building
74 +$(PROG) := LDLIBS += -lxml2
72 75
73 76 .KEEP_STATE:
74 77
75 78 all: $(PROG)
76 79
77 80 $(PROG): $(OBJS)
78 81 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
79 82 $(POST_PROCESS)
80 83
81 84 %.h: %.d
82 85 $(DTRACE) -h -s $< -o $@
83 86
84 87 %.o: %.c $(DTRACE_HEADER)
85 88 $(COMPILE.c) $<
86 89 $(POST_PROCESS_O)
87 90
88 91 %.o: %.d $(COBJS)
89 92 $(COMPILE.d) -s $< $(COBJS)
90 93 $(POST_PROCESS_O)
91 94
92 95 clean:
93 96 $(RM) $(OBJS)
94 97
95 98 lint: lint_SRCS
96 99
97 100 $(POFILE): $(POFILES)
98 101 $(RM) $@
99 102 $(CAT) $(POFILES) > $@
100 103
101 104 check: $(CHKMANIFEST)
102 105
103 106 include ../../Makefile.targ
104 107
105 108 install: all .WAIT $(ROOTUSRSBINPROG) $(ROOTMANIFEST)
↓ open down ↓ |
24 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX