author | never |
Mon, 12 Jul 2010 22:27:18 -0700 | |
changeset 5926 | a36f90d986b6 |
parent 5506 | 202f599c92aa |
child 7668 | d4a77089c587 |
permissions | -rw-r--r-- |
2 | 1 |
# |
5506 | 2 |
# Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved. |
2 | 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 |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 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 |
# |
|
5506 | 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. |
|
2 | 24 |
# |
25 |
||
26 |
BUILDDIR = ../../.. |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
1247
diff
changeset
|
27 |
MODULE = java2d |
2 | 28 |
PACKAGE = sun.java2d.cmm.kcms |
29 |
LIBRARY = kcms |
|
30 |
PRODUCT = sun |
|
31 |
include $(BUILDDIR)/common/Defs.gmk |
|
32 |
||
33 |
# |
|
34 |
# Files |
|
35 |
# |
|
36 |
ifeq ($(PLATFORM), windows) |
|
37 |
include FILES_c_windows.gmk |
|
38 |
else # PLATFORM |
|
39 |
include FILES_c_unix.gmk |
|
40 |
endif # PLATFORM |
|
41 |
||
42 |
FILES_java = \ |
|
43 |
sun/java2d/cmm/kcms/CMM.java |
|
44 |
||
45 |
FILES_export = \ |
|
46 |
sun/java2d/cmm/kcms/CMM.java |
|
47 |
||
48 |
ifeq ($(PLATFORM), windows) |
|
49 |
# Override the default version info with our own resource file (see 5043594) |
|
50 |
VERSIONINFO_RESOURCE = $(CLOSED_SRC)/share/native/sun/java2d/cmm/kcms/cmm.rc |
|
51 |
endif |
|
52 |
||
53 |
# Rules |
|
54 |
# |
|
55 |
include $(BUILDDIR)/common/Mapfile-vers.gmk |
|
56 |
include $(BUILDDIR)/common/Library.gmk |
|
57 |
||
58 |
SERVICEDIR = $(CLASSBINDIR)/META-INF/services |
|
59 |
||
60 |
FILES_copy = \ |
|
61 |
$(SERVICEDIR)/sun.java2d.cmm.PCMM |
|
62 |
||
63 |
||
64 |
build: copy-files |
|
65 |
||
66 |
copy-files: $(FILES_copy) |
|
67 |
||
68 |
$(SERVICEDIR)/%: $(CLOSED_SRC)/share/classes/sun/java2d/cmm/kcms/META-INF/services/% |
|
69 |
$(install-file) |
|
70 |
||
71 |
# |
|
72 |
# Extra rules |
|
73 |
# |
|
74 |
ifeq ($(PLATFORM), linux) |
|
75 |
LDLIBS += -lpthread |
|
76 |
endif |
|
77 |
||
78 |
clean clobber:: |
|
79 |
$(RM) $(FILES_copy) |
|
80 |
||
81 |
# |
|
82 |
# Add to ambient vpath to get files in a subdirectory |
|
83 |
# |
|
84 |
vpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR) |
|
85 |
||
86 |
ifeq ($(PLATFORM), windows) |
|
87 |
||
88 |
OTHER_LDLIBS = user32.lib version.lib |
|
89 |
||
90 |
clean:: res.clean |
|
91 |
||
92 |
res.clean: |
|
93 |
$(RM) $(OBJDIR)/cmm.rc |
|
94 |
$(RM) $(OBJDIR)/cmm.res |
|
95 |
$(RM) $(OBJDIR)/cmm.h |
|
96 |
||
97 |
else # PLATFORM |
|
98 |
OTHER_LDLIBS = $(LIBM) |
|
99 |
||
100 |
# Use pic instead of PIC on this library |
|
101 |
GLOBAL_KPIC = $(PIC_CODE_SMALL) |
|
102 |
||
103 |
CPPFLAGS += -I$(CLASSHDRDIR) \ |
|
104 |
||
105 |
endif # PLATFORM |
|
106 |
||
107 |
#CFLAGS += -DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST |
|
108 |
CFLAGS += -DFUT_CALC_EX -DNO_FUT_GCONST |
|
109 |