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=UAccCOM
25
26# --- Settings -----------------------------------------------------
27.IF "$(GUI)"!="WNT" || "$(DISABLE_ATL)"!=""
28all:
29	@echo "$TARGET will not be built because GUI='$(GUI)' and DISABLE_ATL='$(DISABLE_ATL)'"
30.ELSE
31
32PROF_EDITION=TRUE
33.INCLUDE :	settings.mk
34
35VERSIONOBJ=
36LIBTARGET=NO
37USE_DEFFILE=YES
38UWINAPILIB=
39
40INCPRE+=$(foreach,i,$(ATL_INCLUDE) -I$(i)) \
41    -I$(MISC) \
42
43CFLAGS+=-D_UNICODE -DUNICODE
44
45# --- Files --------------------------------------------------------
46.IF "$(PRODUCT)"!=""
47RC+=-DPRODUCT
48.ENDIF
49
50RCFILES=\
51        $(TARGET).rc
52#RCDEPN=$(MISC)$/envsettings.h
53
54SLOFILES=\
55	$(SLO)$/AccAction.obj \
56	$(SLO)$/AccActionBase.obj \
57	$(SLO)$/AccComponent.obj \
58	$(SLO)$/AccComponentBase.obj \
59	$(SLO)$/AccEditableText.obj \
60	$(SLO)$/AccHyperLink.obj \
61	$(SLO)$/AccHypertext.obj \
62	$(SLO)$/AccImage.obj \
63	$(SLO)$/AccRelation.obj \
64	$(SLO)$/AccText.obj \
65	$(SLO)$/AccValue.obj \
66	$(SLO)$/EnumVariant.obj \
67	$(SLO)$/StdAfx.obj \
68	$(SLO)$/UAccCOM.obj \
69	$(SLO)$/UNOXWrapper.obj \
70	$(SLO)$/AccTable.obj \
71	$(SLO)$/AccTextBase.obj \
72	$(SLO)$/MAccessible.obj \
73	$(SLO)$/CheckEnableAccessible.obj \
74
75EXCEPTIONSFILES= \
76	$(SLO)$/AccAction.obj \
77	$(SLO)$/AccActionBase.obj \
78	$(SLO)$/AccComponent.obj \
79	$(SLO)$/AccComponentBase.obj \
80	$(SLO)$/AccEditableText.obj \
81	$(SLO)$/AccHyperLink.obj \
82	$(SLO)$/AccHypertext.obj \
83	$(SLO)$/AccImage.obj \
84	$(SLO)$/AccRelation.obj \
85	$(SLO)$/AccText.obj \
86	$(SLO)$/AccValue.obj \
87	$(SLO)$/EnumVariant.obj \
88	$(SLO)$/StdAfx.obj \
89	$(SLO)$/UAccCOM.obj \
90	$(SLO)$/UNOXWrapper.obj \
91	$(SLO)$/AccTable.obj \
92	$(SLO)$/AccTextBase.obj \
93	$(SLO)$/MAccessible.obj \
94
95SHL1TARGET=$(TARGET)
96SHL1STDLIBS=\
97    $(ICUUCLIB)\
98    $(ICUINLIB)\
99    $(CPPULIB)\
100    $(VCLLIB) \
101	$(SALLIB)\
102	$(KERNEL32LIB) \
103	$(USER32LIB) \
104	$(ADVAPI32LIB) \
105	$(OLE32LIB) \
106	$(OLEAUT32LIB) \
107	$(SHLWAPILIB) \
108	$(UUIDLIB) \
109	oleacc.lib
110
111.IF "$(COM)"!="GCC"
112.IF "$(CCNUMVER)" > "001300000000"
113    SHL1STDLIBS+= $(ATL_LIB)$/atls.lib
114.ENDIF
115.ENDIF
116
117SHL1OBJS=$(SLOFILES)
118SHL1DEF=$(TARGET).def
119SHL1RES=$(RES)/$(TARGET).res
120
121DEF1NAME= $(TARGET)
122#DEF1EXPORTFILE=	exports.dxp
123
124# --- Targets ----------------------------------
125.INCLUDE : target.mk
126
127ALLTAR : \
128    $(MISC)/$(TARGET).manifest \
129
130$(MISC)/$(TARGET).manifest: $(BIN)$/$(TARGET)$(DLLPOST)
131	cat *.rgs > $(MISC)$/$(TARGET).rgs
132	mt.exe -rgs:$(MISC)$/$(TARGET).rgs -tlb:$(MISC)$/$(TARGET).tlb -dll:$(TARGET).dll -out:$(MISC)$/$(TARGET).manifest
133	mt.exe -manifest $(MISC)$/$(TARGET).manifest -outputresource:$(BIN)$/$(TARGET)$(DLLPOST)\;\#97
134
135.ENDIF # "$(GUI)"!="WNT" || "$(DISABLE_ATL)"!=""
136
137