1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22PRJ=..$/..
23PRJNAME=winaccessibility
24TARGET=UAccComIDL
25
26# --- Settings -----------------------------------------------------
27
28.INCLUDE :	settings.mk
29
30.IF "$(GUI)" == "WNT"
31
32# --- Targets ----------------------------------
33
34ALL : $(MISC)$/ia2_api_all \
35	  $(MISC)$/AccessibleKeyBinding \
36	  $(MISC)$/AccessibleKeyStroke \
37	  $(MISC)$/Charset \
38	  $(MISC)$/defines \
39	  $(MISC)$/UAccCOM
40
41MTL=midl.exe
42MTL_PROJ=
43
44SOURCE=AccessibleKeyBinding.idl
45SOURCE1=AccessibleKeyStroke.idl
46SOURCE2=Charset.idl
47SOURCE3=defines.idl
48SOURCE4=UAccCOM.idl
49SOURCE5=ia2_api_all.idl
50
51MTL_SWITCHES=-tlb $(MISC)$/AccessibleKeyBinding.tlb -h $(MISC)$/AccessibleKeyBinding.h -iid $(MISC)$/AccessibleKeyBinding_i.c -proxy $(MISC)$/AccessibleKeyBinding_p.c -Oicf
52MTL_SWITCHES1=-tlb $(MISC)$/AccessibleKeyStroke.tlb -h $(MISC)$/AccessibleKeyStroke.h -iid $(MISC)$/AccessibleKeyStroke_i.c -proxy $(MISC)$/AccessibleKeyStroke_p.c -Oicf
53MTL_SWITCHES2=-tlb $(MISC)$/Charset.tlb -h $(MISC)$/Charset.h -iid $(MISC)$/Charset_i.c -proxy $(MISC)$/Charset_p.c -Oicf
54MTL_SWITCHES3=-tlb $(MISC)$/defines.tlb -h $(MISC)$/defines.h -iid $(MISC)$/defines_i.c -proxy $(MISC)$/defines_p.c -Oicf
55MTL_SWITCHES4=-tlb $(MISC)$/UAccCOM.tlb -h $(MISC)$/UAccCOM.h -iid $(MISC)$/UAccCOM_i.c -proxy $(MISC)$/UAccCOM_p.c -Oicf
56MTL_SWITCHES5=-tlb $(MISC)$/ia2_api_all.tlb -h $(MISC)$/ia2_api_all.h -iid $(MISC)$/ia2_api_all_i.c -proxy $(MISC)$/ia2_api_all_p.c -Oicf
57
58.IF "$(COM)"=="GCC"
59
60MTL_SWITCHESCOMMON=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
61MTL_SWITCHES+=MTL_SWITCHESCOMMON
62MTL_SWITCHES1+=MTL_SWITCHESCOMMON
63MTL_SWITCHES2+=MTL_SWITCHESCOMMON
64MTL_SWITCHES3+=MTL_SWITCHESCOMMON
65MTL_SWITCHES4+=MTL_SWITCHESCOMMON
66MTL_SWITCHES5+=MTL_SWITCHESCOMMON
67
68$(MISC)$/AccessibleKeyBinding : $(SOURCE)
69	$(MTL) $(MTL_SWITCHES) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE)
70$(MISC)$/AccessibleKeyStroke : $(SOURCE1)
71	$(MTL) $(MTL_SWITCHES1) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE1)
72$(MISC)$/Charset : $(SOURCE2)
73	$(MTL) $(MTL_SWITCHES2) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE2)
74$(MISC)$/defines : $(SOURCE3)
75	$(MTL) $(MTL_SWITCHES3) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE3)
76$(MISC)$/UAccCOM : $(SOURCE4)
77	$(MTL) $(MTL_SWITCHES4) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE4)
78$(MISC)$/ia2_api_all : $(SOURCE5)
79	$(MTL) $(MTL_SWITCHES5) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE5)
80
81.ELSE
82
83
84$(MISC)$/AccessibleKeyBinding : $(SOURCE)
85	$(WRAPCMD) $(MTL) $(MTL_SWITCHES) $(INCLUDE) $(SOURCE) && $(TOUCH) $@
86$(MISC)$/AccessibleKeyStroke : $(SOURCE1)
87	$(WRAPCMD) $(MTL) $(MTL_SWITCHES1) $(INCLUDE) $(SOURCE1) && $(TOUCH) $@
88$(MISC)$/Charset : $(SOURCE2)
89	$(WRAPCMD) $(MTL) $(MTL_SWITCHES2) $(INCLUDE) $(SOURCE2) && $(TOUCH) $@
90$(MISC)$/defines : $(SOURCE3)
91	$(WRAPCMD) $(MTL) $(MTL_SWITCHES3) $(INCLUDE) $(SOURCE3) && $(TOUCH) $@
92$(MISC)$/UAccCOM : $(SOURCE4)
93	$(WRAPCMD) $(MTL) $(MTL_SWITCHES4) $(INCLUDE) $(SOURCE4) && $(TOUCH) $@
94$(MISC)$/ia2_api_all : $(SOURCE5)
95	$(WRAPCMD) $(MTL) $(MTL_SWITCHES5) $(INCLUDE) $(SOURCE5) && $(TOUCH) $@
96.ENDIF
97
98.ENDIF
99
100.INCLUDE : target.mk
101
102