comparison make/sun/cmm/kcms/Makefile @ 0:37a05a11f281

Initial load
author duke
date Sat, 01 Dec 2007 00:00:00 +0000
parents
children c51121419e30
comparison
equal deleted inserted replaced
-1:000000000000 0:46ae6391e2db
1 #
2 # Copyright 1997-2007 Sun Microsystems, Inc. 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. Sun designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 # CA 95054 USA or visit www.sun.com if you need additional information or
23 # have any questions.
24 #
25
26 BUILDDIR = ../../..
27 PACKAGE = sun.java2d.cmm.kcms
28 LIBRARY = kcms
29 PRODUCT = sun
30 include $(BUILDDIR)/common/Defs.gmk
31
32 #
33 # Files
34 #
35 ifeq ($(PLATFORM), windows)
36 include FILES_c_windows.gmk
37 else # PLATFORM
38 include FILES_c_unix.gmk
39 endif # PLATFORM
40
41 FILES_java = \
42 sun/java2d/cmm/kcms/CMM.java
43
44 FILES_export = \
45 sun/java2d/cmm/kcms/CMM.java
46
47 ifeq ($(PLATFORM), windows)
48 # Override the default version info with our own resource file (see 5043594)
49 VERSIONINFO_RESOURCE = $(CLOSED_SRC)/share/native/sun/java2d/cmm/kcms/cmm.rc
50 # Files built here do not compile with warning level 3 if warnings are fatal
51 COMPILER_WARNINGS_FATAL=false
52 endif
53
54 # Rules
55 #
56 include $(BUILDDIR)/common/Mapfile-vers.gmk
57 include $(BUILDDIR)/common/Library.gmk
58
59 SERVICEDIR = $(CLASSBINDIR)/META-INF/services
60
61 FILES_copy = \
62 $(SERVICEDIR)/sun.java2d.cmm.PCMM
63
64
65 build: copy-files
66
67 copy-files: $(FILES_copy)
68
69 $(SERVICEDIR)/%: $(CLOSED_SRC)/share/classes/sun/java2d/cmm/kcms/META-INF/services/%
70 $(install-file)
71
72 #
73 # Extra rules
74 #
75 ifeq ($(PLATFORM), linux)
76 LDLIBS += -lpthread
77 endif
78
79 clean clobber::
80 $(RM) $(FILES_copy)
81
82 #
83 # Add to ambient vpath to get files in a subdirectory
84 #
85 vpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR)
86
87 ifeq ($(PLATFORM), windows)
88
89 OTHER_LDLIBS = user32.lib version.lib
90
91 clean:: res.clean
92
93 res.clean:
94 $(RM) $(OBJDIR)/cmm.rc
95 $(RM) $(OBJDIR)/cmm.res
96 $(RM) $(OBJDIR)/cmm.h
97
98 else # PLATFORM
99 OTHER_LDLIBS = $(LIBM)
100
101 # Use pic instead of PIC on this library
102 GLOBAL_KPIC = $(PIC_CODE_SMALL)
103
104 CPPFLAGS += -I$(CLASSHDRDIR) \
105
106 endif # PLATFORM
107
108 #CFLAGS += -DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST
109 CFLAGS += -DFUT_CALC_EX -DNO_FUT_GCONST
110