1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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 #*************************************************************************
30 # the root directory of the udk
31 # also adjust include statements if this is changed
34 include i
:\udk100\msdev\defines.mk
36 # the project directory under runtime
39 # the target of this makefile
40 TARGET
=$(BINOUT
)\datefunc.dll
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 \
50 OBJS
=$(OBJOUT
)\datefunc.obj
53 include i
:\udk100\msdev
\flags.mk
55 URDS
= $(URDOUT
)\dateadd.urd
58 UNOHEADER_OUT
=$(UNOHEADER_COM
)
61 RDBS
=$(RDBOUT
)\applicat.rdb
$(RDBOUT
)\dateadd.rdb
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
)
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
)
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
)
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
)
93 $(CPPUMAKER
) $(CPPUMAKER_OPT
) -Tcom.sun.star.util.Date
-B
/UCR
-O
$(UNOHEADER_OUT
) $(RDBS
)
95 include i
:\udk100\msdev\genheader.mk
101 $(UNOIDL
) -I
$(ROOT
)\idl
$< -Burd
-OH
$(@D
)
103 $(RDBOUT
)\dateadd.rdb
: $(URDS
) $(REGMERGE
)
105 $(REGMERGE
) $@
/UCR
$(URDS
)
109 $(CC
) $(CCPPFLAGS
) $(CCFLAGS
) $< /Fo
$@
111 $(TARGET
): $(UNOHEADER
) $(OBJS
)
113 $(LIB32
) $(LFLAGS
) /DLL
$(OBJS
) /out
:$@
-def
:datefunc.def
$(LINKCPPUHELPER
) $(LINKCPPU
) $(LINKVOS
) $(LINKSAL
) msvcirtd.lib
$(LIBS
)