xref: /aoo4110/main/sc/addin/datefunc/makefile.mk (revision b1cdbd2c)
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
24PRJ=..$/..
25
26PRJNAME=sc
27TARGET=dfa
28LIBTARGET=NO
29
30# --- Settings -----------------------------------------------------
31
32.INCLUDE: settings.mk
33
34CL2C=+$(PERL) $(MISC)$/cl2c.pl
35CL2CRID=RID_SC_ADDIN_DFA
36CL2CSRC=$(TARGET).src
37
38# --- Files --------------------------------------------------------
39
40CFILES= $(MISC)$/x$(TARGET).c
41
42# no version OBJ
43#VERSIONOBJ=
44
45SLOFILES= \
46			$(SLO)$/x$(TARGET).obj
47
48# ==========================================================================
49
50SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
51SHL1IMPLIB= i$(TARGET)
52SHL1OBJS=   $(SLO)$/x$(TARGET).obj
53SHL1DEF=    $(MISC)$/$(SHL1TARGET).def
54
55.IF "$(GUI)" == "WNT"
56SHL1STDLIBS=     $(GDI32LIB) $(ADVAPI32LIB) $(COMDLG32LIB) \
57				 $(UUIDLIB) $(OLE32LIB) $(SHELL32LIB) $(WINSPOOLLIB)
58.IF "$(GVER)" == "W40"
59SHL1STDLIBS=    $(SHL1STDLIBS) $(COMCTL32LIB)
60.ENDIF
61.ENDIF
62
63# --- Targets -------------------------------------------------------
64
65ALLTAR:	$(MISC)$/$(TARGET).lst
66
67
68.INCLUDE: target.mk
69
70$(MISC)$/x$(TARGET).c: $(TARGET).cl $(CL2CSRC)
71	$(CL2C) $(TARGET).cl $(MISC)$/x$(TARGET).c $(CL2CSRC) $(CL2CRID)
72
73# copy file to include in package
74$(INCCOM)$/xlang.h : $(SOLARINCDIR)$/i18npool$/lang.h
75	@$(COPY) $(SOLARINCDIR)$/i18npool$/lang.h $@
76
77
78$(SLOFILES) : $(INCCOM)$/xlang.h $(CFILES)
79
80$(MISC)$/$(TARGET).lst : \
81	$(MISC)$/x$(TARGET).c \
82	$(INCCOM)$/xlang.h \
83	..$/inc$/$(TARGET).hrc \
84	..$/inc$/addin.h
85	echo $< > $@
86
87# --- Def-File ---
88
89# ------------------------------------------------------------------
90# Windows DEF File
91# ------------------------------------------------------------------
92
93.IF "$(GUI)"=="WNT"
94
95$(MISC)$/$(SHL1TARGET).def: makefile.mk
96    @echo ------------------------------
97    @echo Making: $@
98    @echo LIBRARY     $(SHL1TARGET)>$@
99.IF "$(COM)"!="GCC"
100    @echo DESCRIPTION 'DateF StarCalc Addin DLL'>>$@
101    @echo DATA        READ WRITE NONSHARED>>$@
102.ENDIF
103    @echo EXPORTS>>$@
104    @echo     GetFunctionCount>>$@
105    @echo     GetFunctionData>>$@
106    @echo     GetParameterDescription>>$@
107    @echo     SetLanguage >>$@
108    @echo     ScDate_GetDiffWeeks>>$@
109    @echo     ScDate_GetDiffMonths>>$@
110    @echo     ScDate_GetDiffYears>>$@
111    @echo     ScDate_IsLeapYear>>$@
112    @echo     ScDate_DaysInMonth>>$@
113    @echo     ScDate_DaysInYear>>$@
114    @echo     ScDate_WeeksInYear>>$@
115
116.ENDIF
117
118.IF "$(GUI)"=="OS2"
119
120$(MISC)$/$(SHL1TARGET).def: makefile.mk
121    @echo ------------------------------
122    @echo Making: $@
123    @echo LIBRARY     $(SHL1TARGET) INITINSTANCE TERMINSTANCE >$@
124    @echo DATA        MULTIPLE>>$@
125    @echo EXPORTS>>$@
126    @echo     _GetFunctionCount>>$@
127    @echo     _GetFunctionData>>$@
128    @echo     _GetParameterDescription>>$@
129    @echo     _SetLanguage >>$@
130    @echo     _ScDate_GetDiffWeeks>>$@
131    @echo     _ScDate_GetDiffMonths>>$@
132    @echo     _ScDate_GetDiffYears>>$@
133    @echo     _ScDate_IsLeapYear>>$@
134    @echo     _ScDate_DaysInMonth>>$@
135    @echo     _ScDate_DaysInYear>>$@
136    @echo     _ScDate_WeeksInYear>>$@
137
138.ENDIF
139
140
141