make/lib/Awt2dLibraries.gmk

Print this page




 747     MAPFILE := $(BUILD_LIBJPEG_MAPFILE), \
 748     LDFLAGS := $(LDFLAGS_JDKLIB) \
 749         $(call SET_SHARED_LIBRARY_ORIGIN), \
 750     LDFLAGS_windows := $(WIN_JAVA_LIB) jvm.lib, \
 751     LDFLAGS_SUFFIX := $(LDFLAGS_JDKLIB_SUFFIX), \
 752     VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
 753     RC_FLAGS := $(RC_FLAGS) \
 754         -D "JDK_FNAME=jpeg.dll" \
 755         -D "JDK_INTERNAL_NAME=jpeg" \
 756         -D "JDK_FTYPE=0x2L", \
 757     REORDER := $(BUILD_LIBJPEG_REORDER), \
 758     OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjpeg, \
 759     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 760 
 761 $(BUILD_LIBJPEG): $(BUILD_LIBJAVA)
 762 
 763 BUILD_LIBRARIES += $(BUILD_LIBJPEG)
 764 
 765 ##########################################################################################
 766 






































































































 767 ifndef OPENJDK
 768   FONT_HEADERS := -I$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k
 769   BUILD_LIBFONTMANAGER_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libfontmanager/mapfile-vers
 770   LIBFONTMANAGER_EXCLUDE_FILES += freetypeScaler.c
 771 else
 772   FONT_HEADERS := $(FREETYPE_CFLAGS)
 773   BUILD_LIBFONTMANAGER_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libfontmanager/mapfile-vers.openjdk
 774   BUILD_LIBFONTMANAGER_FONTLIB := $(FREETYPE_LIBS)
 775 endif
 776 
 777 LIBFONTMANAGER_OPTIMIZATION := HIGH
 778 
 779 ifeq ($(OPENJDK_TARGET_OS), windows)
 780   LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \
 781       X11TextRenderer.c
 782   LIBFONTMANAGER_OPTIMIZATION := HIGHEST
 783 else ifeq ($(OPENJDK_TARGET_OS), macosx)
 784   LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \
 785       X11TextRenderer.c \
 786       fontpath.c \


 827         $(call SET_SHARED_LIBRARY_ORIGIN), \
 828     LDFLAGS_SUFFIX := $(BUILD_LIBFONTMANAGER_FONTLIB), \
 829     LDFLAGS_SUFFIX_linux := -lawt $(LIBM) $(LIBCXX) -ljava -ljvm -lc, \
 830     LDFLAGS_SUFFIX_solaris := -lawt -lawt_headless -lc $(LIBM) $(LIBCXX) -ljava -ljvm, \
 831     LDFLAGS_SUFFIX_aix := -lawt -lawt_headless $(LIBM) $(LIBCXX) -ljava -ljvm,\
 832     LDFLAGS_SUFFIX_macosx := -lawt $(LIBM) $(LIBCXX) -undefined dynamic_lookup \
 833         -ljava -ljvm, \
 834     LDFLAGS_SUFFIX_windows := $(WIN_JAVA_LIB) advapi32.lib user32.lib gdi32.lib \
 835         $(WIN_AWT_LIB), \
 836     VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
 837     RC_FLAGS := $(RC_FLAGS) \
 838         -D "JDK_FNAME=fontmanager.dll" \
 839         -D "JDK_INTERNAL_NAME=fontmanager" \
 840         -D "JDK_FTYPE=0x2L", \
 841     OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libfontmanager, \
 842     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 843 
 844 $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT)
 845 
 846 ifneq (, $(findstring $(OPENJDK_TARGET_OS), solaris aix))
 847   $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT_XAWT)
 848 endif
 849 
 850 BUILD_LIBRARIES += $(BUILD_LIBFONTMANAGER)
 851 
 852 ##########################################################################################
 853 
 854 ifndef OPENJDK
 855 
 856   #ifeq ($(OPENJDK_TARGET_OS), linux)
 857   #  ifeq ("$(CC_VER_MAJOR)", "3")
 858   #    OTHER_LDLIBS += -Wl,-Bstatic -lgcc_eh -Wl,-Bdynamic
 859   #  endif
 860   #endif
 861   #
 862   # The resulting size of the t2k lib file is (at least on linux) dependant on the order of
 863   # the input .o files. Because of this the new build will differ in size to the old build.
 864   BUILD_LIBT2K_CFLAGS_COMMON := -I$(JDK_TOPDIR)/src/share/native/sun/font \
 865       -I$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k \
 866       -I$(JDK_TOPDIR)/src/closed/share/native/sun/font \
 867       -I$(JDK_TOPDIR)/src/share/share/native/sun/font \


