1#/*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright IBM Corporation 2010.
6# Copyright 2000, 2010 Oracle and/or its affiliates.
7#
8# OpenOffice.org - a multi-platform office productivity suite
9#
10# This file is part of OpenOffice.org.
11#
12# OpenOffice.org is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Lesser General Public License version 3
14# only, as published by the Free Software Foundation.
15#
16# OpenOffice.org is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19# GNU Lesser General Public License version 3 for more details
20# (a copy is included in the LICENSE file that accompanied this code).
21#
22# You should have received a copy of the GNU Lesser General Public License
23# version 3 along with OpenOffice.org.  If not, see
24# <http://www.openoffice.org/license.html>
25# for a copy of the LGPLv3 License.
26#
27#************************************************************************/
28
29PRJ=..$/..
30PRJNAME=winaccessibility
31TARGET=UAccComIDL
32
33# --- Settings -----------------------------------------------------
34
35.INCLUDE :	settings.mk
36
37.IF "$(GUI)" == "WNT"
38
39# --- Targets ----------------------------------
40
41ALL : $(MISC)$/Accessible2	\
42	  $(MISC)$/AccessibleAction \
43	  $(MISC)$/AccessibleApplication \
44	  $(MISC)$/AccessibleComponent \
45	  $(MISC)$/AccessibleEditableText \
46	  $(MISC)$/AccessibleEventId \
47	  $(MISC)$/AccessibleHyperlink \
48	  $(MISC)$/AccessibleHypertext \
49	  $(MISC)$/AccessibleImage \
50	  $(MISC)$/AccessibleKeyBinding \
51	  $(MISC)$/AccessibleKeyStroke \
52	  $(MISC)$/AccessibleRelation \
53	  $(MISC)$/AccessibleRole \
54	  $(MISC)$/AccessibleStates \
55	  $(MISC)$/AccessibleTable \
56	  $(MISC)$/AccessibleText \
57	  $(MISC)$/AccessibleValue \
58	  $(MISC)$/Charset \
59	  $(MISC)$/defines \
60	  $(MISC)$/IA2CommonTypes \
61	  $(MISC)$/IA2TypeLibrary \
62	  $(MISC)$/UAccCOM
63
64MTL=midl.exe
65MTL_PROJ=
66
67SOURCE=Accessible2.idl
68SOURCE1=AccessibleAction.idl
69SOURCE2=AccessibleApplication.idl
70SOURCE3=AccessibleComponent.idl
71SOURCE4=AccessibleEditableText.idl
72SOURCE5=AccessibleEventId.idl
73SOURCE6=AccessibleHyperlink.idl
74SOURCE7=AccessibleHypertext.idl
75SOURCE8=AccessibleImage.idl
76SOURCE9=AccessibleKeyBinding.idl
77SOURCE10=AccessibleKeyStroke.idl
78SOURCE11=AccessibleRelation.idl
79SOURCE12=AccessibleRole.idl
80SOURCE13=AccessibleStates.idl
81SOURCE14=AccessibleTable.idl
82SOURCE15=AccessibleText.idl
83SOURCE16=AccessibleValue.idl
84SOURCE17=Charset.idl
85SOURCE18=defines.idl
86SOURCE19=IA2CommonTypes.idl
87SOURCE20=IA2TypeLibrary.idl
88SOURCE21=UAccCOM.idl
89
90MTL_SWITCHES=-tlb $(MISC)$/Accessible2.tlb -h $(MISC)$/Accessible2.h -iid $(MISC)$/Accessible2_i.c -proxy $(MISC)$/Accessible2_p.c -Oicf
91MTL_SWITCHES1=-tlb $(MISC)$/AccessibleAction.tlb -h $(MISC)$/AccessibleAction.h -iid $(MISC)$/AccessibleAction_i.c -proxy $(MISC)$/AccessibleAction_p.c -Oicf
92MTL_SWITCHES2=-tlb $(MISC)$/AccessibleApplication.tlb -h $(MISC)$/AccessibleApplication.h -iid $(MISC)$/AccessibleApplication_i.c -proxy $(MISC)$/AccessibleApplication_p.c -Oicf
93MTL_SWITCHES3=-tlb $(MISC)$/AccessibleComponent.tlb -h $(MISC)$/AccessibleComponent.h -iid $(MISC)$/AccessibleComponent_i.c -proxy $(MISC)$/AccessibleComponent_p.c -Oicf
94MTL_SWITCHES4=-tlb $(MISC)$/AccessibleEditableText.tlb -h $(MISC)$/AccessibleEditableText.h -iid $(MISC)$/AccessibleEditableText_i.c -proxy $(MISC)$/AccessibleEditableText_p.c -Oicf
95MTL_SWITCHES5=-tlb $(MISC)$/AccessibleEventId.tlb -h $(MISC)$/AccessibleEventId.h -iid $(MISC)$/AccessibleEventId_i.c -proxy $(MISC)$/AccessibleEventId_p.c -Oicf
96MTL_SWITCHES6=-tlb $(MISC)$/AccessibleHyperlink.tlb -h $(MISC)$/AccessibleHyperlink.h -iid $(MISC)$/AccessibleHyperlink_i.c -proxy $(MISC)$/AccessibleHyperlink_p.c -Oicf
97MTL_SWITCHES7=-tlb $(MISC)$/AccessibleHypertext.tlb -h $(MISC)$/AccessibleHypertext.h -iid $(MISC)$/AccessibleHypertext_i.c -proxy $(MISC)$/AccessibleHypertext_p.c -Oicf
98MTL_SWITCHES8=-tlb $(MISC)$/AccessibleImage.tlb -h $(MISC)$/AccessibleImage.h -iid $(MISC)$/AccessibleImage_i.c -proxy $(MISC)$/AccessibleImage_p.c -Oicf
99MTL_SWITCHES9=-tlb $(MISC)$/AccessibleKeyBinding.tlb -h $(MISC)$/AccessibleKeyBinding.h -iid $(MISC)$/AccessibleKeyBinding_i.c -proxy $(MISC)$/AccessibleKeyBinding_p.c -Oicf
100MTL_SWITCHES10=-tlb $(MISC)$/AccessibleKeyStroke.tlb -h $(MISC)$/AccessibleKeyStroke.h -iid $(MISC)$/AccessibleKeyStroke_i.c -proxy $(MISC)$/AccessibleKeyStroke_p.c -Oicf
101MTL_SWITCHES11=-tlb $(MISC)$/AccessibleRelation.tlb -h $(MISC)$/AccessibleRelation.h -iid $(MISC)$/AccessibleRelation_i.c -proxy $(MISC)$/AccessibleRelation_p.c -Oicf
102MTL_SWITCHES12=-tlb $(MISC)$/AccessibleRole.tlb -h $(MISC)$/AccessibleRole.h -iid $(MISC)$/AccessibleRole_i.c -proxy $(MISC)$/AccessibleRole_p.c -Oicf
103MTL_SWITCHES13=-tlb $(MISC)$/AccessibleStates.tlb -h $(MISC)$/AccessibleStates.h -iid $(MISC)$/AccessibleStates_i.c -proxy $(MISC)$/AccessibleStates_p.c -Oicf
104MTL_SWITCHES14=-tlb $(MISC)$/AccessibleTable.tlb -h $(MISC)$/AccessibleTable.h -iid $(MISC)$/AccessibleTable_i.c -proxy $(MISC)$/AccessibleTable_p.c -Oicf
105MTL_SWITCHES15=-tlb $(MISC)$/AccessibleText.tlb -h $(MISC)$/AccessibleText.h -iid $(MISC)$/AccessibleText_i.c -proxy $(MISC)$/AccessibleText_p.c -Oicf
106MTL_SWITCHES16=-tlb $(MISC)$/AccessibleValue.tlb -h $(MISC)$/AccessibleValue.h -iid $(MISC)$/AccessibleValue_i.c -proxy $(MISC)$/AccessibleValue_p.c -Oicf
107MTL_SWITCHES17=-tlb $(MISC)$/Charset.tlb -h $(MISC)$/Charset.h -iid $(MISC)$/Charset_i.c -proxy $(MISC)$/Charset_p.c -Oicf
108MTL_SWITCHES18=-tlb $(MISC)$/defines.tlb -h $(MISC)$/defines.h -iid $(MISC)$/defines_i.c -proxy $(MISC)$/defines_p.c -Oicf
109MTL_SWITCHES19=-tlb $(MISC)$/IA2CommonTypes.tlb -h $(MISC)$/IA2CommonTypes.h -iid $(MISC)$/IA2CommonTypes_i.c -proxy $(MISC)$/IA2CommonTypes_p.c -Oicf
110MTL_SWITCHES20=-tlb $(MISC)$/IA2TypeLibrary.tlb -h $(MISC)$/IA2TypeLibrary.h -iid $(MISC)$/IA2TypeLibrary_i.c -proxy $(MISC)$/IA2TypeLibrary_p.c -Oicf
111MTL_SWITCHES21=-tlb $(MISC)$/UAccCOM.tlb -h $(MISC)$/UAccCOM.h -iid $(MISC)$/UAccCOM_i.c -proxy $(MISC)$/UAccCOM_p.c -Oicf
112
113.IF "$(COM)"=="GCC"
114MTL_SWITCHES+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
115MTL_SWITCHES1+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
116MTL_SWITCHES2+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
117MTL_SWITCHES3+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
118MTL_SWITCHES4+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
119MTL_SWITCHES5+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
120MTL_SWITCHES6+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
121MTL_SWITCHES7+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
122MTL_SWITCHES8+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
123MTL_SWITCHES9+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
124MTL_SWITCHES10+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
125MTL_SWITCHES11+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
126MTL_SWITCHES12+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
127MTL_SWITCHES13+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
128MTL_SWITCHES14+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
129MTL_SWITCHES15+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
130MTL_SWITCHES16+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
131MTL_SWITCHES17+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
132MTL_SWITCHES18+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
133MTL_SWITCHES19+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
134MTL_SWITCHES20+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
135MTL_SWITCHES21+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
136
137$(MISC)$/Accessible2 : $(SOURCE)
138	$(MTL) $(MTL_SWITCHES) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE)
139$(MISC)$/AccessibleAction : $(SOURCE1)
140	$(MTL) $(MTL_SWITCHES1) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE1)
141$(MISC)$/AccessibleApplication : $(SOURCE2)
142	$(MTL) $(MTL_SWITCHES2) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE2)
143$(MISC)$/AccessibleComponent : $(SOURCE3)
144	$(MTL) $(MTL_SWITCHES3) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE3)
145$(MISC)$/AccessibleEditableText : $(SOURCE4)
146	$(MTL) $(MTL_SWITCHES4) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE4)
147$(MISC)$/AccessibleEventId : $(SOURCE5)
148	$(MTL) $(MTL_SWITCHES5) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE5)
149$(MISC)$/AccessibleHyperlink : $(SOURCE6)
150	$(MTL) $(MTL_SWITCHES6) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE6)
151$(MISC)$/AccessibleHypertext : $(SOURCE7)
152	$(MTL) $(MTL_SWITCHES7) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE7)
153$(MISC)$/AccessibleImage : $(SOURCE8)
154	$(MTL) $(MTL_SWITCHES8) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE8)
155$(MISC)$/AccessibleKeyBinding : $(SOURCE9)
156	$(MTL) $(MTL_SWITCHES9) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE9)
157$(MISC)$/AccessibleKeyStroke : $(SOURCE10)
158	$(MTL) $(MTL_SWITCHES10) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE10)
159$(MISC)$/AccessibleRelation : $(SOURCE11)
160	$(MTL) $(MTL_SWITCHES11) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE11)
161$(MISC)$/AccessibleRole : $(SOURCE12)
162	$(MTL) $(MTL_SWITCHES12) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE12)
163$(MISC)$/AccessibleStates : $(SOURCE13)
164	$(MTL) $(MTL_SWITCHES13) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE13)
165$(MISC)$/AccessibleTable : $(SOURCE14)
166	$(MTL) $(MTL_SWITCHES14) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE14)
167$(MISC)$/AccessibleText : $(SOURCE15)
168	$(MTL) $(MTL_SWITCHES15) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE15)
169$(MISC)$/AccessibleValue : $(SOURCE16)
170	$(MTL) $(MTL_SWITCHES16) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE16)
171$(MISC)$/Charset : $(SOURCE17)
172	$(MTL) $(MTL_SWITCHES17) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE17)
173$(MISC)$/defines : $(SOURCE18)
174	$(MTL) $(MTL_SWITCHES18) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE18)
175$(MISC)$/IA2CommonTypes : $(SOURCE19)
176	$(MTL) $(MTL_SWITCHES19) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE19)
177$(MISC)$/IA2TypeLibrary : $(SOURCE20)
178	$(MTL) $(MTL_SWITCHES20) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE20)
179$(MISC)$/UAccCOM : $(SOURCE21)
180	$(MTL) $(MTL_SWITCHES21) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE21)
181
182.ELSE
183
184$(MISC)$/Accessible2 : $(SOURCE)
185	$(WRAPCMD) $(MTL) $(MTL_SWITCHES) $(INCLUDE) $(SOURCE) && $(TOUCH) $@
186$(MISC)$/AccessibleAction : $(SOURCE1)
187	$(WRAPCMD) $(MTL) $(MTL_SWITCHES1) $(INCLUDE) $(SOURCE1) && $(TOUCH) $@
188$(MISC)$/AccessibleApplication : $(SOURCE2)
189	$(WRAPCMD) $(MTL) $(MTL_SWITCHES2) $(INCLUDE) $(SOURCE2) && $(TOUCH) $@
190$(MISC)$/AccessibleComponent : $(SOURCE3)
191	$(WRAPCMD) $(MTL) $(MTL_SWITCHES3) $(INCLUDE) $(SOURCE3) && $(TOUCH) $@
192$(MISC)$/AccessibleEditableText : $(SOURCE4)
193	$(WRAPCMD) $(MTL) $(MTL_SWITCHES4) $(INCLUDE) $(SOURCE4) && $(TOUCH) $@
194$(MISC)$/AccessibleEventId : $(SOURCE5)
195	$(WRAPCMD) $(MTL) $(MTL_SWITCHES5) $(INCLUDE) $(SOURCE5) && $(TOUCH) $@
196$(MISC)$/AccessibleHyperlink : $(SOURCE6)
197	$(WRAPCMD) $(MTL) $(MTL_SWITCHES6) $(INCLUDE) $(SOURCE6) && $(TOUCH) $@
198$(MISC)$/AccessibleHypertext : $(SOURCE7)
199	$(WRAPCMD) $(MTL) $(MTL_SWITCHES7) $(INCLUDE) $(SOURCE7) && $(TOUCH) $@
200$(MISC)$/AccessibleImage : $(SOURCE8)
201	$(WRAPCMD) $(MTL) $(MTL_SWITCHES8) $(INCLUDE) $(SOURCE8) && $(TOUCH) $@
202$(MISC)$/AccessibleKeyBinding : $(SOURCE9)
203	$(WRAPCMD) $(MTL) $(MTL_SWITCHES9) $(INCLUDE) $(SOURCE9) && $(TOUCH) $@
204$(MISC)$/AccessibleKeyStroke : $(SOURCE10)
205	$(WRAPCMD) $(MTL) $(MTL_SWITCHES10) $(INCLUDE) $(SOURCE10) && $(TOUCH) $@
206$(MISC)$/AccessibleRelation : $(SOURCE11)
207	$(WRAPCMD) $(MTL) $(MTL_SWITCHES11) $(INCLUDE) $(SOURCE11) && $(TOUCH) $@
208$(MISC)$/AccessibleRole : $(SOURCE12)
209	$(WRAPCMD) $(MTL) $(MTL_SWITCHES12) $(INCLUDE) $(SOURCE12) && $(TOUCH) $@
210$(MISC)$/AccessibleStates : $(SOURCE13)
211	$(WRAPCMD) $(MTL) $(MTL_SWITCHES13) $(INCLUDE) $(SOURCE13) && $(TOUCH) $@
212$(MISC)$/AccessibleTable : $(SOURCE14)
213	$(WRAPCMD) $(MTL) $(MTL_SWITCHES14) $(INCLUDE) $(SOURCE14) && $(TOUCH) $@
214$(MISC)$/AccessibleText : $(SOURCE15)
215	$(WRAPCMD) $(MTL) $(MTL_SWITCHES15) $(INCLUDE) $(SOURCE15) && $(TOUCH) $@
216$(MISC)$/AccessibleValue : $(SOURCE16)
217	$(WRAPCMD) $(MTL) $(MTL_SWITCHES16) $(INCLUDE) $(SOURCE16) && $(TOUCH) $@
218$(MISC)$/Charset : $(SOURCE17)
219	$(WRAPCMD) $(MTL) $(MTL_SWITCHES17) $(INCLUDE) $(SOURCE17) && $(TOUCH) $@
220$(MISC)$/defines : $(SOURCE18)
221	$(WRAPCMD) $(MTL) $(MTL_SWITCHES18) $(INCLUDE) $(SOURCE18) && $(TOUCH) $@
222$(MISC)$/IA2CommonTypes : $(SOURCE19)
223	$(WRAPCMD) $(MTL) $(MTL_SWITCHES19) $(INCLUDE) $(SOURCE19) && $(TOUCH) $@
224$(MISC)$/IA2TypeLibrary : $(SOURCE20)
225	$(WRAPCMD) $(MTL) $(MTL_SWITCHES20) $(INCLUDE) $(SOURCE20) && $(TOUCH) $@
226$(MISC)$/UAccCOM : $(SOURCE21)
227	$(WRAPCMD) $(MTL) $(MTL_SWITCHES21) $(INCLUDE) $(SOURCE21) && $(TOUCH) $@
228.ENDIF
229
230.ENDIF
231
232.INCLUDE : target.mk
233
234