xref: /trunk/main/winaccessibility/source/UAccCOM/makefile.mk (revision ca62e2c2083b5d0995f1245bad6c2edfb455fbec)
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=UAccCOM
32
33# --- Settings -----------------------------------------------------
34.IF "$(GUI)" == "WNT" && "$(DISABLE_ATL)"==""
35PROF_EDITION=TRUE
36.ENDIF
37
38.INCLUDE :  settings.mk
39
40.IF "$(GUI)" == "WNT" && "$(DISABLE_ATL)"==""
41
42VERSIONOBJ=
43LIBTARGET=NO
44USE_DEFFILE=YES
45UWINAPILIB=
46
47INCPRE+=$(foreach,i,$(ATL_INCLUDE) -I$(i)) \
48    -I$(MISC) \
49
50CFLAGS+=-D_UNICODE -DUNICODE
51
52# --- Files --------------------------------------------------------
53.IF "$(PRODUCT)"!=""
54RC+=-DPRODUCT
55.ENDIF
56.IF "$(USE_STLP_DEBUG)"!=""
57CDEFS+=-D_DEBUG
58.ENDIF # "$(USE_STLP_DEBUG)"!=""
59
60RCFILES=\
61        $(TARGET).rc
62#RCDEPN=$(MISC)$/envsettings.h
63
64SLOFILES=\
65    $(SLO)$/AccAction.obj \
66    $(SLO)$/AccActionBase.obj \
67    $(SLO)$/AccComponent.obj \
68    $(SLO)$/AccComponentBase.obj \
69    $(SLO)$/AccEditableText.obj \
70    $(SLO)$/AccHyperLink.obj \
71    $(SLO)$/AccHypertext.obj \
72    $(SLO)$/AccImage.obj \
73    $(SLO)$/AccRelation.obj \
74    $(SLO)$/AccText.obj \
75    $(SLO)$/AccValue.obj \
76    $(SLO)$/EnumVariant.obj \
77    $(SLO)$/StdAfx.obj \
78    $(SLO)$/UAccCOM.obj \
79    $(SLO)$/UNOXWrapper.obj \
80    $(SLO)$/AccTable.obj \
81    $(SLO)$/AccTextBase.obj \
82    $(SLO)$/MAccessible.obj \
83    $(SLO)$/CheckEnableAccessible.obj \
84
85EXCEPTIONSFILES= \
86    $(SLO)$/AccAction.obj \
87    $(SLO)$/AccActionBase.obj \
88    $(SLO)$/AccComponent.obj \
89    $(SLO)$/AccComponentBase.obj \
90    $(SLO)$/AccEditableText.obj \
91    $(SLO)$/AccHyperLink.obj \
92    $(SLO)$/AccHypertext.obj \
93    $(SLO)$/AccImage.obj \
94    $(SLO)$/AccRelation.obj \
95    $(SLO)$/AccText.obj \
96    $(SLO)$/AccValue.obj \
97    $(SLO)$/EnumVariant.obj \
98    $(SLO)$/StdAfx.obj \
99    $(SLO)$/UAccCOM.obj \
100    $(SLO)$/UNOXWrapper.obj \
101    $(SLO)$/AccTable.obj \
102    $(SLO)$/AccTextBase.obj \
103    $(SLO)$/MAccessible.obj \
104
105SHL1TARGET=$(TARGET)
106SHL1STDLIBS=\
107    oleacc.lib\
108    isal.lib\
109    icuuc.lib\
110    icuin.lib\
111    icppu.lib\
112    ivcl.lib \
113    kernel32.lib \
114    user32.lib \
115    advapi32.lib \
116    ole32.lib \
117    oleaut32.lib \
118    delayimp.lib \
119    shlwapi.lib \
120    uuid.lib
121
122LINKFLAGS += /delayload:sal3.dll \
123             /delayload:cppu3.dll \
124             /delayload:vclmi.dll
125
126.IF "$(COM)"!="GCC"
127.IF "$(CCNUMVER)" > "001300000000"
128.IF "$(USE_STLP_DEBUG)" != ""
129    SHL1STDLIBS+= $(ATL_LIB)$/atlsd.lib
130.ELSE
131    SHL1STDLIBS+= $(ATL_LIB)$/atls.lib
132.ENDIF
133.ENDIF
134.ENDIF
135
136SHL1OBJS=$(SLOFILES)
137SHL1DEF=$(TARGET).def
138SHL1RES=$(RES)/$(TARGET).res
139
140DEF1NAME= $(TARGET)
141#DEF1EXPORTFILE=    exports.dxp
142
143.ENDIF
144
145# --- Targets ----------------------------------
146.INCLUDE : target.mk
147