xref: /aoo42x/main/embedserv/util/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=..
29
30PRJNAME=embedserv
31TARGET=emser
32LIBTARGET=NO
33USE_DEFFILE=TRUE
34
35# --- Settings -----------------------------------------------------------
36
37.INCLUDE :  settings.mk
38
39# --- Files --------------------------------------------------------
40
41.IF "$(GUI)" == "WNT" && "$(DISABLE_ATL)"==""
42
43SHL1TARGET= emser$(DLLPOSTFIX)
44
45SHL1IMPLIB= emserimp
46SHL1OBJS= \
47		$(SLO)$/register.obj \
48		$(SLO)$/servprov.obj \
49		$(SLO)$/docholder.obj \
50		$(SLO)$/ed_ipersiststr.obj \
51		$(SLO)$/ed_idataobj.obj \
52		$(SLO)$/ed_ioleobject.obj \
53		$(SLO)$/ed_iinplace.obj \
54		$(SLO)$/iipaobj.obj \
55		$(SLO)$/guid.obj \
56		$(SLO)$/esdll.obj \
57		$(SLO)$/intercept.obj \
58		$(SLO)$/syswinwrapper.obj \
59		$(SLO)$/tracker.obj
60
61SHL1STDLIBS=\
62		$(SALLIB)			\
63		$(CPPULIB)			\
64		$(CPPUHELPERLIB)	\
65		$(OLE32LIB)			\
66		$(GDI32LIB)			\
67		$(UUIDLIB)				\
68		$(OLEAUT32LIB)
69
70.IF "$(COM)"=="MSC"
71.IF "$(CCNUMVER)" >= "001300000000" && "$(CCNUMVER)" <= "001399999999"
72SHL1STDLIBS+=\
73		$(ADVAPI32LIB)	\
74		$(ATL_LIB)$/atls.lib
75.ENDIF
76
77.IF "$(WINDOWS_VISTA_PSDK)"!=""
78SHL1STDLIBS+=\
79		$(ADVAPI32LIB)	\
80		$(ATL_LIB)$/atls.lib
81.ENDIF # "$(WINDOWS_VISTA_PSDK)"!=""
82.ENDIF # "$(COM)"=="MSC"
83
84
85SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
86
87DEF1NAME=		$(SHL1TARGET)
88DEF1EXPORTFILE=	exports.dxp
89
90.ENDIF
91
92# --- Targets -------------------------------------------------------------
93
94.INCLUDE :  target.mk
95
96
97
98ALLTAR : $(MISC)/emser.component
99
100$(MISC)/emser.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
101        emser.component
102    $(XSLTPROC) --nonet --stringparam uri \
103        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
104        $(SOLARENV)/bin/createcomponent.xslt emser.component
105