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_WINDOWS_SRC = $(WINDOWS_SRC)/native/sun/java2d
|
|
20 |
J2D_FONT_SRC = $(SUN_SRC)/font
|
|
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_WINDOWS_SRC)/windows \
|
|
36 |
$(J2D_WINDOWS_SRC)/d3d \
|
|
37 |
$(J2D_WINDOWS_SRC)/opengl \
|
|
38 |
$(LOOP_SRC) \
|
|
39 |
$(PIPE_SRC) \
|
|
40 |
$(SRC)
|
|
41 |
|
|
42 |
INCLUDES = \
|
|
43 |
-I$(STUBDIR) \
|
|
44 |
-I$(BUILDSTUBDIR) \
|
|
45 |
-I$(SHARE_SRC)/javavm/export \
|
|
46 |
-I$(WINDOWS_SRC)/javavm/export \
|
|
47 |
-I$(SHARE_SRC)/native/common \
|
|
48 |
-I$(WINDOWS_SRC)/native/common \
|
|
49 |
-I$(SUN_SRC)/dc/doe \
|
|
50 |
-I$(SUN_SRC)/dc/path \
|
|
51 |
-I$(COMP_SRC) \
|
|
52 |
-I$(DEBUG_SRC) \
|
|
53 |
-I$(IMG_SRC) \
|
|
54 |
-I$(IMG_SRC)/cvutils \
|
|
55 |
-I$(MEDIA_SRC) \
|
|
56 |
-I$(J2D_SRC) \
|
|
57 |
-I$(J2D_FONT_SRC) \
|
|
58 |
-I$(J2D_WINDOWS_SRC) \
|
|
59 |
-I$(J2D_WINDOWS_SRC)/windows \
|
|
60 |
-I$(J2D_WINDOWS_SRC)/d3d \
|
|
61 |
-I$(J2D_WINDOWS_SRC)/opengl \
|
|
62 |
-I$(LOOP_SRC) \
|
|
63 |
-I$(PIPE_SRC) \
|
|
64 |
-I$(SRC)
|
|
65 |
|
|
66 |
STUBFILES = \
|
|
67 |
$(STUBDIR)/ddraw.h \
|
|
68 |
$(STUBDIR)/Ole2.h \
|
|
69 |
$(STUBDIR)/d3d.h \
|
|
70 |
$(STUBDIR)/d3dx.h \
|
|
71 |
$(STUBDIR)/cderr.h \
|
|
72 |
$(STUBDIR)/commdlg.h \
|
|
73 |
$(STUBDIR)/direct.h \
|
|
74 |
$(STUBDIR)/imm.h \
|
|
75 |
$(STUBDIR)/ime.h \
|
|
76 |
$(STUBDIR)/io.h \
|
|
77 |
$(STUBDIR)/mmsystem.h \
|
|
78 |
$(STUBDIR)/new.h \
|
|
79 |
$(STUBDIR)/new \
|
|
80 |
$(STUBDIR)/shellapi.h \
|
|
81 |
$(STUBDIR)/shlobj.h \
|
|
82 |
$(STUBDIR)/tchar.h \
|
|
83 |
$(STUBDIR)/winbase.h \
|
|
84 |
$(STUBDIR)/windef.h \
|
|
85 |
$(STUBDIR)/windows.h \
|
|
86 |
$(STUBDIR)/winspool.h \
|
|
87 |
$(STUBDIR)/winuser.h \
|
|
88 |
$(STUBDIR)/wtypes.h
|
|
89 |
|
|
90 |
default: dependencies
|
|
91 |
|
|
92 |
FILES_cpp = jawt.cpp
|
|
93 |
|
|
94 |
dependencies:
|
|
95 |
rm -rf make.depend
|
|
96 |
rm -rf make.tmp make.tmp2 make.tmp.bak
|
|
97 |
rm -rf $(STUBDIR) $(BUILDSTUBDIR) depend.filelist
|
|
98 |
for file in $(FILES_c) $(FILES_cpp) $(EXTRAFILES_c); do \
|
|
99 |
for dir in $(SRCDIRS); do \
|
|
100 |
if [ -f $$dir/$$file ]; then \
|
|
101 |
echo $$dir/$$file >>depend.filelist; \
|
|
102 |
fi; \
|
|
103 |
if [ -f $$dir/$${file}pp ]; then \
|
|
104 |
echo $$dir/$${file}pp >>depend.filelist; \
|
|
105 |
fi; \
|
|
106 |
done; \
|
|
107 |
done
|
|
108 |
touch make.tmp
|
|
109 |
mkdir $(STUBDIR)
|
|
110 |
touch $(STUBFILES)
|
|
111 |
mkdir $(BUILDSTUBDIR)
|
|
112 |
gnumake -f Depend.mak classhdrstubs
|
|
113 |
cat depend.filelist | xargs -n 100 makedepend \
|
|
114 |
-DWIN32 -D_X86X -Dx86 -DDEBUG -D_MSC_VER -DMLIB_NO_LIBSUNMATH \
|
|
115 |
-a -f make.tmp -o.obj $(INCLUDES)
|
|
116 |
fgrep .obj make.tmp | sed -f Depend.sed | sort -u | nawk -f ../awt/CondenseRules.awk > make.depend
|
|
117 |
rm -rf make.tmp make.tmp2 make.tmp.bak
|
|
118 |
rm -rf $(STUBDIR) $(BUILDSTUBDIR) depend.filelist
|
|
119 |
|
|
120 |
|
|
121 |
include ../awt/FILES_export_windows.gmk
|
|
122 |
|
|
123 |
FILES_java = $(FILES_export) $(FILES_export2) $(FILES_export3)
|
|
124 |
|
|
125 |
classhdrstubs:
|
|
126 |
for file in `echo $(FILES_java) | \
|
|
127 |
tr ' ' '\n' | \
|
|
128 |
sed -e 'y/\//_/' -e 's/\.java/.h/'`; do \
|
|
129 |
echo "#include <jni.h>" > $(BUILDSTUBDIR)/$$file; \
|
|
130 |
done
|