1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24.SUFFIXES: .urd .idl 25 26# the root directory of the udk 27# also adjust include statements if this is changed 28ROOT=i:\udk100 29 30include i:\udk100\msdev\defines.mk 31 32# the project directory under runtime 33PROJECT=datefunc 34 35# the target of this makefile 36TARGET=$(BINOUT)\datefunc.dll 37 38CPPFLAGS = \ 39 -I$(RUNTIME)\vos\inc \ 40 -I$(RUNTIME)\sal\inc \ 41 -I$(RUNTIME)\cppu\inc \ 42 -I$(RUNTIME)\cppuhelper\inc \ 43 -I$(RUNTIME)\stoc\inc \ 44 -I$(UNOHEADER_OUT) 45 46OBJS=$(OBJOUT)\datefunc.obj 47 48# flags and macros 49include i:\udk100\msdev\flags.mk 50 51URDS = $(URDOUT)\dateadd.urd 52 53CPPUMAKER_OPT=-C 54UNOHEADER_OUT=$(UNOHEADER_COM) 55 56# the rdb files 57RDBS=$(RDBOUT)\applicat.rdb $(RDBOUT)\dateadd.rdb 58 59UNOHEADER=\ 60 $(UNOHEADER_OUT)\com\sun\star\lang\XComponent.hpp \ 61 $(UNOHEADER_OUT)\com\sun\star\lang\XMultiServiceFactory.hpp \ 62 $(UNOHEADER_OUT)\com\sun\star\lang\XSingleServiceFactory.hpp \ 63 $(UNOHEADER_OUT)\com\sun\star\uno\TypeClass.hpp \ 64 $(UNOHEADER_OUT)\com\sun\star\uno\XInterface.hpp \ 65 $(UNOHEADER_OUT)\com\sun\star\registry\XImplementationRegistration.hpp \ 66 $(UNOHEADER_OUT)\com\sun\star\sheet\XAddIn.hpp \ 67 $(UNOHEADER_OUT)\com\sun\star\lang\XServiceName.hpp \ 68 $(UNOHEADER_OUT)\com\sun\star\lang\XServiceInfo.hpp \ 69 $(UNOHEADER_OUT)\com\sun\star\lang\XTypeProvider.hpp \ 70 $(UNOHEADER_OUT)\com\sun\star\uno\XWeak.hpp \ 71 $(UNOHEADER_OUT)\com\sun\star\uno\XAggregation.hpp \ 72 $(UNOHEADER_OUT)\com\sun\star\util\Date.hpp \ 73 $(UNOHEADER_OUT)\com\sun\star\sheet\addin\XDateFunctions.hpp 74 75$(UNOHEADER_OUT)\com\sun\star\sheet\addin\XDateFunctions.hpp: $(RDBS) $(CPPUMAKER) 76 -$(MKDIR) $(@D) 77 $(CPPUMAKER) $(CPPUMAKER_OPT) -Tcom.sun.star.sheet.addin.XDateFunctions -B/UCR -O$(UNOHEADER_OUT) $(RDBS) 78 79$(UNOHEADER_OUT)\com\sun\star\sheet\XAddIn.hpp: $(RDBS) $(CPPUMAKER) 80 -$(MKDIR) $(@D) 81 $(CPPUMAKER) $(CPPUMAKER_OPT) -Tcom.sun.star.sheet.XAddIn -B/UCR -O$(UNOHEADER_OUT) $(RDBS) 82 83$(UNOHEADER_OUT)\com\sun\star\lang\XServiceName.hpp: $(RDBS) $(CPPUMAKER) 84 -$(MKDIR) $(@D) 85 $(CPPUMAKER) $(CPPUMAKER_OPT) -Tcom.sun.star.lang.XServiceName -B/UCR -O$(UNOHEADER_OUT) $(RDBS) 86 87$(UNOHEADER_OUT)\com\sun\star\util\Date.hpp: $(RDBS) $(CPPUMAKER) 88 -$(MKDIR) $(@D) 89 $(CPPUMAKER) $(CPPUMAKER_OPT) -Tcom.sun.star.util.Date -B/UCR -O$(UNOHEADER_OUT) $(RDBS) 90 91include i:\udk100\msdev\genheader.mk 92 93$(URDS): $(UNOIDL) 94 95.idl{$(URDOUT)}.urd: 96 -$(MKDIR) $(@D) 97 $(UNOIDL) -I$(ROOT)\idl $< -Burd -OH$(@D) 98 99$(RDBOUT)\dateadd.rdb: $(URDS) $(REGMERGE) 100 -$(MKDIR) $(@D) 101 $(REGMERGE) $@ /UCR $(URDS) 102 103.cxx{$(OBJOUT)}.obj: 104 -$(MKDIR) $(@D) 105 $(CC) $(CCPPFLAGS) $(CCFLAGS) $< /Fo$@ 106 107$(TARGET): $(UNOHEADER) $(OBJS) 108 -$(MKDIR) $(@D) 109 $(LIB32) $(LFLAGS) /DLL $(OBJS) /out:$@ -def:datefunc.def $(LINKCPPUHELPER) $(LINKCPPU) $(LINKVOS) $(LINKSAL) msvcirtd.lib $(LIBS) 110 111 112 113