jdk/make/sun/awt/mawt.gmk
author aph
Fri, 17 Apr 2009 15:56:20 +0100
changeset 2791 c84bf0caab7f
parent 1175 026b52c440fe
child 5506 202f599c92aa
permissions -rw-r--r--
6829575: 100028: Debug information is incomplete or missing Summary: Enable debugging in many places Reviewed-by: ohair Contributed-by: Andrew Haley <aph@redhat.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
# Copyright 2000-2007 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
# by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
# CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
# have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# to create directory:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
INIT += $(LIB_LOCATION) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
# Files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
# mawt.gmk is just used in building X/Motif native code, so
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
# this list of java files is no longer included.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
#include FILES_java_unix.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
include $(BUILDDIR)/sun/awt/FILES_c_unix.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
include $(BUILDDIR)/sun/awt/FILES_export_unix.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
# Check which C files should be built.  Headless uses only
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
# non-motif files.  Also, a version-specific motif file is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
# compiled based on the motif version.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
ifdef HEADLESS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
  FILES_c = $(FILES_NO_MOTIF_c)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
else
1175
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
    47
#  FILES_c = $(FILES_MOTIF_c) $(FILES_NO_MOTIF_c)
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
    48
#  XXX if in FILES_MOTIF_c there are unrelated to motif stuff, create a separate list!
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
    49
  FILES_c = $(FILES_NO_MOTIF_c)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
ifeq ($(PLATFORM), solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
  ifneq ($(ARCH), amd64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
    FILES_reorder += reorder-$(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
# Rules
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
# Class files should be built & clobbered in make/sun/awt
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
# If removing this line, also reinclude sun_awt.jmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
DONT_CLOBBER_CLASSES = true
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
ifndef HEADLESS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
ifeq ($(VARIANT), OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
FILES_m = ../awt/mapfile-mawt-vers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
# Since this library will be living in a subdirectory below the other libraries
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
#   we need to add an extra runpath so that libraries in the upper directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
#   are found at runtime.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
LD_RUNPATH_EXTRAS = ..
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
include $(BUILDDIR)/common/Mapfile-vers.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
include $(BUILDDIR)/common/Library.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
$(LIB_LOCATION):
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
	$(MKDIR) -p $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
clean:: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
# Add to the ambient vpath to pick up files in subdirectories
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/alphacomposite
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/image
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/image/gif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/image/cvutils
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/shell
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/medialib
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
vpath %.c   $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
vpath %.c   $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/debug
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/../font
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/../java2d
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
vpath %.cpp $(SHARE_SRC)/native/$(PKGDIR)/image
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
vpath %.c   $(PLATFORM_SRC)/native/$(PKGDIR)/robot_child
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
# Libraries to link in.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
2791
c84bf0caab7f 6829575: 100028: Debug information is incomplete or missing
aph
parents: 1175
diff changeset
   111
ifeq ($(DEBUG_BINARIES), true)
c84bf0caab7f 6829575: 100028: Debug information is incomplete or missing
aph
parents: 1175
diff changeset
   112
  CFLAGS += -g
c84bf0caab7f 6829575: 100028: Debug information is incomplete or missing
aph
parents: 1175
diff changeset
   113
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
ifeq ($(HEADLESS),true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
CFLAGS += -DHEADLESS=$(HEADLESS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
CPPFLAGS += -DHEADLESS=$(HEADLESS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
OTHER_LDLIBS =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
else
1175
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   119
#CFLAGS += -DMOTIF_VERSION=$(MOTIF_VERSION)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
1175
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   121
#ifeq ($(STATIC_MOTIF),true)
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   122
#    LIBXM = $(MOTIF_LIB)/libXm.a -lXp -lXmu
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   123
#    ifeq ($(PLATFORM), linux)
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   124
#	ifeq ($(ARCH_DATA_MODEL), 64)
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   125
#            LIBXT = -lXt
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   126
#        else
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   127
#        # Allows for builds on Debian GNU Linux, X11 is in a different place 
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   128
#	    LIBXT = $(firstword $(wildcard /usr/X11R6/lib/libXt.a) \
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   129
#                            $(wildcard /usr/lib/libXt.a))
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   130
#	    LIBSM = $(firstword $(wildcard /usr/X11R6/lib/libSM.a) \
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   131
#                            $(wildcard /usr/lib/libSM.a))
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   132
#	    LIBICE = $(firstword $(wildcard /usr/X11R6/lib/libICE.a) \
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   133
#                             $(wildcard /usr/lib/libICE.a))
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   134
#	endif
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   135
#    endif
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   136
#else
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   137
#    LIBXM = -L$(MOTIF_LIB) -lXm -lXp
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   138
#    ifeq ($(PLATFORM), linux)
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   139
#	LIBXT = -lXt
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   140
#	LIBSM = 
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   141
#	LIBICE = 
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   142
#    endif
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   143
#endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
LIBXTST = -lXtst
1175
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   146
ifeq ($(PLATFORM), linux)
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   147
   ifeq ($(ARCH_DATA_MODEL), 64)
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   148
   # XXX what about the rest of them?
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   149
        LIBXT = -lXt
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   150
    else
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   151
    # Allows for builds on Debian GNU Linux, X11 is in a different place 
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   152
       LIBXT = $(firstword $(wildcard /usr/X11R6/lib/libXt.a) \
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   153
                        $(wildcard /usr/lib/libXt.a))
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   154
       LIBSM = $(firstword $(wildcard /usr/X11R6/lib/libSM.a) \
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   155
                        $(wildcard /usr/lib/libSM.a))
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   156
       LIBICE = $(firstword $(wildcard /usr/X11R6/lib/libICE.a) \
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   157
                         $(wildcard /usr/lib/libICE.a))
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   158
       LIBXTST = $(firstword $(wildcard /usr/X11R6/lib/libXtst.a) \
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   159
                         $(wildcard /usr/lib/libXtst.a))
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   160
   endif
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   161
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
# Use -lXmu for EditRes support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
LIBXMU_DBG	= -lXmu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
LIBXMU_OPT	=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
LIBXMU		= $(LIBXMU_$(VARIANT))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
ifeq ($(PLATFORM), solaris)
1175
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   169
OTHER_LDLIBS = -lXt -lXext $(LIBXTST) $(LIBXMU) -lX11 -lXi
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
ifeq ($(PLATFORM), linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
OTHER_CFLAGS += -DMLIB_NO_LIBSUNMATH
1175
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   174
# XXX what is this define below? Isn't it motif-related?
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
OTHER_CFLAGS += -DXMSTRINGDEFINES=1
1175
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   176
OTHER_LDLIBS =  $(LIBXMU) $(LIBXTST) -lXext $(LIBXT) $(LIBSM) $(LIBICE) -lX11 -lXi
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
# !HEADLESS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
OTHER_LDLIBS += $(JVMLIB) $(LIBCXX) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
                -lawt $(LIBM) -ldl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
# Sun CC with -Xa misdefines __STDC__ to 0 (zero).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
# The following will force checking of X11 prototypes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
# 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
ifneq ($(CC_VERSION),gcc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
CPPFLAGS += -DFUNCPROTO=15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
# Other extra flags needed for compiling.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
CPPFLAGS += -I$(CUPS_HEADERS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
ifndef HEADLESS
1175
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   199
CPPFLAGS += -I$(OPENWIN_HOME)/include 
026b52c440fe 6706121: makefile: unnecessary Motif classes compilation in JDK7
yan
parents: 2
diff changeset
   200
LDFLAGS  += -L$(OPENWIN_LIB)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
endif # !HEADLESS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/debug \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
            -I$(SHARE_SRC)/native/$(PKGDIR)/../font \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
            -I$(PLATFORM_SRC)/native/$(PKGDIR)/../font \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
            -I$(SHARE_SRC)/native/$(PKGDIR)/image \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
	    -I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
	    -I$(SHARE_SRC)/native/$(PKGDIR)/shell \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
	    -I$(SHARE_SRC)/native/$(PKGDIR)/alphacomposite \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
            -I$(SHARE_SRC)/native/$(PKGDIR)/medialib \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
            -I$(PLATFORM_SRC)/native/$(PKGDIR)/medialib \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
	    -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
	    -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
	    -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
	    -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
            -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
            -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
            -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
        -I$(SHARE_SRC)/native/$(PKGDIR)/../dc/doe \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
        -I$(SHARE_SRC)/native/$(PKGDIR)/../dc/path \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
            -I$(PLATFORM_SRC)/native/$(PKGDIR)/../jdga \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
        -I$(PLATFORM_SRC)/native/$(PKGDIR) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
        $(EVENT_MODEL)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
ifeq ($(PLATFORM), linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
# Checking for the X11/extensions headers at the additional location
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
  CPPFLAGS += -I/X11R6/include/X11/extensions \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
              -I/usr/include/X11/extensions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
ifeq ($(PLATFORM), solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
  CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
LDFLAGS += -L$(LIBDIR)/$(LIBARCH)/$(TSOBJDIR) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
	   $(AWT_RUNPATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
CLASSES.export += java.io.InputStream \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
		  java.lang.ThreadGroup
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242