1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2008 by Sun Microsystems, Inc.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# $RCSfile: makefile.mk,v $
10#
11# $Revision: 1.0 $
12#
13# This file is part of OpenOffice.org.
14#
15# OpenOffice.org is free software: you can redistribute it and/or modify
16# it under the terms of the GNU Lesser General Public License version 3
17# only, as published by the Free Software Foundation.
18#
19# OpenOffice.org is distributed in the hope that it will be useful,
20# but WITHOUT ANY WARRANTY; without even the implied warranty of
21# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22# GNU Lesser General Public License version 3 for more details
23# (a copy is included in the LICENSE file that accompanied this code).
24#
25# You should have received a copy of the GNU Lesser General Public License
26# version 3 along with OpenOffice.org.  If not, see
27# <http://www.openoffice.org/license.html>
28# for a copy of the LGPLv3 License.
29#
30#*************************************************************************
31
32PRJ=..$/..
33
34PRJNAME=scripting
35TARGET=vbaevents
36VISIBILITY_HIDDEN=TRUE
37NO_BSYMBOLIC=	TRUE
38ENABLE_EXCEPTIONS=TRUE
39COMP1TYPELIST=$(TARGET)
40COMPRDB=$(SOLARBINDIR)$/types.rdb
41
42# --- Settings -----------------------------------------------------
43
44.INCLUDE :  settings.mk
45DLLPRE =
46
47# ------------------------------------------------------------------
48
49#.INCLUDE :  ..$/cppumaker.mk
50
51SLOFILES= \
52		$(SLO)$/service.obj \
53		$(SLO)$/eventhelper.obj
54
55SHL1TARGET= $(TARGET)$(DLLPOSTFIX).uno
56SHL1IMPLIB=     i$(TARGET)
57
58SHL1VERSIONMAP=$(SOLARENV)/src/component.map
59SHL1DEF=$(MISC)$/$(SHL1TARGET).def
60DEF1NAME=$(SHL1TARGET)
61
62SHL1STDLIBS= \
63                $(CPPUHELPERLIB) \
64		$(BASICLIB) \
65		$(COMPHELPERLIB) \
66		$(SFXLIB) \
67                $(CPPULIB) \
68                $(TOOLSLIB) \
69                $(SALLIB)
70
71SHL1DEPN=
72SHL1LIBS=$(SLB)$/$(TARGET).lib
73
74# --- Targets ------------------------------------------------------
75
76.INCLUDE :	target.mk
77
78# ------------------------------------------------------------------
79
80ALLTAR : \
81        $(MISC)$/$(TARGET).don \
82
83$(SLOFILES) : $(MISC)$/$(TARGET).don
84
85$(MISC)$/$(TARGET).don : $(SOLARBINDIR)$/oovbaapi.rdb
86        +$(CPPUMAKER) -O$(INCCOM)$/$(TARGET) -BUCR $(SOLARBINDIR)$/oovbaapi.rdb -X$(SOLARBINDIR)$/types.rdb && echo > $@
87        echo $@
88
89
90ALLTAR : $(MISC)/vbaevents.component
91
92$(MISC)/vbaevents.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
93        vbaevents.component
94    $(XSLTPROC) --nonet --stringparam uri \
95        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
96        $(SOLARENV)/bin/createcomponent.xslt vbaevents.component
97