jdk/make/sun/awt/Depend.mak
author serb
Mon, 05 Dec 2011 17:11:57 +0400
changeset 11103 e156ce2c4a96
parent 7487 9b031d062ede
permissions -rw-r--r--
7115400: jdk 8 awt-gate build fails in headless toolkit on solaris. Reviewed-by: prr, art, bae
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
# This makefile must be executed on a system with makedepend, such as Solaris.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# In my copious amount of spare time, I hope to write a Java-based makedepend
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
# to eliminate this dependency (no pun intended). TB
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
BUILD_DIR = ../..
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
TOPDIR   = ../../..
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
STUBDIR = WindowsSystemHeaderStubs
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
BUILDSTUBDIR = BuildStubs
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
SHARE_SRC = $(TOPDIR)/src/share
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
SUN_SRC = $(SHARE_SRC)/native/sun
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
COMP_SRC = $(SUN_SRC)/awt/alphacomposite
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
DEBUG_SRC = $(SUN_SRC)/awt/debug
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
IMG_SRC = $(SUN_SRC)/awt/image
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
MEDIA_SRC = $(SUN_SRC)/awt/medialib
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
J2D_SRC  = $(SUN_SRC)/java2d
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
J2D_FONT_SRC = $(SUN_SRC)/font
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
J2D_WINDOWS_SRC = $(WINDOWS_SRC)/native/sun/java2d
7487
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
    21
AWT_WINDOWS_SRC = $(WINDOWS_SRC)/native/sun/awt
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
LOOP_SRC = $(SUN_SRC)/java2d/loops
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
PIPE_SRC = $(SUN_SRC)/java2d/pipe
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
WINDOWS_SRC = $(TOPDIR)/src/windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
SRC = $(WINDOWS_SRC)/native/sun/windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
7487
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
    27
# ensure consistent sort order
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
    28