1069             LIBRARY := sunwjdga, \
1070             OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
1071             SRC := $(JDK_TOPDIR)/src/solaris/native/sun/jdga, \
1072             LANG := C, \
1073             OPTIMIZATION := LOW, \
1074             CFLAGS := $(CFLAGS_JDKLIB) \
1075                 -I$(JDK_TOPDIR)/src/share/javavm/export \
1076                 -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export \
1077                 -I$(OPENWIN_HOME)/include, \
1078             MAPFILE := $(SUNWJDGA_MAPFILE), \
1079             LDFLAGS := $(LDFLAGS_JDKLIB) \
1080                 $(call SET_SHARED_LIBRARY_ORIGIN), \
1081             LDFLAGS_SUFFIX := -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -ldga -lX11 $(LIBDL) -lc, \
1082             OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libsunwjdga, \
1083             DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
1084 
1085         BUILD_LIBRARIES += $(BUILD_LIBSUNWJDGA)
1086 
1087       endif
1088     endif
1089   endif
1090 endif
1091 
1092 ##########################################################################################
1093 
1094 ifeq ($(BUILD_HEADLESS), true)
1095   # Mac and Windows only use the native AWT lib, do not build libawt_headless
1096   ifeq ($(findstring $(OPENJDK_TARGET_OS), windows macosx),)
1097 
1098     LIBAWT_HEADLESS_DIRS := $(JDK_TOPDIR)/src/share/native/sun/font \
1099         $(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \
1100         $(JDK_TOPDIR)/src/solaris/native/sun/font \
1101         $(JDK_TOPDIR)/src/solaris/native/sun/awt \
1102         $(JDK_TOPDIR)/src/solaris/native/sun/java2d/opengl \
1103         $(JDK_TOPDIR)/src/solaris/native/sun/java2d/x11
1104 
1105     ifeq ($(OPENJDK_TARGET_OS), macosx)
1106       LIBAWT_HEADLESS_DIRS += $(JDK_TOPDIR)/src/macosx/native/sun/font
1107     endif
1108 
1109     LIBAWT_HEADLESS_CFLAGS := -DHEADLESS=true \
1110         -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \
1111         $(CUPS_CFLAGS) \
1112         $(X_CFLAGS) \
1113         -I$(JDK_TOPDIR)/src/share/native/sun/java2d \
1114         -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \
1115         -I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \
1116         -I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \
1117         -I$(JDK_TOPDIR)/src/share/native/sun/awt/image \
1118         -I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \
1119         -I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \
1120         -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga \
1121         $(foreach dir, $(LIBAWT_HEADLESS_DIRS), -I$(dir))
1122 
1123     ifeq ($(OPENJDK_TARGET_OS), macosx)
1124       LIBAWT_HEADLESS_CFLAGS += \
1125           -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
1126           -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks
1127     endif
1128 
1129     LIBAWT_HEADLESS_FILES := \
1130         awt_Font.c \
1131         HeadlessToolkit.c \
1132         fontpath.c \
1133         VDrawingArea.c \
1134         X11Color.c \
1135         X11Renderer.c \
1136         X11PMBlitLoops.c \
1137         X11SurfaceData.c \
1138         X11FontScaler_md.c \
1139         X11TextRenderer_md.c \
1140         OGLBlitLoops.c \
1141         OGLBufImgOps.c \
1142         OGLContext.c \
1143         OGLFuncs.c \
1144         OGLMaskBlit.c \
1145         OGLMaskFill.c \
1146         OGLPaints.c \
1147         OGLRenderQueue.c \
1148         OGLRenderer.c \
1149         OGLSurfaceData.c \
1150         OGLTextRenderer.c \
1151         OGLVertexCache.c \
1152         GLXGraphicsConfig.c \
1153         GLXSurfaceData.c \
1154         AccelGlyphCache.c \
1155         CUPSfuncs.c
1156 
1157     LIBAWT_HEADLESS_REORDER :=
1158     ifeq ($(OPENJDK_TARGET_OS), solaris)
1159       ifneq ($(OPENJDK_TARGET_CPU), x86_64)
1160         LIBAWT_HEADLESS_REORDER := $(JDK_TOPDIR)/make/mapfiles/libawt_headless/reorder-$(OPENJDK_TARGET_CPU)
1161       endif
1162     endif
1163 
1164     $(eval $(call SetupNativeCompilation,BUILD_LIBAWT_HEADLESS, \
1165         LIBRARY := awt_headless, \
1166         OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
1167         SRC := $(LIBAWT_HEADLESS_DIRS), \
1168         INCLUDE_FILES := $(LIBAWT_HEADLESS_FILES), \
1169         LANG := C, \
1170         OPTIMIZATION := LOW, \
1171         CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_HEADLESS_CFLAGS), \
1172         MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libawt_headless/mapfile-vers, \
1173         LDFLAGS := $(LDFLAGS_JDKLIB) \
1174             $(call SET_SHARED_LIBRARY_ORIGIN), \
1175         LDFLAGS_linux := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \
1176         LDFLAGS_solaris := $(call SET_SHARED_LIBRARY_ORIGIN,/..) \
1177             -R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) \
1178             -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR), \
1179         LDFLAGS_macosx := $(call SET_SHARED_LIBRARY_ORIGIN)., \
1180         REORDER := $(LIBAWT_HEADLESS_REORDER), \
1181         LDFLAGS_SUFFIX_linux := -ljvm -lawt -lm $(LIBDL) -ljava, \
1182         LDFLAGS_SUFFIX_aix := -ljvm -lawt -ljava,\
1183         LDFLAGS_SUFFIX_solaris := $(LIBDL) -ljvm -lawt -lm -ljava $(LIBCXX) -lc, \
1184         OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libawt_headless, \
1185         DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
1186 
1187     $(BUILD_LIBAWT_HEADLESS): $(BUILD_LIBAWT)
1188 
1189     BUILD_LIBRARIES += $(BUILD_LIBAWT_HEADLESS)
1190 
1191   endif
1192 endif
1193 
1194 ##########################################################################################
1195 
1196 ifndef BUILD_HEADLESS_ONLY
1197   LIBSPLASHSCREEN_DIRS := \
1198     $(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg \
1199     $(JDK_TOPDIR)/src/share/native/sun/awt/libpng \
1200     $(JDK_TOPDIR)/src/share/native/sun/awt/splashscreen
1201 
1202   ifeq ($(USE_EXTERNAL_LIBGIF), true)
1203     GIFLIB_LDFLAGS := -lgif
1204   else
1205     LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/share/native/sun/awt/giflib
1206     GIFLIB_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/giflib
1207   endif
1208 
1209   ifneq ($(OPENJDK_TARGET_OS), macosx)
1210     LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen




 747     MAPFILE := $(BUILD_LIBJPEG_MAPFILE), \
 748     LDFLAGS := $(LDFLAGS_JDKLIB) \
 749         $(call SET_SHARED_LIBRARY_ORIGIN), \
 750     LDFLAGS_windows := $(WIN_JAVA_LIB) jvm.lib, \
 751     LDFLAGS_SUFFIX := $(LDFLAGS_JDKLIB_SUFFIX), \
 752     VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
 753     RC_FLAGS := $(RC_FLAGS) \
 754         -D "JDK_FNAME=jpeg.dll" \
 755         -D "JDK_INTERNAL_NAME=jpeg" \
 756         -D "JDK_FTYPE=0x2L", \
 757     REORDER := $(BUILD_LIBJPEG_REORDER), \
 758     OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjpeg, \
 759     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 760 
 761 $(BUILD_LIBJPEG): $(BUILD_LIBJAVA)
 762 
 763 BUILD_LIBRARIES += $(BUILD_LIBJPEG)
 764 
 765 ##########################################################################################
 766 
 767 ifeq ($(BUILD_HEADLESS), true)
 768   # Mac and Windows only use the native AWT lib, do not build libawt_headless
 769   ifeq ($(findstring $(OPENJDK_TARGET_OS), windows macosx),)
 770 
 771     LIBAWT_HEADLESS_DIRS := $(JDK_TOPDIR)/src/share/native/sun/font \
 772         $(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \
 773         $(JDK_TOPDIR)/src/solaris/native/sun/font \
 774         $(JDK_TOPDIR)/src/solaris/native/sun/awt \
 775         $(JDK_TOPDIR)/src/solaris/native/sun/java2d/opengl \
 776         $(JDK_TOPDIR)/src/solaris/native/sun/java2d/x11
 777 
 778     ifeq ($(OPENJDK_TARGET_OS), macosx)
 779       LIBAWT_HEADLESS_DIRS += $(JDK_TOPDIR)/src/macosx/native/sun/font
 780     endif
 781 
 782     LIBAWT_HEADLESS_CFLAGS := -DHEADLESS=true \
 783         -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \
 784         $(CUPS_CFLAGS) \
 785         $(X_CFLAGS) \
 786         -I$(JDK_TOPDIR)/src/share/native/sun/java2d \
 787         -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \
 788         -I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \
 789         -I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \
 790         -I$(JDK_TOPDIR)/src/share/native/sun/awt/image \
 791         -I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \
 792         -I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \
 793         -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga \
 794         $(foreach dir, $(LIBAWT_HEADLESS_DIRS), -I$(dir))
 795 
 796     ifeq ($(OPENJDK_TARGET_OS), macosx)
 797       LIBAWT_HEADLESS_CFLAGS += \
 798           -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
 799           -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks
 800     endif
 801 
 802     LIBAWT_HEADLESS_FILES := \
 803         awt_Font.c \
 804         HeadlessToolkit.c \
 805         fontpath.c \
 806         VDrawingArea.c \
 807         X11Color.c \
 808         X11Renderer.c \
 809         X11PMBlitLoops.c \
 810         X11SurfaceData.c \
 811         X11FontScaler_md.c \
 812         X11TextRenderer_md.c \
 813         OGLBlitLoops.c \
 814         OGLBufImgOps.c \
 815         OGLContext.c \
 816         OGLFuncs.c \
 817         OGLMaskBlit.c \
 818         OGLMaskFill.c \
 819         OGLPaints.c \
 820         OGLRenderQueue.c \
 821         OGLRenderer.c \
 822         OGLSurfaceData.c \
 823         OGLTextRenderer.c \
 824         OGLVertexCache.c \
 825         GLXGraphicsConfig.c \
 826         GLXSurfaceData.c \
 827         AccelGlyphCache.c \
 828         CUPSfuncs.c
 829 
 830     LIBAWT_HEADLESS_REORDER :=
 831     ifeq ($(OPENJDK_TARGET_OS), solaris)
 832       ifneq ($(OPENJDK_TARGET_CPU), x86_64)
 833         LIBAWT_HEADLESS_REORDER := $(JDK_TOPDIR)/make/mapfiles/libawt_headless/reorder-$(OPENJDK_TARGET_CPU)
 834       endif
 835     endif
 836 
 837     $(eval $(call SetupNativeCompilation,BUILD_LIBAWT_HEADLESS, \
 838         LIBRARY := awt_headless, \
 839         OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 840         SRC := $(LIBAWT_HEADLESS_DIRS), \
 841         INCLUDE_FILES := $(LIBAWT_HEADLESS_FILES), \
 842         LANG := C, \
 843         OPTIMIZATION := LOW, \
 844         CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_HEADLESS_CFLAGS), \
 845         MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libawt_headless/mapfile-vers, \
 846         LDFLAGS := $(LDFLAGS_JDKLIB) \
 847             $(call SET_SHARED_LIBRARY_ORIGIN), \
 848         LDFLAGS_linux := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \
 849         LDFLAGS_solaris := $(call SET_SHARED_LIBRARY_ORIGIN,/..) \
 850             -R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) \
 851             -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR), \
 852         LDFLAGS_macosx := $(call SET_SHARED_LIBRARY_ORIGIN)., \
 853         REORDER := $(LIBAWT_HEADLESS_REORDER), \
 854         LDFLAGS_SUFFIX_linux := -ljvm -lawt -lm $(LIBDL) -ljava, \
 855         LDFLAGS_SUFFIX_aix := -ljvm -lawt -ljava,\
 856         LDFLAGS_SUFFIX_solaris := $(LIBDL) -ljvm -lawt -lm -ljava $(LIBCXX) -lc, \
 857         OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libawt_headless, \
 858         DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 859 
 860     $(BUILD_LIBAWT_HEADLESS): $(BUILD_LIBAWT)
 861 
 862     BUILD_LIBRARIES += $(BUILD_LIBAWT_HEADLESS)
 863 
 864   endif
 865 endif
 866 
 867 ##########################################################################################
 868 
 869 ifndef OPENJDK
 870   FONT_HEADERS := -I$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k
 871   BUILD_LIBFONTMANAGER_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libfontmanager/mapfile-vers
 872   LIBFONTMANAGER_EXCLUDE_FILES += freetypeScaler.c
 873 else
 874   FONT_HEADERS := $(FREETYPE_CFLAGS)
 875   BUILD_LIBFONTMANAGER_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libfontmanager/mapfile-vers.openjdk
 876   BUILD_LIBFONTMANAGER_FONTLIB := $(FREETYPE_LIBS)
 877 endif
 878 
 879 LIBFONTMANAGER_OPTIMIZATION := HIGH
 880 
 881 ifeq ($(OPENJDK_TARGET_OS), windows)
 882   LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \
 883       X11TextRenderer.c
 884   LIBFONTMANAGER_OPTIMIZATION := HIGHEST
 885 else ifeq ($(OPENJDK_TARGET_OS), macosx)
 886   LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \
 887       X11TextRenderer.c \
 888       fontpath.c \


 929         $(call SET_SHARED_LIBRARY_ORIGIN), \
 930     LDFLAGS_SUFFIX := $(BUILD_LIBFONTMANAGER_FONTLIB), \
 931     LDFLAGS_SUFFIX_linux := -lawt $(LIBM) $(LIBCXX) -ljava -ljvm -lc, \
 932     LDFLAGS_SUFFIX_solaris := -lawt -lawt_headless -lc $(LIBM) $(LIBCXX) -ljava -ljvm, \
 933     LDFLAGS_SUFFIX_aix := -lawt -lawt_headless $(LIBM) $(LIBCXX) -ljava -ljvm,\
 934     LDFLAGS_SUFFIX_macosx := -lawt $(LIBM) $(LIBCXX) -undefined dynamic_lookup \
 935         -ljava -ljvm, \
 936     LDFLAGS_SUFFIX_windows := $(WIN_JAVA_LIB) advapi32.lib user32.lib gdi32.lib \
 937         $(WIN_AWT_LIB), \
 938     VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
 939     RC_FLAGS := $(RC_FLAGS) \
 940         -D "JDK_FNAME=fontmanager.dll" \
 941         -D "JDK_INTERNAL_NAME=fontmanager" \
 942         -D "JDK_FTYPE=0x2L", \
 943     OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libfontmanager, \
 944     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 945 
 946 $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT)
 947 
 948 ifneq (, $(findstring $(OPENJDK_TARGET_OS), solaris aix))
 949   $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT_HEADLESS)
 950 endif
 951 
 952 BUILD_LIBRARIES += $(BUILD_LIBFONTMANAGER)
 953 
 954 ##########################################################################################
 955 
 956 ifndef OPENJDK
 957 
 958   #ifeq ($(OPENJDK_TARGET_OS), linux)
 959   #  ifeq ("$(CC_VER_MAJOR)", "3")
 960   #    OTHER_LDLIBS += -Wl,-Bstatic -lgcc_eh -Wl,-Bdynamic
 961   #  endif
 962   #endif
 963   #
 964   # The resulting size of the t2k lib file is (at least on linux) dependant on the order of
 965   # the input .o files. Because of this the new build will differ in size to the old build.
 966   BUILD_LIBT2K_CFLAGS_COMMON := -I$(JDK_TOPDIR)/src/share/native/sun/font \
 967       -I$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k \
 968       -I$(JDK_TOPDIR)/src/closed/share/native/sun/font \
 969       -I$(JDK_TOPDIR)/src/share/share/native/sun/font \


