author | serb |
Mon, 05 Dec 2011 17:11:57 +0400 | |
changeset 11103 | e156ce2c4a96 |
parent 7487 | 9b031d062ede |
permissions | -rw-r--r-- |
2 | 1 |
# |
2 |
# This makefile must be executed on a system with makedepend, such as Solaris. |
|
3 |
# In my copious amount of spare time, I hope to write a Java-based makedepend |
|
4 |
# to eliminate this dependency (no pun intended). TB |
|
5 |
||
6 |
BUILD_DIR = ../.. |
|
7 |
TOPDIR = ../../.. |
|
8 |
||
9 |
STUBDIR = WindowsSystemHeaderStubs |
|
10 |
BUILDSTUBDIR = BuildStubs |
|
11 |
||
12 |
SHARE_SRC = $(TOPDIR)/src/share |
|
13 |
SUN_SRC = $(SHARE_SRC)/native/sun |
|
14 |
COMP_SRC = $(SUN_SRC)/awt/alphacomposite |
|
15 |
DEBUG_SRC = $(SUN_SRC)/awt/debug |
|
16 |
IMG_SRC = $(SUN_SRC)/awt/image |
|
17 |
MEDIA_SRC = $(SUN_SRC)/awt/medialib |
|
18 |
J2D_SRC = $(SUN_SRC)/java2d |
|
19 |
J2D_FONT_SRC = $(SUN_SRC)/font |
|
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 | 22 |
LOOP_SRC = $(SUN_SRC)/java2d/loops |
23 |
PIPE_SRC = $(SUN_SRC)/java2d/pipe |
|
24 |
WINDOWS_SRC = $(TOPDIR)/src/windows |
|
25 |
SRC = $(WINDOWS_SRC)/native/sun/windows |
|
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 | 30 |
SRCDIRS = \ |
31 |
$(COMP_SRC) \ |
|
32 |
$(DEBUG_SRC) \ |
|
33 |
$(IMG_SRC) \ |
|
34 |
$(IMG_SRC)/cvutils \ |
|
35 |
$(IMG_SRC)/gif \ |
|
36 |
$(MEDIA_SRC) \ |
|
37 |
$(J2D_SRC) \ |
|
38 |
$(J2D_FONT_SRC) \ |
|
39 |
$(J2D_SRC)/opengl \ |
|
40 |
$(J2D_WINDOWS_SRC)/windows \ |
|
41 |
$(J2D_WINDOWS_SRC)/d3d \ |
|
42 |
$(J2D_WINDOWS_SRC)/opengl \ |
|
43 |
$(LOOP_SRC) \ |
|
44 |
$(PIPE_SRC) \ |
|
45 |
$(SRC) |
|
46 |
||
47 |
INCLUDES = \ |
|
48 |
-I$(STUBDIR) \ |
|
49 |
-I$(BUILDSTUBDIR) \ |
|
50 |
-I$(SHARE_SRC)/javavm/export \ |
|
51 |
-I$(WINDOWS_SRC)/javavm/export \ |
|
52 |
-I$(SHARE_SRC)/native/common \ |
|
53 |
-I$(WINDOWS_SRC)/native/common \ |
|
54 |
-I$(SUN_SRC)/dc/doe \ |
|
55 |
-I$(SUN_SRC)/dc/path \ |
|
56 |
-I$(COMP_SRC) \ |
|
57 |
-I$(DEBUG_SRC) \ |
|
58 |
-I$(IMG_SRC) \ |
|
59 |
-I$(IMG_SRC)/cvutils \ |
|
60 |
-I$(MEDIA_SRC) \ |
|
61 |
-I$(J2D_SRC) \ |
|
62 |
-I$(J2D_FONT_SRC) \ |
|
63 |
-I$(J2D_SRC)/opengl \ |
|
64 |
-I$(J2D_WINDOWS_SRC) \ |
|
65 |
-I$(J2D_WINDOWS_SRC)/windows \ |
|
66 |
-I$(J2D_WINDOWS_SRC)/d3d \ |
|
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 | 69 |
-I$(LOOP_SRC) \ |
70 |
-I$(PIPE_SRC) \ |
|
71 |
-I$(SRC) |
|
72 |
||
73 |
STUBFILES = \ |
|
74 |
$(STUBDIR)/ddraw.h \ |
|
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 | 77 |
$(STUBDIR)/Ole2.h \ |
78 |
$(STUBDIR)/Zmouse.h \ |
|
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 | 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 | 84 |
$(STUBDIR)/direct.h \ |
85 |
$(STUBDIR)/d3dcom.h \ |
|
86 |
$(STUBDIR)/imm.h \ |
|
87 |
$(STUBDIR)/ime.h \ |
|
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 | 90 |
$(STUBDIR)/mmsystem.h \ |
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 | 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 | 95 |
$(STUBDIR)/richole.h \ |
96 |
$(STUBDIR)/richedit.h \ |
|
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 | 99 |
$(STUBDIR)/shlobj.h \ |
100 |
$(STUBDIR)/tchar.h \ |
|
101 |
$(STUBDIR)/winbase.h \ |
|
102 |
$(STUBDIR)/windef.h \ |
|
103 |
$(STUBDIR)/windows.h \ |
|
104 |
$(STUBDIR)/Windows.h \ |
|
105 |
$(STUBDIR)/windowsx.h \ |
|
106 |
$(STUBDIR)/winspool.h \ |
|
107 |
$(STUBDIR)/winuser.h \ |
|
108 |
$(STUBDIR)/wtypes.h \ |
|
109 |
$(STUBDIR)/zmouse.h \ |
|
110 |
||
111 |
EXTRAFILES_c = \ |
|
112 |
img_colors.c |
|
113 |
||
114 |
default: dependencies |
|
115 |
||
116 |
include FILES_c_windows.gmk |
|
117 |
||
118 |
dependencies: |
|
119 |
rm -rf make.depend |
|
120 |
rm -rf make.tmp make.tmp2 make.tmp.bak |
|
121 |
rm -rf $(STUBDIR) $(BUILDSTUBDIR) depend.filelist |
|
122 |
for file in $(FILES_c) $(FILES_cpp) $(EXTRAFILES_c); do \ |
|
123 |
for dir in $(SRCDIRS); do \ |
|
124 |
if [ -f $$dir/$$file ]; then \ |
|
125 |
echo $$dir/$$file >>depend.filelist; \ |
|
126 |
fi; \ |
|
127 |
if [ -f $$dir/$${file}pp ]; then \ |
|
128 |
echo $$dir/$${file}pp >>depend.filelist; \ |
|
129 |
fi; \ |
|
130 |
done; \ |
|
131 |
done |
|
132 |
touch make.tmp |
|
133 |
mkdir $(STUBDIR) |
|
134 |
touch $(STUBFILES) |
|
135 |
mkdir $(BUILDSTUBDIR) |
|
136 |
gnumake -f Depend.mak classhdrstubs |
|
137 |
touch $(BUILDSTUBDIR)/awt_colors.h |
|
138 |
cat depend.filelist | xargs -n 100 makedepend \ |
|
139 |
-DWIN32 -D_X86X -Dx86 -DDEBUG -D_MSC_VER -DMLIB_NO_LIBSUNMATH \ |
|
140 |
-DUNICODE -D_UNICODE \ |
|
141 |
-a -f make.tmp -o.obj $(INCLUDES) |
|
142 |
fgrep .obj make.tmp | sed -f Depend.sed | sort -f -u | nawk -f CondenseRules.awk > make.depend |
|
143 |
rm -rf make.tmp make.tmp2 make.tmp.bak |
|
144 |
rm -rf $(STUBDIR) $(BUILDSTUBDIR) depend.filelist |
|
145 |
||
146 |
||
147 |
include FILES_export_windows.gmk |
|
148 |
||
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 | 153 |
java/lang/Integer.java |
154 |
||
155 |
FILES_java = $(FILES_export) $(FILES_export2) $(FILES_export3) \ |
|
156 |
$(EXTRAFILES_java) |
|
157 |
||
158 |
classhdrstubs: |
|
159 |
for file in `echo $(FILES_java) | \ |
|
160 |
tr ' ' '\n' | \ |
|
161 |
sed -e 'y/\//_/' -e 's/\.java/.h/'`; do \ |
|
162 |
echo "#include <jni.h>" > $(BUILDSTUBDIR)/$$file; \ |
|
163 |
done |