Update ooo320-m1
[ooovba.git] / scaddins / source / datefunc / msdev.mk
blobe2a73a2b7112483a02e89306f8776580c5ff59b9
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: msdev.mk,v $
11 # $Revision: 1.3 $
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 #*************************************************************************
32 .SUFFIXES: .urd .idl
34 # the root directory of the udk
35 # also adjust include statements if this is changed
36 ROOT=i:\udk100
38 include i:\udk100\msdev\defines.mk
40 # the project directory under runtime
41 PROJECT=datefunc
43 # the target of this makefile
44 TARGET=$(BINOUT)\datefunc.dll
46 CPPFLAGS = \
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 \
52 -I$(UNOHEADER_OUT)
54 OBJS=$(OBJOUT)\datefunc.obj
56 # flags and macros
57 include i:\udk100\msdev\flags.mk
59 URDS = $(URDOUT)\dateadd.urd
61 CPPUMAKER_OPT=-C
62 UNOHEADER_OUT=$(UNOHEADER_COM)
64 # the rdb files
65 RDBS=$(RDBOUT)\applicat.rdb $(RDBOUT)\dateadd.rdb
67 UNOHEADER=\
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)
84 -$(MKDIR) $(@D)
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)
88 -$(MKDIR) $(@D)
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)
92 -$(MKDIR) $(@D)
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)
96 -$(MKDIR) $(@D)
97 $(CPPUMAKER) $(CPPUMAKER_OPT) -Tcom.sun.star.util.Date -B/UCR -O$(UNOHEADER_OUT) $(RDBS)
99 include i:\udk100\msdev\genheader.mk
101 $(URDS): $(UNOIDL)
103 .idl{$(URDOUT)}.urd:
104 -$(MKDIR) $(@D)
105 $(UNOIDL) -I$(ROOT)\idl $< -Burd -OH$(@D)
107 $(RDBOUT)\dateadd.rdb: $(URDS) $(REGMERGE)
108 -$(MKDIR) $(@D)
109 $(REGMERGE) $@ /UCR $(URDS)
111 .cxx{$(OBJOUT)}.obj:
112 -$(MKDIR) $(@D)
113 $(CC) $(CCPPFLAGS) $(CCFLAGS) $< /Fo$@
115 $(TARGET): $(UNOHEADER) $(OBJS)
116 -$(MKDIR) $(@D)
117 $(LIB32) $(LFLAGS) /DLL $(OBJS) /out:$@ -def:datefunc.def $(LINKCPPUHELPER) $(LINKCPPU) $(LINKVOS) $(LINKSAL) msvcirtd.lib $(LIBS)