Makefile revision 3261
44N/A#
44N/A# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
44N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44N/A#
44N/A# This code is free software; you can redistribute it and/or modify it
44N/A# under the terms of the GNU General Public License version 2 only, as
44N/A# published by the Free Software Foundation. Oracle designates this
44N/A# particular file as subject to the "Classpath" exception as provided
44N/A# by Oracle in the LICENSE file that accompanied this code.
44N/A#
44N/A# This code is distributed in the hope that it will be useful, but WITHOUT
44N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
44N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
44N/A# version 2 for more details (a copy is included in the LICENSE file that
44N/A# accompanied this code).
44N/A#
44N/A# You should have received a copy of the GNU General Public License version
44N/A# 2 along with this work; if not, write to the Free Software Foundation,
44N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
44N/A#
75N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
75N/A# or visit www.oracle.com if you need additional information or have any
844N/A# questions.
44N/A#
75N/A
44N/ABUILDDIR = ../../..
44N/AMODULE = java2d
44N/APACKAGE = sun.java2d.cmm.kcms
491N/ALIBRARY = kcms
44N/APRODUCT = sun
618N/Ainclude $(BUILDDIR)/common/Defs.gmk
491N/A
844N/A#
844N/A# Files
44N/A#
44N/Aifeq ($(PLATFORM), windows)
44N/Ainclude FILES_c_windows.gmk
44N/Aelse # PLATFORM
44N/Ainclude FILES_c_unix.gmk
44N/Aendif # PLATFORM
515N/A
515N/AFILES_java = \
515N/A sun/java2d/cmm/kcms/CMM.java
44N/A
44N/AFILES_export = \
44N/A sun/java2d/cmm/kcms/CMM.java
58N/A
44N/Aifeq ($(PLATFORM), windows)
61N/A # Override the default version info with our own resource file (see 5043594)
44N/A VERSIONINFO_RESOURCE = $(CLOSED_SRC)/share/native/sun/java2d/cmm/kcms/cmm.rc
44N/Aendif
44N/A
59N/A# Rules
44N/A#
44N/Ainclude $(BUILDDIR)/common/Mapfile-vers.gmk
59N/Ainclude $(BUILDDIR)/common/Library.gmk
59N/A
59N/ASERVICEDIR = $(CLASSBINDIR)/META-INF/services
177N/A
59N/AFILES_copy = \
59N/A $(SERVICEDIR)/sun.java2d.cmm.PCMM
44N/A
44N/A
44N/Abuild: copy-files
44N/A
181N/Acopy-files: $(FILES_copy)
44N/A
181N/A$(SERVICEDIR)/%: $(CLOSED_SRC)/share/classes/sun/java2d/cmm/kcms/META-INF/services/%
83N/A $(install-file)
44N/A
44N/A#
44N/A# Extra rules
#
ifeq ($(PLATFORM), linux)
LDLIBS += -lpthread
endif
clean clobber::
$(RM) $(FILES_copy)
#
# Add to ambient vpath to get files in a subdirectory
#
vpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR)
ifeq ($(PLATFORM), windows)
OTHER_LDLIBS = user32.lib version.lib
clean:: res.clean
res.clean:
$(RM) $(OBJDIR)/cmm.rc
$(RM) $(OBJDIR)/cmm.res
$(RM) $(OBJDIR)/cmm.h
else # PLATFORM
OTHER_LDLIBS = $(LIBM)
# Use pic instead of PIC on this library
GLOBAL_KPIC = $(PIC_CODE_SMALL)
CPPFLAGS += -I$(CLASSHDRDIR) \
endif # PLATFORM
#CFLAGS += -DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST
CFLAGS += -DFUT_CALC_EX -DNO_FUT_GCONST