xref: /aoo42x/main/sc/addin/datefunc/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=..$/..
29
30PRJNAME=sc
31TARGET=dfa
32LIBTARGET=NO
33
34# --- Settings -----------------------------------------------------
35
36.INCLUDE: settings.mk
37
38CL2C=+$(PERL) $(MISC)$/cl2c.pl
39CL2CRID=RID_SC_ADDIN_DFA
40CL2CSRC=$(TARGET).src
41
42# --- Files --------------------------------------------------------
43
44CFILES= $(MISC)$/x$(TARGET).c
45
46# no version OBJ
47#VERSIONOBJ=
48
49SLOFILES= \
50			$(SLO)$/x$(TARGET).obj
51
52# ==========================================================================
53
54SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
55SHL1IMPLIB= i$(TARGET)
56SHL1OBJS=   $(SLO)$/x$(TARGET).obj
57SHL1DEF=    $(MISC)$/$(SHL1TARGET).def
58
59.IF "$(GUI)" == "WNT"
60SHL1STDLIBS=     $(GDI32LIB) $(ADVAPI32LIB) $(COMDLG32LIB) \
61				 $(UUIDLIB) $(OLE32LIB) $(SHELL32LIB) $(WINSPOOLLIB)
62.IF "$(GVER)" == "W40"
63SHL1STDLIBS=    $(SHL1STDLIBS) $(COMCTL32LIB)
64.ENDIF
65.ENDIF
66
67# --- Targets -------------------------------------------------------
68
69ALLTAR:	$(MISC)$/$(TARGET).lst
70
71
72.INCLUDE: target.mk
73
74$(MISC)$/x$(TARGET).c: $(TARGET).cl $(CL2CSRC)
75	$(CL2C) $(TARGET).cl $(MISC)$/x$(TARGET).c $(CL2CSRC) $(CL2CRID)
76
77# copy file to include in package
78$(INCCOM)$/xlang.h : $(SOLARINCDIR)$/i18npool$/lang.h
79	@$(COPY) $(SOLARINCDIR)$/i18npool$/lang.h $@
80
81
82$(SLOFILES) : $(INCCOM)$/xlang.h $(CFILES)
83
84$(MISC)$/$(TARGET).lst : \
85	$(MISC)$/x$(TARGET).c \
86	$(INCCOM)$/xlang.h \
87	..$/inc$/$(TARGET).hrc \
88	..$/inc$/addin.h
89	echo $< > $@
90
91# --- Def-File ---
92
93# ------------------------------------------------------------------
94# Windows DEF File
95# ------------------------------------------------------------------
96
97.IF "$(GUI)"=="WNT"
98
99$(MISC)$/$(SHL1TARGET).def: makefile.mk
100    @echo ------------------------------
101    @echo Making: $@
102    @echo LIBRARY     $(SHL1TARGET)>$@
103.IF "$(COM)"!="GCC"
104    @echo DESCRIPTION 'DateF StarCalc Addin DLL'>>$@
105    @echo DATA        READ WRITE NONSHARED>>$@
106.ENDIF
107    @echo EXPORTS>>$@
108    @echo     GetFunctionCount>>$@
109    @echo     GetFunctionData>>$@
110    @echo     GetParameterDescription>>$@
111    @echo     SetLanguage >>$@
112    @echo     ScDate_GetDiffWeeks>>$@
113    @echo     ScDate_GetDiffMonths>>$@
114    @echo     ScDate_GetDiffYears>>$@
115    @echo     ScDate_IsLeapYear>>$@
116    @echo     ScDate_DaysInMonth>>$@
117    @echo     ScDate_DaysInYear>>$@
118    @echo     ScDate_WeeksInYear>>$@
119
120.ENDIF
121
122.IF "$(GUI)"=="OS2"
123
124$(MISC)$/$(SHL1TARGET).def: makefile.mk
125    @echo ------------------------------
126    @echo Making: $@
127    @echo LIBRARY     $(SHL1TARGET) INITINSTANCE TERMINSTANCE >$@
128    @echo DESCRIPTION 'DateF StarCalc Addin DLL'>>$@
129    @echo DATA        MULTIPLE>>$@
130    @echo EXPORTS>>$@
131    @echo     _GetFunctionCount>>$@
132    @echo     _GetFunctionData>>$@
133    @echo     _GetParameterDescription>>$@
134    @echo     _SetLanguage >>$@
135    @echo     _ScDate_GetDiffWeeks>>$@
136    @echo     _ScDate_GetDiffMonths>>$@
137    @echo     _ScDate_GetDiffYears>>$@
138    @echo     _ScDate_IsLeapYear>>$@
139    @echo     _ScDate_DaysInMonth>>$@
140    @echo     _ScDate_DaysInYear>>$@
141    @echo     _ScDate_WeeksInYear>>$@
142
143.ENDIF
144
145
146