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: makefile.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 #*************************************************************************
38 # --- Settings -----------------------------------------------------
42 CL2C
=+$(PERL
) $(MISC
)$/cl2c.pl
43 CL2CRID
=RID_SC_ADDIN_DFA
46 # --- Files --------------------------------------------------------
48 CFILES
= $(MISC
)$/x
$(TARGET
).c
54 $(SLO
)$/x
$(TARGET
).obj
56 # ==========================================================================
58 SHL1TARGET
= $(TARGET
)$(DLLPOSTFIX
)
59 SHL1IMPLIB
= i
$(TARGET
)
60 SHL1OBJS
= $(SLO
)$/x
$(TARGET
).obj
61 SHL1DEF
= $(MISC
)$/$(SHL1TARGET
).def
64 SHL1STDLIBS
= $(GDI32LIB
) $(ADVAPI32LIB
) $(COMDLG32LIB
) \
65 $(UUIDLIB
) $(OLE32LIB
) $(SHELL32LIB
) $(WINSPOOLLIB
)
66 .IF
"$(GVER)" == "W40"
67 SHL1STDLIBS
= $(SHL1STDLIBS
) $(COMCTL32LIB
)
71 # --- Targets -------------------------------------------------------
73 ALLTAR
: $(MISC
)$/$(TARGET
).lst
78 $(MISC
)$/x
$(TARGET
).c
: $(TARGET
).cl
$(CL2CSRC
)
79 $(CL2C
) $(TARGET
).cl
$(MISC
)$/x
$(TARGET
).c
$(CL2CSRC
) $(CL2CRID
)
81 # copy file to include in package
82 $(INCCOM
)$/xlang.h
: $(SOLARINCDIR
)$/i18npool
$/lang.h
83 @
$(COPY
) $(SOLARINCDIR
)$/i18npool
$/lang.h
$@
86 $(SLOFILES
) : $(INCCOM
)$/xlang.h
$(CFILES
)
88 $(MISC
)$/$(TARGET
).lst
: \
89 $(MISC
)$/x
$(TARGET
).c \
91 ..
$/inc
$/$(TARGET
).hrc \
93 .IF
"$(GUI)"=="UNX" ||
"$(USE_SHELL)"!="4nt"
96 echo
$(<:+"\n":s
/ //) > $@
101 # ------------------------------------------------------------------
103 # ------------------------------------------------------------------
107 $(MISC
)$/$(SHL1TARGET
).def
: makefile.mk
108 @echo
------------------------------
110 @echo LIBRARY
$(SHL1TARGET
)>$@
112 @echo DESCRIPTION
'DateF StarCalc Addin DLL'>>$@
113 @echo DATA READ WRITE NONSHARED
>>$@
116 @echo GetFunctionCount
>>$@
117 @echo GetFunctionData
>>$@
118 @echo GetParameterDescription
>>$@
119 @echo SetLanguage
>>$@
120 @echo ScDate_GetDiffWeeks
>>$@
121 @echo ScDate_GetDiffMonths
>>$@
122 @echo ScDate_GetDiffYears
>>$@
123 @echo ScDate_IsLeapYear
>>$@
124 @echo ScDate_DaysInMonth
>>$@
125 @echo ScDate_DaysInYear
>>$@
126 @echo ScDate_WeeksInYear
>>$@
132 $(MISC
)$/$(SHL1TARGET
).def
: makefile.mk
133 @echo
------------------------------
135 @echo LIBRARY
$(SHL1TARGET
) INITINSTANCE TERMINSTANCE
>$@
136 @echo DESCRIPTION
'DateF StarCalc Addin DLL'>>$@
137 @echo DATA MULTIPLE
>>$@
139 @echo _GetFunctionCount
>>$@
140 @echo _GetFunctionData
>>$@
141 @echo _GetParameterDescription
>>$@
142 @echo _SetLanguage
>>$@
143 @echo _ScDate_GetDiffWeeks
>>$@
144 @echo _ScDate_GetDiffMonths
>>$@
145 @echo _ScDate_GetDiffYears
>>$@
146 @echo _ScDate_IsLeapYear
>>$@
147 @echo _ScDate_DaysInMonth
>>$@
148 @echo _ScDate_DaysInYear
>>$@
149 @echo _ScDate_WeeksInYear
>>$@