LC_ALL:= C
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
    29
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
SRCDIRS = \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
	$(COMP_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
	$(DEBUG_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
	$(IMG_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
	$(IMG_SRC)/cvutils \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
	$(IMG_SRC)/gif \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
	$(MEDIA_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
	$(J2D_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
	$(J2D_FONT_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
	$(J2D_SRC)/opengl \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
	$(J2D_WINDOWS_SRC)/windows \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
	$(J2D_WINDOWS_SRC)/d3d \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
	$(J2D_WINDOWS_SRC)/opengl \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
	$(LOOP_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
	$(PIPE_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
	$(SRC)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
INCLUDES = \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
	   -I$(STUBDIR) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
	   -I$(BUILDSTUBDIR) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
	   -I$(SHARE_SRC)/javavm/export \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
	   -I$(WINDOWS_SRC)/javavm/export \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
	   -I$(SHARE_SRC)/native/common \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
	   -I$(WINDOWS_SRC)/native/common \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
	   -I$(SUN_SRC)/dc/doe \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
	   -I$(SUN_SRC)/dc/path \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
	   -I$(COMP_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
	   -I$(DEBUG_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
	   -I$(IMG_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
	   -I$(IMG_SRC)/cvutils \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
	   -I$(MEDIA_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
	   -I$(J2D_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
	   -I$(J2D_FONT_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
	   -I$(J2D_SRC)/opengl \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
	   -I$(J2D_WINDOWS_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
	   -I$(J2D_WINDOWS_SRC)/windows \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
	   -I$(J2D_WINDOWS_SRC)/d3d \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
	   -I$(J2D_WINDOWS_SRC)/opengl \
7487
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
    68
	   -I$(AWT_WINDOWS_SRC) \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
	   -I$(LOOP_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
	   -I$(PIPE_SRC) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
	   -I$(SRC)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
STUBFILES = \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
	$(STUBDIR)/ddraw.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
	$(STUBDIR)/d3d.h \
7487
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
    76
	$(STUBDIR)/d3d9.h \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
	$(STUBDIR)/Ole2.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
	$(STUBDIR)/Zmouse.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
	$(STUBDIR)/cderr.h \
7487
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
    80
	$(STUBDIR)/comdef.h \
2472
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 2
diff changeset
    81
	$(STUBDIR)/commctrl.h \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
	$(STUBDIR)/commdlg.h \
7487
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
    83
	$(STUBDIR)/comutil.h \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
	$(STUBDIR)/direct.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
	$(STUBDIR)/d3dcom.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
	$(STUBDIR)/imm.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
	$(STUBDIR)/ime.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
	$(STUBDIR)/io.h \
7487
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
    89
	$(STUBDIR)/map \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
	$(STUBDIR)/mmsystem.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
	$(STUBDIR)/new.h \
7487
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
    92
	$(STUBDIR)/new \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
	$(STUBDIR)/ole2.h \
7487
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
    94
	$(STUBDIR)/process.h \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
	$(STUBDIR)/richole.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
	$(STUBDIR)/richedit.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
	$(STUBDIR)/shellapi.h \
7487
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
    98
	$(STUBDIR)/shlwapi.h \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
	$(STUBDIR)/shlobj.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
	$(STUBDIR)/tchar.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
	$(STUBDIR)/winbase.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
	$(STUBDIR)/windef.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
	$(STUBDIR)/windows.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
	$(STUBDIR)/Windows.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
	$(STUBDIR)/windowsx.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
	$(STUBDIR)/winspool.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
	$(STUBDIR)/winuser.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
	$(STUBDIR)/wtypes.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
	$(STUBDIR)/zmouse.h \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
EXTRAFILES_c = \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
	img_colors.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
default: dependencies
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
include FILES_c_windows.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
dependencies:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
	rm -rf make.depend
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
	rm -rf make.tmp make.tmp2 make.tmp.bak
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
	rm -rf $(STUBDIR) $(BUILDSTUBDIR) depend.filelist
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
	for file in $(FILES_c) $(FILES_cpp) $(EXTRAFILES_c); do \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
	    for dir in $(SRCDIRS); do \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
	    	if [ -f $$dir/$$file ]; then \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
		    echo $$dir/$$file >>depend.filelist; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
		fi; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
	    	if [ -f $$dir/$${file}pp ]; then \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
		    echo $$dir/$${file}pp >>depend.filelist; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
		fi; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
	    done; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
	done
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
	touch make.tmp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
	mkdir $(STUBDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
	touch $(STUBFILES)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
	mkdir $(BUILDSTUBDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
	gnumake -f Depend.mak classhdrstubs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
	touch $(BUILDSTUBDIR)/awt_colors.h
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
	cat depend.filelist | xargs -n 100 makedepend \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
		-DWIN32 -D_X86X -Dx86 -DDEBUG -D_MSC_VER -DMLIB_NO_LIBSUNMATH \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
                -DUNICODE -D_UNICODE \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
		-a -f make.tmp -o.obj $(INCLUDES)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
	fgrep .obj make.tmp | sed -f Depend.sed | sort -f -u | nawk -f CondenseRules.awk > make.depend
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
	rm -rf make.tmp make.tmp2 make.tmp.bak
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
	rm -rf $(STUBDIR) $(BUILDSTUBDIR) depend.filelist
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
include FILES_export_windows.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
EXTRAFILES_java = \
7487
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
   150
        sun/java2d/opengl/OGLContext/OGLContextCaps.java \
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
   151
        sun/java2d/d3d/D3DPaints/MultiGradient.java \
9b031d062ede 6775317: Improve performance of non-AA transformed rectangles and single wide lines in software pipelines
flar
parents: 2472
diff changeset
   152
        sun/java2d/d3d/D3DContext/D3DContextCaps.java \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
	java/lang/Integer.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
FILES_java = $(FILES_export) $(FILES_export2) $(FILES_export3) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
	$(EXTRAFILES_java)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
classhdrstubs:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
	for file in `echo $(FILES_java) | \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
		      tr ' ' '\n' | \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
		      sed -e 'y/\//_/' -e 's/\.java/.h/'`; do \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
	    echo "#include <jni.h>" > $(BUILDSTUBDIR)/$$file; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
	done