author | andrew |
Wed, 17 Jun 2009 21:13:04 +0100 | |
changeset 2955 | 9327f093140c |
parent 2472 | b7aba00cabb6 |
child 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 |
|
21 |
LOOP_SRC = $(SUN_SRC)/java2d/loops |
|
22 |
PIPE_SRC = $(SUN_SRC)/java2d/pipe |
|
23 |
WINDOWS_SRC = $(TOPDIR)/src/windows |
|
24 |
SRC = $(WINDOWS_SRC)/native/sun/windows |
|
25 |
||
26 |
SRCDIRS = \ |
|
27 |
$(COMP_SRC) \ |
|
28 |
$(DEBUG_SRC) \ |
|
29 |
$(IMG_SRC) \ |
|
30 |
$(IMG_SRC)/cvutils \ |
|
31 |
$(IMG_SRC)/gif \ |
|
32 |
$(MEDIA_SRC) \ |
|
33 |
$(J2D_SRC) \ |
|
34 |
$(J2D_FONT_SRC) \ |
|
35 |
$(J2D_SRC)/opengl \ |
|
36 |
$(J2D_WINDOWS_SRC)/windows \ |
|
37 |
$(J2D_WINDOWS_SRC)/d3d \ |
|
38 |
$(J2D_WINDOWS_SRC)/opengl \ |
|
39 |
$(LOOP_SRC) \ |
|
40 |
$(PIPE_SRC) \ |
|
41 |
$(SRC) |
|
42 |
||
43 |
INCLUDES = \ |
|
44 |
-I$(STUBDIR) \ |
|
45 |
-I$(BUILDSTUBDIR) \ |
|
46 |
-I$(SHARE_SRC)/javavm/export \ |
|
47 |
-I$(WINDOWS_SRC)/javavm/export \ |
|
48 |
-I$(SHARE_SRC)/native/common \ |
|
49 |
-I$(WINDOWS_SRC)/native/common \ |
|
50 |
-I$(SUN_SRC)/dc/doe \ |
|
51 |
-I$(SUN_SRC)/dc/path \ |
|
52 |
-I$(COMP_SRC) \ |
|
53 |
-I$(DEBUG_SRC) \ |
|
54 |
-I$(IMG_SRC) \ |
|
55 |
-I$(IMG_SRC)/cvutils \ |
|
56 |
-I$(MEDIA_SRC) \ |
|
57 |
-I$(J2D_SRC) \ |
|
58 |
-I$(J2D_FONT_SRC) \ |
|
59 |
-I$(J2D_SRC)/opengl \ |
|
60 |
-I$(J2D_WINDOWS_SRC) \ |
|
61 |
-I$(J2D_WINDOWS_SRC)/windows \ |
|
62 |
-I$(J2D_WINDOWS_SRC)/d3d \ |
|
63 |
-I$(J2D_WINDOWS_SRC)/opengl \ |
|
64 |
-I$(LOOP_SRC) \ |
|
65 |
-I$(PIPE_SRC) \ |
|
66 |
-I$(SRC) |
|
67 |
||
68 |
STUBFILES = \ |
|
69 |
$(STUBDIR)/ddraw.h \ |
|
70 |
$(STUBDIR)/d3d.h \ |
|
71 |
$(STUBDIR)/Ole2.h \ |
|
72 |
$(STUBDIR)/Zmouse.h \ |
|
73 |
$(STUBDIR)/cderr.h \ |
|
2472
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
2
diff
changeset
|
74 |
$(STUBDIR)/commctrl.h \ |
2 | 75 |
$(STUBDIR)/commdlg.h \ |
76 |
$(STUBDIR)/direct.h \ |
|
77 |
$(STUBDIR)/d3dcom.h \ |
|
78 |
$(STUBDIR)/imm.h \ |
|
79 |
$(STUBDIR)/ime.h \ |
|
80 |
$(STUBDIR)/io.h \ |
|
81 |
$(STUBDIR)/mmsystem.h \ |
|
82 |
$(STUBDIR)/new.h \ |
|
83 |
$(STUBDIR)/ole2.h \ |
|
84 |
$(STUBDIR)/richole.h \ |
|
85 |
$(STUBDIR)/richedit.h \ |
|
86 |
$(STUBDIR)/shellapi.h \ |
|
87 |
$(STUBDIR)/shlobj.h \ |
|
88 |
$(STUBDIR)/tchar.h \ |
|
89 |
$(STUBDIR)/winbase.h \ |
|
90 |
$(STUBDIR)/windef.h \ |
|
91 |
$(STUBDIR)/windows.h \ |
|
92 |
$(STUBDIR)/Windows.h \ |
|
93 |
$(STUBDIR)/windowsx.h \ |
|
94 |
$(STUBDIR)/winspool.h \ |
|
95 |
$(STUBDIR)/winuser.h \ |
|
96 |
$(STUBDIR)/wtypes.h \ |
|
97 |
$(STUBDIR)/zmouse.h \ |
|
98 |
||
99 |
EXTRAFILES_c = \ |
|
100 |
img_colors.c |
|
101 |
||
102 |
default: dependencies |
|
103 |
||
104 |
include FILES_c_windows.gmk |
|
105 |
||
106 |
dependencies: |
|
107 |
rm -rf make.depend |
|
108 |
rm -rf make.tmp make.tmp2 make.tmp.bak |
|
109 |
rm -rf $(STUBDIR) $(BUILDSTUBDIR) depend.filelist |
|
110 |
for file in $(FILES_c) $(FILES_cpp) $(EXTRAFILES_c); do \ |
|
111 |
for dir in $(SRCDIRS); do \ |
|
112 |
if [ -f $$dir/$$file ]; then \ |
|
113 |
echo $$dir/$$file >>depend.filelist; \ |
|
114 |
fi; \ |
|
115 |
if [ -f $$dir/$${file}pp ]; then \ |
|
116 |
echo $$dir/$${file}pp >>depend.filelist; \ |
|
117 |
fi; \ |
|
118 |
done; \ |
|
119 |
done |
|
120 |
touch make.tmp |
|
121 |
mkdir $(STUBDIR) |
|
122 |
touch $(STUBFILES) |
|
123 |
mkdir $(BUILDSTUBDIR) |
|
124 |
gnumake -f Depend.mak classhdrstubs |
|
125 |
touch $(BUILDSTUBDIR)/awt_colors.h |
|
126 |
cat depend.filelist | xargs -n 100 makedepend \ |
|
127 |
-DWIN32 -D_X86X -Dx86 -DDEBUG -D_MSC_VER -DMLIB_NO_LIBSUNMATH \ |
|
128 |
-DUNICODE -D_UNICODE \ |
|
129 |
-a -f make.tmp -o.obj $(INCLUDES) |
|
130 |
fgrep .obj make.tmp | sed -f Depend.sed | sort -f -u | nawk -f CondenseRules.awk > make.depend |
|
131 |
rm -rf make.tmp make.tmp2 make.tmp.bak |
|
132 |
rm -rf $(STUBDIR) $(BUILDSTUBDIR) depend.filelist |
|
133 |
||
134 |
||
135 |
include FILES_export_windows.gmk |
|
136 |
||
137 |
EXTRAFILES_java = \ |
|
138 |
java/lang/Integer.java |
|
139 |
||
140 |
FILES_java = $(FILES_export) $(FILES_export2) $(FILES_export3) \ |
|
141 |
$(EXTRAFILES_java) |
|
142 |
||
143 |
classhdrstubs: |
|
144 |
for file in `echo $(FILES_java) | \ |
|
145 |
tr ' ' '\n' | \ |
|
146 |
sed -e 'y/\//_/' -e 's/\.java/.h/'`; do \ |
|
147 |
echo "#include <jni.h>" > $(BUILDSTUBDIR)/$$file; \ |
|
148 |
done |