13a700b0aSSteve Yin#**************************************************************
23a700b0aSSteve Yin#
33a700b0aSSteve Yin#  Licensed to the Apache Software Foundation (ASF) under one
43a700b0aSSteve Yin#  or more contributor license agreements.  See the NOTICE file
53a700b0aSSteve Yin#  distributed with this work for additional information
63a700b0aSSteve Yin#  regarding copyright ownership.  The ASF licenses this file
73a700b0aSSteve Yin#  to you under the Apache License, Version 2.0 (the
83a700b0aSSteve Yin#  "License"); you may not use this file except in compliance
93a700b0aSSteve Yin#  with the License.  You may obtain a copy of the License at
103a700b0aSSteve Yin#
113a700b0aSSteve Yin#    http://www.apache.org/licenses/LICENSE-2.0
123a700b0aSSteve Yin#
133a700b0aSSteve Yin#  Unless required by applicable law or agreed to in writing,
143a700b0aSSteve Yin#  software distributed under the License is distributed on an
153a700b0aSSteve Yin#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
163a700b0aSSteve Yin#  KIND, either express or implied.  See the License for the
173a700b0aSSteve Yin#  specific language governing permissions and limitations
183a700b0aSSteve Yin#  under the License.
193a700b0aSSteve Yin#
203a700b0aSSteve Yin#**************************************************************
215fdc4257SSteve Yin
225fdc4257SSteve YinPRJ=..$/..
235fdc4257SSteve YinPRJNAME=winaccessibility
245fdc4257SSteve YinTARGET=UAccComIDL
255fdc4257SSteve Yin
265fdc4257SSteve Yin# --- Settings -----------------------------------------------------
275fdc4257SSteve Yin
285fdc4257SSteve Yin.INCLUDE :	settings.mk
295fdc4257SSteve Yin
305fdc4257SSteve Yin.IF "$(GUI)" == "WNT"
315fdc4257SSteve Yin
325fdc4257SSteve Yin# --- Targets ----------------------------------
335fdc4257SSteve Yin
34*b0a7a3cfSSteve YinALL : $(MISC)$/ia2_api_all \
355fdc4257SSteve Yin	  $(MISC)$/AccessibleKeyBinding \
365fdc4257SSteve Yin	  $(MISC)$/AccessibleKeyStroke \
375fdc4257SSteve Yin	  $(MISC)$/Charset \
385fdc4257SSteve Yin	  $(MISC)$/defines \
395fdc4257SSteve Yin	  $(MISC)$/UAccCOM
405fdc4257SSteve Yin
415fdc4257SSteve YinMTL=midl.exe
425fdc4257SSteve YinMTL_PROJ=
435fdc4257SSteve Yin
44*b0a7a3cfSSteve YinSOURCE=AccessibleKeyBinding.idl
45*b0a7a3cfSSteve YinSOURCE1=AccessibleKeyStroke.idl
46*b0a7a3cfSSteve YinSOURCE2=Charset.idl
47*b0a7a3cfSSteve YinSOURCE3=defines.idl
48*b0a7a3cfSSteve YinSOURCE4=UAccCOM.idl
49*b0a7a3cfSSteve YinSOURCE5=ia2_api_all.idl
50*b0a7a3cfSSteve Yin
51*b0a7a3cfSSteve YinMTL_SWITCHES=-tlb $(MISC)$/AccessibleKeyBinding.tlb -h $(MISC)$/AccessibleKeyBinding.h -iid $(MISC)$/AccessibleKeyBinding_i.c -proxy $(MISC)$/AccessibleKeyBinding_p.c -Oicf
52*b0a7a3cfSSteve YinMTL_SWITCHES1=-tlb $(MISC)$/AccessibleKeyStroke.tlb -h $(MISC)$/AccessibleKeyStroke.h -iid $(MISC)$/AccessibleKeyStroke_i.c -proxy $(MISC)$/AccessibleKeyStroke_p.c -Oicf
53*b0a7a3cfSSteve YinMTL_SWITCHES2=-tlb $(MISC)$/Charset.tlb -h $(MISC)$/Charset.h -iid $(MISC)$/Charset_i.c -proxy $(MISC)$/Charset_p.c -Oicf
54*b0a7a3cfSSteve YinMTL_SWITCHES3=-tlb $(MISC)$/defines.tlb -h $(MISC)$/defines.h -iid $(MISC)$/defines_i.c -proxy $(MISC)$/defines_p.c -Oicf
55*b0a7a3cfSSteve YinMTL_SWITCHES4=-tlb $(MISC)$/UAccCOM.tlb -h $(MISC)$/UAccCOM.h -iid $(MISC)$/UAccCOM_i.c -proxy $(MISC)$/UAccCOM_p.c -Oicf
56*b0a7a3cfSSteve YinMTL_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
575fdc4257SSteve Yin
585fdc4257SSteve Yin.IF "$(COM)"=="GCC"
59*b0a7a3cfSSteve Yin
60*b0a7a3cfSSteve YinMTL_SWITCHESCOMMON=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)"
61*b0a7a3cfSSteve YinMTL_SWITCHES+=MTL_SWITCHESCOMMON
62*b0a7a3cfSSteve YinMTL_SWITCHES1+=MTL_SWITCHESCOMMON
63*b0a7a3cfSSteve YinMTL_SWITCHES2+=MTL_SWITCHESCOMMON
64*b0a7a3cfSSteve YinMTL_SWITCHES3+=MTL_SWITCHESCOMMON
65*b0a7a3cfSSteve YinMTL_SWITCHES4+=MTL_SWITCHESCOMMON
66*b0a7a3cfSSteve YinMTL_SWITCHES5+=MTL_SWITCHESCOMMON
67*b0a7a3cfSSteve Yin
68*b0a7a3cfSSteve Yin$(MISC)$/AccessibleKeyBinding : $(SOURCE)
695fdc4257SSteve Yin	$(MTL) $(MTL_SWITCHES) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE)
70*b0a7a3cfSSteve Yin$(MISC)$/AccessibleKeyStroke : $(SOURCE1)
715fdc4257SSteve Yin	$(MTL) $(MTL_SWITCHES1) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE1)
72*b0a7a3cfSSteve Yin$(MISC)$/Charset : $(SOURCE2)
73*b0a7a3cfSSteve Yin	$(MTL) $(MTL_SWITCHES2) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE2)
74*b0a7a3cfSSteve Yin$(MISC)$/defines : $(SOURCE3)
75*b0a7a3cfSSteve Yin	$(MTL) $(MTL_SWITCHES3) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE3)
76*b0a7a3cfSSteve Yin$(MISC)$/UAccCOM : $(SOURCE4)
77*b0a7a3cfSSteve Yin	$(MTL) $(MTL_SWITCHES4) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE4)
78*b0a7a3cfSSteve Yin$(MISC)$/ia2_api_all : $(SOURCE5)
79*b0a7a3cfSSteve Yin	$(MTL) $(MTL_SWITCHES5) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE5)
805fdc4257SSteve Yin
815fdc4257SSteve Yin.ELSE
825fdc4257SSteve Yin
83*b0a7a3cfSSteve Yin
84*b0a7a3cfSSteve Yin$(MISC)$/AccessibleKeyBinding : $(SOURCE)
855fdc4257SSteve Yin	$(WRAPCMD) $(MTL) $(MTL_SWITCHES) $(INCLUDE) $(SOURCE) && $(TOUCH) $@
86*b0a7a3cfSSteve Yin$(MISC)$/AccessibleKeyStroke : $(SOURCE1)
875fdc4257SSteve Yin	$(WRAPCMD) $(MTL) $(MTL_SWITCHES1) $(INCLUDE) $(SOURCE1) && $(TOUCH) $@
88*b0a7a3cfSSteve Yin$(MISC)$/Charset : $(SOURCE2)
895fdc4257SSteve Yin	$(WRAPCMD) $(MTL) $(MTL_SWITCHES2) $(INCLUDE) $(SOURCE2) && $(TOUCH) $@
90*b0a7a3cfSSteve Yin$(MISC)$/defines : $(SOURCE3)
915fdc4257SSteve Yin	$(WRAPCMD) $(MTL) $(MTL_SWITCHES3) $(INCLUDE) $(SOURCE3) && $(TOUCH) $@
92*b0a7a3cfSSteve Yin$(MISC)$/UAccCOM : $(SOURCE4)
935fdc4257SSteve Yin	$(WRAPCMD) $(MTL) $(MTL_SWITCHES4) $(INCLUDE) $(SOURCE4) && $(TOUCH) $@
94*b0a7a3cfSSteve Yin$(MISC)$/ia2_api_all : $(SOURCE5)
955fdc4257SSteve Yin	$(WRAPCMD) $(MTL) $(MTL_SWITCHES5) $(INCLUDE) $(SOURCE5) && $(TOUCH) $@
965fdc4257SSteve Yin.ENDIF
975fdc4257SSteve Yin
985fdc4257SSteve Yin.ENDIF
995fdc4257SSteve Yin
1005fdc4257SSteve Yin.INCLUDE : target.mk
1015fdc4257SSteve Yin
102