CWS-TOOLING: integrate CWS os150
[LibreOffice.git] / scaddins / source / datefunc / msdev.mk
blobd50fb23dde8dc25ef648c593523601a1b5f0603c
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
28 .SUFFIXES: .urd .idl
30 # the root directory of the udk
31 # also adjust include statements if this is changed
32 ROOT=i:\udk100
34 include i:\udk100\msdev\defines.mk
36 # the project directory under runtime
37 PROJECT=datefunc
39 # the target of this makefile
40 TARGET=$(BINOUT)\datefunc.dll
42 CPPFLAGS = \
43 -I$(RUNTIME)\vos\inc \
44 -I$(RUNTIME)\sal\inc \
45 -I$(RUNTIME)\cppu\inc \
46 -I$(RUNTIME)\cppuhelper\inc \
47 -I$(RUNTIME)\stoc\inc \
48 -I$(UNOHEADER_OUT)
50 OBJS=$(OBJOUT)\datefunc.obj
52 # flags and macros
53 include i:\udk100\msdev\flags.mk
55 URDS = $(URDOUT)\dateadd.urd
57 CPPUMAKER_OPT=-C
58 UNOHEADER_OUT=$(UNOHEADER_COM)
60 # the rdb files
61 RDBS=$(RDBOUT)\applicat.rdb $(RDBOUT)\dateadd.rdb
63 UNOHEADER=\
64 $(UNOHEADER_OUT)\com\sun\star\lang\XComponent.hpp \
65 $(UNOHEADER_OUT)\com\sun\star\lang\XMultiServiceFactory.hpp \
66 $(UNOHEADER_OUT)\com\sun\star\lang\XSingleServiceFactory.hpp \
67 $(UNOHEADER_OUT)\com\sun\star\uno\TypeClass.hpp \
68 $(UNOHEADER_OUT)\com\sun\star\uno\XInterface.hpp \
69 $(UNOHEADER_OUT)\com\sun\star\registry\XImplementationRegistration.hpp \
70 $(UNOHEADER_OUT)\com\sun\star\sheet\XAddIn.hpp \
71 $(UNOHEADER_OUT)\com\sun\star\lang\XServiceName.hpp \
72 $(UNOHEADER_OUT)\com\sun\star\lang\XServiceInfo.hpp \
73 $(UNOHEADER_OUT)\com\sun\star\lang\XTypeProvider.hpp \
74 $(UNOHEADER_OUT)\com\sun\star\uno\XWeak.hpp \
75 $(UNOHEADER_OUT)\com\sun\star\uno\XAggregation.hpp \
76 $(UNOHEADER_OUT)\com\sun\star\util\Date.hpp \
77 $(UNOHEADER_OUT)\com\sun\star\sheet\addin\XDateFunctions.hpp
79 $(UNOHEADER_OUT)\com\sun\star\sheet\addin\XDateFunctions.hpp: $(RDBS) $(CPPUMAKER)
80 -$(MKDIR) $(@D)
81 $(CPPUMAKER) $(CPPUMAKER_OPT) -Tcom.sun.star.sheet.addin.XDateFunctions -B/UCR -O$(UNOHEADER_OUT) $(RDBS)
83 $(UNOHEADER_OUT)\com\sun\star\sheet\XAddIn.hpp: $(RDBS) $(CPPUMAKER)
84 -$(MKDIR) $(@D)
85 $(CPPUMAKER) $(CPPUMAKER_OPT) -Tcom.sun.star.sheet.XAddIn -B/UCR -O$(UNOHEADER_OUT) $(RDBS)
87 $(UNOHEADER_OUT)\com\sun\star\lang\XServiceName.hpp: $(RDBS) $(CPPUMAKER)
88 -$(MKDIR) $(@D)
89 $(CPPUMAKER) $(CPPUMAKER_OPT) -Tcom.sun.star.lang.XServiceName -B/UCR -O$(UNOHEADER_OUT) $(RDBS)
91 $(UNOHEADER_OUT)\com\sun\star\util\Date.hpp: $(RDBS) $(CPPUMAKER)
92 -$(MKDIR) $(@D)
93 $(CPPUMAKER) $(CPPUMAKER_OPT) -Tcom.sun.star.util.Date -B/UCR -O$(UNOHEADER_OUT) $(RDBS)
95 include i:\udk100\msdev\genheader.mk
97 $(URDS): $(UNOIDL)
99 .idl{$(URDOUT)}.urd:
100 -$(MKDIR) $(@D)
101 $(UNOIDL) -I$(ROOT)\idl $< -Burd -OH$(@D)
103 $(RDBOUT)\dateadd.rdb: $(URDS) $(REGMERGE)
104 -$(MKDIR) $(@D)
105 $(REGMERGE) $@ /UCR $(URDS)
107 .cxx{$(OBJOUT)}.obj:
108 -$(MKDIR) $(@D)
109 $(CC) $(CCPPFLAGS) $(CCFLAGS) $< /Fo$@
111 $(TARGET): $(UNOHEADER) $(OBJS)
112 -$(MKDIR) $(@D)
113 $(LIB32) $(LFLAGS) /DLL $(OBJS) /out:$@ -def:datefunc.def $(LINKCPPUHELPER) $(LINKCPPU) $(LINKVOS) $(LINKSAL) msvcirtd.lib $(LIBS)