1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: msdev.mk,v $
13 # This file is part of OpenOffice.org.
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.
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).
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.
30 #*************************************************************************
34 # the root directory of the udk
35 # also adjust include statements if this is changed
38 include i
:\udk100\msdev\defines.mk
40 # the project directory under runtime
43 # the target of this makefile
44 TARGET
=$(BINOUT
)\datefunc.dll
47 -I
$(RUNTIME
)\vos\inc \
48 -I
$(RUNTIME
)\sal\inc \
49 -I
$(RUNTIME
)\cppu\inc \
50 -I
$(RUNTIME
)\cppuhelper\inc \
51 -I
$(RUNTIME
)\stoc\inc \
54 OBJS
=$(OBJOUT
)\datefunc.obj
57 include i
:\udk100\msdev
\flags.mk
59 URDS
= $(URDOUT
)\dateadd.urd
62 UNOHEADER_OUT
=$(UNOHEADER_COM
)
65 RDBS
=$(RDBOUT
)\applicat.rdb
$(RDBOUT
)\dateadd.rdb
68 $(UNOHEADER_OUT
)\com\sun\star\lang\XComponent.hpp \
69 $(UNOHEADER_OUT
)\com\sun\star\lang\XMultiServiceFactory.hpp \
70 $(UNOHEADER_OUT
)\com\sun\star\lang\XSingleServiceFactory.hpp \
71 $(UNOHEADER_OUT
)\com\sun\star\uno\TypeClass.hpp \
72 $(UNOHEADER_OUT
)\com\sun\star\uno\XInterface.hpp \
73 $(UNOHEADER_OUT
)\com\sun\star
\registry\XImplementationRegistration.hpp \
74 $(UNOHEADER_OUT
)\com\sun\star\sheet\XAddIn.hpp \
75 $(UNOHEADER_OUT
)\com\sun\star\lang\XServiceName.hpp \
76 $(UNOHEADER_OUT
)\com\sun\star\lang\XServiceInfo.hpp \
77 $(UNOHEADER_OUT
)\com\sun\star\lang\XTypeProvider.hpp \
78 $(UNOHEADER_OUT
)\com\sun\star\uno\XWeak.hpp \
79 $(UNOHEADER_OUT
)\com\sun\star\uno\XAggregation.hpp \
80 $(UNOHEADER_OUT
)\com\sun\star\util\Date.hpp \
81 $(UNOHEADER_OUT
)\com\sun\star\sheet
\addin\XDateFunctions.hpp
83 $(UNOHEADER_OUT
)\com\sun\star\sheet
\addin\XDateFunctions.hpp
: $(RDBS
) $(CPPUMAKER
)
85 $(CPPUMAKER
) $(CPPUMAKER_OPT
) -Tcom.sun.star.sheet.addin.XDateFunctions
-B
/UCR
-O
$(UNOHEADER_OUT
) $(RDBS
)
87 $(UNOHEADER_OUT
)\com\sun\star\sheet\XAddIn.hpp
: $(RDBS
) $(CPPUMAKER
)
89 $(CPPUMAKER
) $(CPPUMAKER_OPT
) -Tcom.sun.star.sheet.XAddIn
-B
/UCR
-O
$(UNOHEADER_OUT
) $(RDBS
)
91 $(UNOHEADER_OUT
)\com\sun\star\lang\XServiceName.hpp
: $(RDBS
) $(CPPUMAKER
)
93 $(CPPUMAKER
) $(CPPUMAKER_OPT
) -Tcom.sun.star.lang.XServiceName
-B
/UCR
-O
$(UNOHEADER_OUT
) $(RDBS
)
95 $(UNOHEADER_OUT
)\com\sun\star\util\Date.hpp
: $(RDBS
) $(CPPUMAKER
)
97 $(CPPUMAKER
) $(CPPUMAKER_OPT
) -Tcom.sun.star.util.Date
-B
/UCR
-O
$(UNOHEADER_OUT
) $(RDBS
)
99 include i
:\udk100\msdev\genheader.mk
105 $(UNOIDL
) -I
$(ROOT
)\idl
$< -Burd
-OH
$(@D
)
107 $(RDBOUT
)\dateadd.rdb
: $(URDS
) $(REGMERGE
)
109 $(REGMERGE
) $@
/UCR
$(URDS
)
113 $(CC
) $(CCPPFLAGS
) $(CCFLAGS
) $< /Fo
$@
115 $(TARGET
): $(UNOHEADER
) $(OBJS
)
117 $(LIB32
) $(LFLAGS
) /DLL
$(OBJS
) /out
:$@
-def
:datefunc.def
$(LINKCPPUHELPER
) $(LINKCPPU
) $(LINKVOS
) $(LINKSAL
) msvcirtd.lib
$(LIBS
)