Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/Makefile
+++ new/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/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 +# Copyright (c) 2018, Joyent, Inc.
25 26
26 27 #
27 28 # Makefile for Java Print Manager server
28 29 #
29 30
30 31 LIBRARY = libpmgr.a
31 32 VERS = .1
32 33
33 34 JNIHDR_FILES = com_sun_admin_pm_server_DoPrinterNS.h
34 35
35 36 OBJECTS = DoPrinterNS.o NS.o
36 37
37 38 CLASSFILES = Printer.class \
38 39 Host.class \
39 40 SysCommand.class \
40 41 NameService.class \
41 42 PrinterUtil.class \
42 43 DoPrinterView.class \
43 44 DoPrinterAdd.class \
44 45 DoPrinterDelete.class \
45 46 DoPrinterUtil.class \
46 47 DoPrinterMod.class \
47 48 DoPrinterNS.class \
48 49 Valid.class \
49 50 Test.class \
50 51 Debug.class \
51 52 PrinterDebug.class \
52 53 pmException.class \
53 54 pmAuthException.class \
54 55 pmAuthRhostException.class \
55 56 pmCmdFailedException.class \
56 57 pmInternalErrorException.class \
57 58 pmHostNotPingableException.class \
58 59 pmNSNotConfiguredException.class \
59 60 pmMisc.class
60 61
61 62 JNICLASSFILES = DoPrinterNS.class
62 63
63 64 include $(SRC)/lib/Makefile.lib
64 65
65 66 SRCDIR = .
66 67
67 68 # There should be a mapfile here
68 69 MAPFILES =
69 70
70 71 CLASSPATH= $(SRC)/cmd/print/printmgr
71 72
72 73 JAVAFILES = $(CLASSFILES:.class=.java)
73 74
74 75 ROOTDIRS = $(ROOT)/usr/sadm/admin \
75 76 $(ROOT)/usr/sadm/admin/printmgr \
76 77 $(ROOT)/usr/sadm/admin/printmgr/lib
77 78
78 79 # override ROOTLIBDIR and ROOTLINKS
↓ open down ↓ |
44 lines elided |
↑ open up ↑ |
79 80 ROOTLIBDIR = $(ROOT)/usr/sadm/admin/printmgr/lib
80 81 ROOTLIBS= $(LIBS:%=$(ROOTLIBDIR)/%)
81 82
82 83
83 84 # Following variables define where to find header files
84 85 CPPFLAGS += -I$(JAVA_ROOT)/include -I$(JAVA_ROOT)/include/solaris -I.
85 86
86 87 CERRWARN += -_gcc=-Wno-unused-variable
87 88 CERRWARN += -_gcc=-Wno-uninitialized
88 89
90 +# not linted
91 +SMATCH=off
92 +
89 93 LDLIBS += -lprint -lnsl -lsocket -lc
90 94
91 95 CLEANFILES= *.class $(LINTLIB) $(LINTOUT)
92 96 CLOBBERFILES= $(JNIHDR_FILES) $(LIBLINKS)
93 97
94 98 all: $(CLASSFILES) $(JNIHDR_FILES) $(DYNLIB)
95 99
96 100 install: all $(ROOTDIRS) $(ROOTLINKS)
97 101
98 102 #
99 103 # Build jni header file
100 104 # Use $@ instead of the "unreliable" $*
101 105 #
102 106 $(JNIHDR_FILES): $(JNICLASSFILES)
103 107 $(JAVAH) -jni -classpath $(CLASSPATH) \
104 108 `echo $@ | sed 's/.h$$//' | tr _ .`
105 109
106 110 #
107 111 # Build standalone programs for testing
108 112 #
109 113 NS: NS.c
110 114 $(CC) NS.c -g $(ILDOFF) -o NS -DMAIN=1 $(ENVLDLIBS1) $(ENVLIBS2) \
111 115 -lprint -lnsl -lsocket
112 116
113 117 lint: $(JNIHDR_FILES) lintcheck
114 118
115 119 cstyle:
116 120 cstyle $(SRCS)
117 121
118 122 jstyle:
119 123 jstyle $(JAVAFILES)
120 124
121 125 _msg:
122 126
123 127 $(ROOTDIRS):
124 128 $(INS.dir)
125 129
126 130 include $(SRC)/lib/Makefile.targ
↓ open down ↓ |
28 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX