Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/pools/poold/Makefile
+++ new/usr/src/cmd/pools/poold/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.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
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 -# cmd/pools/poold/Makefile
25 +# Copyright (c) 2018, Joyent, Inc.
26 26
27 27 PROG = poold
28 28 OBJS = poold.o
29 29 SRCS = $(OBJS:%.o=%.c)
30 30
31 31 MANIFEST= poold.xml
32 32 SVCMETHOD= svc-poold
33 33
34 34 include $(SRC)/cmd/Makefile.cmd
35 35 $(BLD_JAVA_8)include $(SRC)/cmd/Makefile.cmd.64
36 36
37 37 JAVA_SUBDIRS = com/sun/solaris/service/exception \
38 38 com/sun/solaris/service/kstat \
39 39 com/sun/solaris/service/locality \
40 40 com/sun/solaris/service/logging \
41 41 com/sun/solaris/service/pools \
42 42 com/sun/solaris/service/timer \
43 43 com/sun/solaris/domain/pools
44 44
45 45 SUBDIRS = libjkstat \
46 46 libjlgrp \
47 47 libjpool \
48 48 libjsyslog
49 49
50 50 ROOTMANIFESTDIR= $(ROOTSVCSYSTEM)
51 51
52 52 all := TARGET = all
53 53 install := TARGET = install
54 54 clean := TARGET = clean
55 55 clobber := TARGET = clobber
56 56 lint := TARGET = lint
57 57 msg := TARGET = msg
58 58
59 59 $(ROOTMANIFEST):= FILEMODE= 444
60 60 JARFILE = JPool.jar
61 61
62 62 JAVA_LIB_PATH = $(JAVA_ROOT)/jre/lib/$(MACH)/client
63 63 LIBPOOL_PATH = $(ROOTLIB)
64 64 $(BLD_JAVA_8)JAVA_LIB_PATH = $(JAVA_ROOT)/jre/lib/$(MACH64)/server
65 65 $(BLD_JAVA_8)LIBPOOL_PATH = $(ROOTLIB64)
66 66
67 67 # JAVA_SUBDIRS and PACKAGEDOCS must be synchronized to ensure
68 68 # javadoc documentation is generated for all packages.
69 69
70 70 PACKAGEDOCS = com.sun.solaris.service.exception \
71 71 com.sun.solaris.service.kstat \
72 72 com.sun.solaris.service.locality \
73 73 com.sun.solaris.service.logging \
74 74 com.sun.solaris.service.pools \
75 75 com.sun.solaris.service.timer \
76 76 com.sun.solaris.domain.pools
77 77 DOCDIR = doc
78 78 ROOTUSRLIBDRP = $(ROOTLIB)/pool
79 79 INCS = -I../common \
↓ open down ↓ |
44 lines elided |
↑ open up ↑ |
80 80 -I$(JAVA_ROOT)/include \
81 81 -I$(JAVA_ROOT)/include/solaris
82 82 LDLIBS += -lpool -L$(JAVA_LIB_PATH) -ljvm
83 83 # runpath should point to runtime JAVA_HOME
84 84 LDFLAGS += -R$(JAVA_LIB_PATH)
85 85
86 86 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
87 87 $(BLD_JAVA_8)LINTFLAGS64 += -erroff=E_NAME_USED_NOT_DEF2
88 88 LINTLIBS += -L$(LIBPOOL_PATH) -lpool
89 89
90 +# not linted
91 +SMATCH=off
92 +
90 93 CPPFLAGS += $(INCS)
91 94 ROOTCMDDIR = $(ROOT)/usr/lib/pool
92 95
93 96 CLOBBERFILES += $(JARFILE)
94 97
95 98 #
96 99 # Definitions for message catalogue
97 100 #
98 101 POFILES = $(OBJS:.o=.po)
99 102
100 103 #
101 104 # Definitions for Java installs
102 105 #
103 106
104 107 JFILES = poold.properties $(JARFILE)
105 108 ROOTJAVA = $(JFILES:%=$(ROOTUSRLIBDRP)/%)
106 109
107 110 $(ROOTJAVA) := FILEMODE = 444
108 111
109 112 all: $(PROG) $(JAVA_SUBDIRS) $(JARFILE) \
110 113 .WAIT $(SUBDIRS)
111 114
112 115 clean : $(JAVA_SUBDIRS) $(SUBDIRS) clean_local
113 116 clean_local:
114 117 $(RM) $(OBJS)
115 118
116 119 clobber : $(JAVA_SUBDIRS) $(SUBDIRS) clobber_local
117 120 clobber_local: clean_local
118 121 $(RM) $(CLOBBERFILES)
119 122
120 123 lint: $(SUBDIRS)
121 124
122 125 msg: $(POFILES)
123 126
124 127 install: $(ROOTCMD) $(JAVA_SUBDIRS) $(JARFILE) \
125 128 .WAIT $(SUBDIRS) $(ROOTJAVA) $(ROOTMANIFEST) \
126 129 $(ROOTSVCMETHOD)
127 130
128 131 check: $(CHKMANIFEST)
129 132
130 133 $(JAVA_SUBDIRS): FRC
131 134 @cd $@; pwd; $(MAKE) $(TARGET)
132 135 if [ "$(TARGET)" != "clean" ] && [ "$(TARGET)" != "clobber" ]; \
133 136 then \
134 137 if [ ! -f $(JARFILE) ]; \
135 138 then \
136 139 $(JAR) -cf $(JARFILE) $@/*class; \
137 140 else \
138 141 $(JAR) -uf $(JARFILE) $@/*class; \
139 142 fi \
140 143 fi
141 144
142 145 $(SUBDIRS): FRC
143 146 @cd $@; pwd; $(MAKE) $(TARGET)
144 147
145 148 doc: all
146 149 $(JAVADOC) -private -classpath $(JARFILE): -sourcepath . \
147 150 -source 1.4 -d $(DOCDIR) $(PACKAGEDOCS)
148 151
149 152 $(PROG): $(OBJS)
150 153 $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
151 154 $(POST_PROCESS)
152 155
153 156 $(ROOTUSRLIBDRP)/%: %
154 157 $(INS.file)
155 158
156 159 FRC:
157 160
158 161 lint:
159 162 $(LINT.c) $(PROG).c $(LINTLIBS)
160 163
161 164 include $(SRC)/cmd/Makefile.targ
↓ open down ↓ |
62 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX