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