Print this page
4719 Common patchset for jdk1.7 support preparation
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/krb5/kadmin/gui/Makefile
+++ new/usr/src/cmd/krb5/kadmin/gui/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, Version 1.0 only
6 6 # (the "License"). You may not use this file except in compliance
7 7 # with the License.
8 8 #
9 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 # or http://www.opensolaris.org/os/licensing.
11 11 # See the License for the specific language governing permissions
12 12 # and limitations under the License.
13 13 #
14 14 # When distributing Covered Code, include this CDDL HEADER in each
15 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 # If applicable, add the following below this CDDL HEADER, with the
17 17 # fields enclosed by brackets "[]" replaced with your own identifying
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
20 20 # CDDL HEADER END
21 21 #
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
22 22 #
23 23 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26 # ident "%Z%%M% %I% %E% SMI"
27 27 #
28 28
29 29 include $(SRC)/Makefile.master
30 30 include $(SRC)/cmd/Makefile.cmd
31 31
32 -JAVAFLAGS= -nowarn -O
33 32 GUIDIR=$(SRC)/cmd/krb5/kadmin/gui
34 33
35 34 TOGETHER= KdcGui KdcGuiMain KdcGuiOps KdcGuiRoot
36 35 TOGETHERJ=$(TOGETHER:%=%.java)
37 36 TOGETHERC=$(TOGETHER:%=classdir/%.class)
38 37
39 38 OTHER=GuiResource GuiResource_en_US HelpData HelpData_en_US
40 39 OTHERJ=$(OTHER:%=%.java)
41 40 OTHERC=$(OTHER:%=classdir/%.class)
42 41
43 42 CLASSES=$(TOGETHER) $(OTHER)
44 43 JFILES=$(CLASSES:%=%.java)
45 44 CLFILES=$(CLASSES:%=%.class)
46 45
47 46 GKADMIN=gkadmin
48 47 JARFILE=gkadmin.jar
49 48 VISLIB=visualrt.jar
50 49 HTML=HelpIndex.html
51 50 MSGBUNDLEDIR=$(ROOT)/usr/lib/krb5/ListResourceBundle
52 51
53 52 NONEXFILEMODE=444
54 53
55 54 #
56 55 # Set $KRB5GUILIB
57 56 #
58 57 KRB5GUILIB= $(ROOT)/usr/lib/krb5
59 58
60 59 $(KRB5GUILIB)/$(JARFILE) := FILEMODE= 444
61 60 $(KRB5GUILIB)/$(VISLIB) := FILEMODE= 444
62 61 $(KRB5GUILIB)/$(HTML) := FILEMODE= 444
63 62
64 63 $(KRB5GUILIB)/%: %
65 64 $(INS.file)
66 65
67 66 .SUFFIXES: .java .class $(SUFFIXES)
68 67
69 68 CLASSPATH=$(GUIDIR):$(GUIDIR)/classdir:$(GUIDIR)/util:$(GUIDIR)/dataclasses:$(GUIDIR)/dchanger:$(GUIDIR)/native:$(GUIDIR)/visualrt:$(GUIDIR)/visualrt.jar:$(JAVA_ROOT)/jre/lib/rt.jar:$(JAVA_ROOT)/jre/lib/i18n.jar
70 69
71 70 VISRT_CLASSPATH=$(GUIDIR)/visualrt:$(JAVA_ROOT)/jre/lib/rt.jar:$(JAVA_ROOT)/jre/lib/i18n.jar
72 71
73 72 classdir/%.class: %.java
74 73 $(JAVAC) $(JAVAFLAGS) -d classdir -classpath $(CLASSPATH) $<
75 74
76 75 SUBDIRS= util dataclasses dchanger native
77 76 VISDIR= visualrt
78 77
79 78 def := TARGET= def
80 79 all := TARGET= all
81 80 install := TARGET= install
82 81 install_h := TARGET= install_h
83 82 clean := TARGET= clean
84 83 clobber := TARGET= clobber
85 84 javadoc := TARGET= javadoc
86 85 lint := TARGET= lint
87 86 clean.lint := TARGET= clean.lint
88 87 check := TARGET= check
89 88 _msg := TARGET= _msg
90 89
91 90 .KEEP_STATE:
92 91
93 92 all: $(VISDIR) .WAIT KdcGui.java classdir $(SUBDIRS) all_local
94 93
95 94 all_local: $(TOGETHERC) $(OTHERC) $(KRB5SBIN)/$(GKADMIN) \
96 95 $(KRB5GUILIB)/$(JARFILE) $(KRB5GUILIB)/$(VISLIB) \
97 96 $(KRB5GUILIB)/$(HTML)
98 97
99 98 $(TOGETHERC): $(TOGETHERJ) $(VISLIB)
100 99 $(JAVAC) $(JAVAFLAGS) -d classdir -classpath $(CLASSPATH) $(TOGETHERJ)
101 100
102 101 $(VISLIB):
103 102 cd $(VISDIR); $(MAKE) CLASSPATH=$(VISRT_CLASSPATH) install
104 103
105 104 $(GKADMIN): $(GKADMIN).template
106 105 cat $? | sed -e 's/version_number/$(SEAM_VERS)/' > $@
107 106
108 107 classdir: FRC
109 108 mkdir -p classdir
110 109
111 110 $(VISDIR): FRC
112 111 cd $@; $(MAKE) CLASSPATH=$(VISRT_CLASSPATH) $(TARGET)
113 112
114 113 $(SUBDIRS): FRC
115 114 cd $@; $(MAKE) CLASSPATH=$(CLASSPATH) $(TARGET)
116 115
117 116 GuiResource_en_US.java: GuiResource.java
118 117 cat $? | sed -e 's/GuiResource/GuiResource_en_US/' > $@
119 118
120 119 HelpData_en_US.java: HelpData.java
121 120 cat $? | sed -e 's/HelpData/HelpData_en_US/' > $@
122 121
123 122 $(JARFILE): classdir/*.class
124 123 -$(RM) $(JARFILE)
125 124 (cd classdir; $(JAR) cf ../$(JARFILE) *.class)
126 125
127 126 KdcGui.java: KdcGuiMain.java KdcGuiOps.java KdcGuiRoot.java
128 127
129 128 install: $(VISDIR) .WAIT classdir $(SUBDIRS) install_local
130 129
131 130 lint: native
132 131
133 132 ROOTSBINPROGS= $(KRB5SBIN)/$(GKADMIN)
134 133 LIBPROGS= $(JARFILE) $(VISLIB) $(GIF) $(HTML)
135 134 ROOTLIBPROGS= $(LIBPROGS:%=$(KRB5LIB)/%)
136 135 $(ROOTLIBPROGS):= FILEMODE = 444
137 136
138 137 install_local: all_local
139 138
140 139 _msg: $(MSGBUNDLEDIR) $(MSGBUNDLEDIR)/GuiResource.java $(MSGBUNDLEDIR)/HelpData.java
141 140
142 141 $(MSGBUNDLEDIR)/GuiResource.java $(MSGBUNDLEDIR)/HelpData.java:= FILEMODE = 444
143 142
144 143 $(MSGBUNDLEDIR)/%: %
145 144 $(INS.file)
146 145
147 146 $(MSGBUNDLEDIR):
148 147 $(INS.dir)
149 148
150 149 javadoc:
151 150 $(RM) -rf javadoc
152 151 mkdir javadoc
153 152 $(JAVADOC) -classpath $(CLASSPATH) -d javadoc *.java \
154 153 dataclasses/*.java dchanger/*.java native/*.java util/*.java
155 154 cd visualrt ; $(MAKE) CLASSPATH=$(VISRT_CLASSPATH) $@
156 155
157 156 test: all
158 157 /bin/env \
159 158 LD_LIBRARY_PATH=/usr/java/lib:/usr/dt/lib:$(SRC)/cmd/kadmin/gui/native \
160 159 /usr/bin/java -classpath \
161 160 .:classdir:native:$(VISLIB):)$(ROOT)/usr/java/lib/rt.jar \
162 161 KdcGuiMain &
163 162
164 163 echo:
165 164 @echo $(CLASSES)
166 165 @echo $(JFILES)
167 166 @echo $(CLFILES)
168 167 @echo $(SUFFIXES)
169 168
170 169 clobber: $(VISDIR) $(SUBDIRS) clobber_local
171 170 -$(RM) visualrt.jar
172 171 -$(RM) -rf javadoc
173 172
174 173 clean: $(VISDIR) $(SUBDIRS) clean_local
175 174
176 175 clobber_local: clean_local
177 176
178 177 clean_local:
179 178 $(RM) classdir/*.class $(JARFILE) $(GKADMIN) GuiResource_en_US.java HelpData_en_US.java
180 179
181 180 FRC:
↓ open down ↓ |
139 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX