1 | #
|
---|
2 | # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
---|
3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
---|
4 | #
|
---|
5 | # This code is free software; you can redistribute it and/or modify it
|
---|
6 | # under the terms of the GNU General Public License version 2 only, as
|
---|
7 | # published by the Free Software Foundation. Oracle designates this
|
---|
8 | # particular file as subject to the "Classpath" exception as provided
|
---|
9 | # by Oracle in the LICENSE file that accompanied this code.
|
---|
10 | #
|
---|
11 | # This code is distributed in the hope that it will be useful, but WITHOUT
|
---|
12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
---|
13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
---|
14 | # version 2 for more details (a copy is included in the LICENSE file that
|
---|
15 | # accompanied this code).
|
---|
16 | #
|
---|
17 | # You should have received a copy of the GNU General Public License version
|
---|
18 | # 2 along with this work; if not, write to the Free Software Foundation,
|
---|
19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
---|
20 | #
|
---|
21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
---|
22 | # or visit www.oracle.com if you need additional information or have any
|
---|
23 | # questions.
|
---|
24 | #
|
---|
25 |
|
---|
26 | # Copyright year for beginning of Java and some of the apis
|
---|
27 | # (Needed when creating the javadocs)
|
---|
28 | FIRST_COPYRIGHT_YEAR = 1993
|
---|
29 | DOMAPI_FIRST_COPYRIGHT_YEAR = 2005
|
---|
30 | MIRROR_FIRST_COPYRIGHT_YEAR = 2004
|
---|
31 | DOCLETAPI_FIRST_COPYRIGHT_YEAR = 1993
|
---|
32 | TAGLETAPI_FIRST_COPYRIGHT_YEAR = 1993
|
---|
33 | JDI_FIRST_COPYRIGHT_YEAR = 1999
|
---|
34 | JAAS_FIRST_COPYRIGHT_YEAR = 1998
|
---|
35 | JGSS_FIRST_COPYRIGHT_YEAR = 2000
|
---|
36 | SMARTCARDIO_FIRST_COPYRIGHT_YEAR = 2005
|
---|
37 | HTTPSERVER_FIRST_COPYRIGHT_YEAR = 2005
|
---|
38 | MGMT_FIRST_COPYRIGHT_YEAR = 2003
|
---|
39 | ATTACH_FIRST_COPYRIGHT_YEAR = 2005
|
---|
40 | JCONSOLE_FIRST_COPYRIGHT_YEAR = 2006
|
---|
41 | TREEAPI_FIRST_COPYRIGHT_YEAR = 2005
|
---|
42 | JNLP_FIRST_COPYRIGHT_YEAR = 1998
|
---|
43 | PLUGIN2_FIRST_COPYRIGHT_YEAR = 2007
|
---|
44 |
|
---|
45 | # Oracle name
|
---|
46 | COMPANY_NAME = Oracle and/or its affiliates
|
---|
47 |
|
---|
48 | # Copyright address
|
---|
49 | COMPANY_ADDRESS = 500 Oracle Parkway<br>Redwood Shores, CA 94065 USA.
|
---|
50 |
|
---|
51 | # The trademark symbol
|
---|
52 | TRADEMARK = ™
|
---|
53 |
|
---|
54 | # Common copyright lines used
|
---|
55 | # The word "Copyright" might optionally be a link to the file cpyr.html.
|
---|
56 | # The first year of copyright may vary or not be available.
|
---|
57 | # The address to the company might be optional.
|
---|
58 | COMMA:= ,
|
---|
59 | EMPTY:=
|
---|
60 | SPACE:=$(EMPTY) $(EMPTY)
|
---|
61 | COPYRIGHT_SYMBOL = &\#x00a9;
|
---|
62 | # Macros to handle the optional empty args.
|
---|
63 | # (The GNU make 3.78.1 "if" conditional is broken, fixed in GNU make 3.81)
|
---|
64 | define OptionalCopyrightUrl # url
|
---|
65 | $(shell \
|
---|
66 | if [ "$1" != "" ] ; then \
|
---|
67 | printf "<a href=\"%s\">Copyright</a>" "$1"; \
|
---|
68 | else \
|
---|
69 | printf "Copyright"; \
|
---|
70 | fi)
|
---|
71 | endef
|
---|
72 | define OptionalCopyrightFirstYear # year
|
---|
73 | $(shell \
|
---|
74 | if [ "$1" != "" ] ; then \
|
---|
75 | printf "%s," "$1";\
|
---|
76 | fi)
|
---|
77 | endef
|
---|
78 | define OptionalCompanyAddress # address
|
---|
79 | $(shell \
|
---|
80 | if [ "$1" != "" ] ; then \
|
---|
81 | printf "%s" "$1";\
|
---|
82 | fi)
|
---|
83 | endef
|
---|
84 | define CopyrightLine # optionalurl optionalfirstyear optionaladdress
|
---|
85 | $(call OptionalCopyrightUrl,$1) $(COPYRIGHT_SYMBOL)\
|
---|
86 | $(call OptionalCopyrightFirstYear,$2) $(COPYRIGHT_YEAR),\
|
---|
87 | $(COMPANY_NAME).\
|
---|
88 | $(call OptionalCompanyAddress,$3)\
|
---|
89 | All rights reserved.
|
---|
90 | endef
|
---|
91 |
|
---|