merge the formfield patch from ooo-build
[ooovba.git] / sc / addin / datefunc / makefile.mk
bloba1615da954309b835b35787f2fb71d316f45db11
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: makefile.mk,v $
11 # $Revision: 1.15 $
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 PRJ=..$/..
34 PRJNAME=sc
35 TARGET=dfa
36 LIBTARGET=NO
38 # --- Settings -----------------------------------------------------
40 .INCLUDE: settings.mk
42 CL2C=+$(PERL) $(MISC)$/cl2c.pl
43 CL2CRID=RID_SC_ADDIN_DFA
44 CL2CSRC=$(TARGET).src
46 # --- Files --------------------------------------------------------
48 CFILES= $(MISC)$/x$(TARGET).c
50 # no version OBJ
51 #VERSIONOBJ=
53 SLOFILES= \
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
63 .IF "$(GUI)" == "WNT"
64 SHL1STDLIBS= $(GDI32LIB) $(ADVAPI32LIB) $(COMDLG32LIB) \
65 $(UUIDLIB) $(OLE32LIB) $(SHELL32LIB) $(WINSPOOLLIB)
66 .IF "$(GVER)" == "W40"
67 SHL1STDLIBS= $(SHL1STDLIBS) $(COMCTL32LIB)
68 .ENDIF
69 .ENDIF
71 # --- Targets -------------------------------------------------------
73 ALLTAR: $(MISC)$/$(TARGET).lst
76 .INCLUDE: target.mk
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 \
90 $(INCCOM)$/xlang.h \
91 ..$/inc$/$(TARGET).hrc \
92 ..$/inc$/addin.h
93 .IF "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
94 echo $< > $@
95 .ELSE
96 echo $(<:+"\n":s/ //) > $@
97 .ENDIF
99 # --- Def-File ---
101 # ------------------------------------------------------------------
102 # Windows DEF File
103 # ------------------------------------------------------------------
105 .IF "$(GUI)"=="WNT"
107 $(MISC)$/$(SHL1TARGET).def: makefile.mk
108 @echo ------------------------------
109 @echo Making: $@
110 @echo LIBRARY $(SHL1TARGET)>$@
111 .IF "$(COM)"!="GCC"
112 @echo DESCRIPTION 'DateF StarCalc Addin DLL'>>$@
113 @echo DATA READ WRITE NONSHARED>>$@
114 .ENDIF
115 @echo EXPORTS>>$@
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>>$@
128 .ENDIF
130 .IF "$(GUI)"=="OS2"
132 $(MISC)$/$(SHL1TARGET).def: makefile.mk
133 @echo ------------------------------
134 @echo Making: $@
135 @echo LIBRARY $(SHL1TARGET) INITINSTANCE TERMINSTANCE >$@
136 @echo DESCRIPTION 'DateF StarCalc Addin DLL'>>$@
137 @echo DATA MULTIPLE>>$@
138 @echo EXPORTS>>$@
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>>$@
151 .ENDIF