1171             LIBRARY := sunwjdga, \
1172             OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
1173             SRC := $(JDK_TOPDIR)/src/solaris/native/sun/jdga, \
1174             LANG := C, \
1175             OPTIMIZATION := LOW, \
1176             CFLAGS := $(CFLAGS_JDKLIB) \
1177                 -I$(JDK_TOPDIR)/src/share/javavm/export \
1178                 -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export \
1179                 -I$(OPENWIN_HOME)/include, \
1180             MAPFILE := $(SUNWJDGA_MAPFILE), \
1181             LDFLAGS := $(LDFLAGS_JDKLIB) \
1182                 $(call SET_SHARED_LIBRARY_ORIGIN), \
1183             LDFLAGS_SUFFIX := -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -ldga -lX11 $(LIBDL) -lc, \
1184             OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libsunwjdga, \
1185             DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
1186 
1187         BUILD_LIBRARIES += $(BUILD_LIBSUNWJDGA)
1188 
1189       endif
1190     endif






































































































1191   endif
1192 endif
1193 
1194 ##########################################################################################
1195 
1196 ifndef BUILD_HEADLESS_ONLY
1197   LIBSPLASHSCREEN_DIRS := \
1198     $(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg \
1199     $(JDK_TOPDIR)/src/share/native/sun/awt/libpng \
1200     $(JDK_TOPDIR)/src/share/native/sun/awt/splashscreen
1201 
1202   ifeq ($(USE_EXTERNAL_LIBGIF), true)
1203     GIFLIB_LDFLAGS := -lgif
1204   else
1205     LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/share/native/sun/awt/giflib
1206     GIFLIB_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/giflib
1207   endif
1208 
1209   ifneq ($(OPENJDK_TARGET_OS), macosx)
1210     LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen