xref: /aoo41x/main/scaddins/source/datefunc/msdev.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
28.SUFFIXES: .urd .idl
29
30# the root directory of the udk
31# also adjust include statements if this is changed
32ROOT=i:\udk100
33
34include i:\udk100\msdev\defines.mk
35
36# the project directory under runtime
37PROJECT=datefunc
38
39# the target of this makefile
40TARGET=$(BINOUT)\datefunc.dll
41
42CPPFLAGS = \
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)
49
50OBJS=$(OBJOUT)\datefunc.obj
51
52# flags and macros
53include i:\udk100\msdev\flags.mk
54
55URDS = $(URDOUT)\dateadd.urd
56
57CPPUMAKER_OPT=-C
58UNOHEADER_OUT=$(UNOHEADER_COM)
59
60# the rdb files
61RDBS=$(RDBOUT)\applicat.rdb $(RDBOUT)\dateadd.rdb
62
63UNOHEADER=\
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
78
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)
82
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)
86
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)
90
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)
94
95include i:\udk100\msdev\genheader.mk
96
97$(URDS): $(UNOIDL)
98
99.idl{$(URDOUT)}.urd:
100	-$(MKDIR) $(@D)
101	$(UNOIDL) -I$(ROOT)\idl $< -Burd -OH$(@D)
102
103$(RDBOUT)\dateadd.rdb: $(URDS) $(REGMERGE)
104	-$(MKDIR) $(@D)
105	$(REGMERGE) $@ /UCR  $(URDS)
106
107.cxx{$(OBJOUT)}.obj:
108	-$(MKDIR) $(@D)
109	$(CC) $(CCPPFLAGS) $(CCFLAGS) $< /Fo$@
110
111$(TARGET):  $(UNOHEADER) $(OBJS)
112	-$(MKDIR) $(@D)
113    $(LIB32) $(LFLAGS) /DLL $(OBJS) /out:$@ -def:datefunc.def $(LINKCPPUHELPER) $(LINKCPPU) $(LINKVOS) $(LINKSAL) msvcirtd.lib $(LIBS)
114
115
116
117