xref: /aoo42x/main/sc/addin/datefunc/makefile.mk (revision 7871dc3e)
1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..$/..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=sc
27cdf0e10cSrcweirTARGET=dfa
28cdf0e10cSrcweirLIBTARGET=NO
29cdf0e10cSrcweir
30cdf0e10cSrcweir# --- Settings -----------------------------------------------------
31cdf0e10cSrcweir
32cdf0e10cSrcweir.INCLUDE: settings.mk
33cdf0e10cSrcweir
34cdf0e10cSrcweirCL2C=+$(PERL) $(MISC)$/cl2c.pl
35cdf0e10cSrcweirCL2CRID=RID_SC_ADDIN_DFA
36cdf0e10cSrcweirCL2CSRC=$(TARGET).src
37cdf0e10cSrcweir
38cdf0e10cSrcweir# --- Files --------------------------------------------------------
39cdf0e10cSrcweir
40cdf0e10cSrcweirCFILES= $(MISC)$/x$(TARGET).c
41cdf0e10cSrcweir
42cdf0e10cSrcweir# no version OBJ
43cdf0e10cSrcweir#VERSIONOBJ=
44cdf0e10cSrcweir
45cdf0e10cSrcweirSLOFILES= \
46cdf0e10cSrcweir			$(SLO)$/x$(TARGET).obj
47cdf0e10cSrcweir
48cdf0e10cSrcweir# ==========================================================================
49cdf0e10cSrcweir
50cdf0e10cSrcweirSHL1TARGET= $(TARGET)$(DLLPOSTFIX)
51cdf0e10cSrcweirSHL1IMPLIB= i$(TARGET)
52cdf0e10cSrcweirSHL1OBJS=   $(SLO)$/x$(TARGET).obj
53cdf0e10cSrcweirSHL1DEF=    $(MISC)$/$(SHL1TARGET).def
54cdf0e10cSrcweir
55cdf0e10cSrcweir.IF "$(GUI)" == "WNT"
56cdf0e10cSrcweirSHL1STDLIBS=     $(GDI32LIB) $(ADVAPI32LIB) $(COMDLG32LIB) \
57cdf0e10cSrcweir				 $(UUIDLIB) $(OLE32LIB) $(SHELL32LIB) $(WINSPOOLLIB)
58cdf0e10cSrcweir.IF "$(GVER)" == "W40"
59cdf0e10cSrcweirSHL1STDLIBS=    $(SHL1STDLIBS) $(COMCTL32LIB)
60cdf0e10cSrcweir.ENDIF
61cdf0e10cSrcweir.ENDIF
62cdf0e10cSrcweir
63cdf0e10cSrcweir# --- Targets -------------------------------------------------------
64cdf0e10cSrcweir
65cdf0e10cSrcweirALLTAR:	$(MISC)$/$(TARGET).lst
66cdf0e10cSrcweir
67cdf0e10cSrcweir
68cdf0e10cSrcweir.INCLUDE: target.mk
69cdf0e10cSrcweir
70cdf0e10cSrcweir$(MISC)$/x$(TARGET).c: $(TARGET).cl $(CL2CSRC)
71cdf0e10cSrcweir	$(CL2C) $(TARGET).cl $(MISC)$/x$(TARGET).c $(CL2CSRC) $(CL2CRID)
72cdf0e10cSrcweir
73cdf0e10cSrcweir# copy file to include in package
74cdf0e10cSrcweir$(INCCOM)$/xlang.h : $(SOLARINCDIR)$/i18npool$/lang.h
75cdf0e10cSrcweir	@$(COPY) $(SOLARINCDIR)$/i18npool$/lang.h $@
76cdf0e10cSrcweir
77cdf0e10cSrcweir
78cdf0e10cSrcweir$(SLOFILES) : $(INCCOM)$/xlang.h $(CFILES)
79cdf0e10cSrcweir
80cdf0e10cSrcweir$(MISC)$/$(TARGET).lst : \
81cdf0e10cSrcweir	$(MISC)$/x$(TARGET).c \
82cdf0e10cSrcweir	$(INCCOM)$/xlang.h \
83cdf0e10cSrcweir	..$/inc$/$(TARGET).hrc \
84cdf0e10cSrcweir	..$/inc$/addin.h
85cdf0e10cSrcweir	echo $< > $@
86cdf0e10cSrcweir
87cdf0e10cSrcweir# --- Def-File ---
88cdf0e10cSrcweir
89cdf0e10cSrcweir# ------------------------------------------------------------------
90cdf0e10cSrcweir# Windows DEF File
91cdf0e10cSrcweir# ------------------------------------------------------------------
92cdf0e10cSrcweir
93cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
94cdf0e10cSrcweir
95cdf0e10cSrcweir$(MISC)$/$(SHL1TARGET).def: makefile.mk
96cdf0e10cSrcweir    @echo ------------------------------
97cdf0e10cSrcweir    @echo Making: $@
98cdf0e10cSrcweir    @echo LIBRARY     $(SHL1TARGET)>$@
99cdf0e10cSrcweir.IF "$(COM)"!="GCC"
100cdf0e10cSrcweir    @echo DESCRIPTION 'DateF StarCalc Addin DLL'>>$@
101cdf0e10cSrcweir    @echo DATA        READ WRITE NONSHARED>>$@
102cdf0e10cSrcweir.ENDIF
103cdf0e10cSrcweir    @echo EXPORTS>>$@
104cdf0e10cSrcweir    @echo     GetFunctionCount>>$@
105cdf0e10cSrcweir    @echo     GetFunctionData>>$@
106cdf0e10cSrcweir    @echo     GetParameterDescription>>$@
107cdf0e10cSrcweir    @echo     SetLanguage >>$@
108cdf0e10cSrcweir    @echo     ScDate_GetDiffWeeks>>$@
109cdf0e10cSrcweir    @echo     ScDate_GetDiffMonths>>$@
110cdf0e10cSrcweir    @echo     ScDate_GetDiffYears>>$@
111cdf0e10cSrcweir    @echo     ScDate_IsLeapYear>>$@
112cdf0e10cSrcweir    @echo     ScDate_DaysInMonth>>$@
113cdf0e10cSrcweir    @echo     ScDate_DaysInYear>>$@
114cdf0e10cSrcweir    @echo     ScDate_WeeksInYear>>$@
115cdf0e10cSrcweir
116cdf0e10cSrcweir.ENDIF
117cdf0e10cSrcweir
118cdf0e10cSrcweir.IF "$(GUI)"=="OS2"
119cdf0e10cSrcweir
120cdf0e10cSrcweir$(MISC)$/$(SHL1TARGET).def: makefile.mk
121cdf0e10cSrcweir    @echo ------------------------------
122cdf0e10cSrcweir    @echo Making: $@
123cdf0e10cSrcweir    @echo LIBRARY     $(SHL1TARGET) INITINSTANCE TERMINSTANCE >$@
124cdf0e10cSrcweir    @echo DATA        MULTIPLE>>$@
125cdf0e10cSrcweir    @echo EXPORTS>>$@
126cdf0e10cSrcweir    @echo     _GetFunctionCount>>$@
127cdf0e10cSrcweir    @echo     _GetFunctionData>>$@
128cdf0e10cSrcweir    @echo     _GetParameterDescription>>$@
129cdf0e10cSrcweir    @echo     _SetLanguage >>$@
130cdf0e10cSrcweir    @echo     _ScDate_GetDiffWeeks>>$@
131cdf0e10cSrcweir    @echo     _ScDate_GetDiffMonths>>$@
132cdf0e10cSrcweir    @echo     _ScDate_GetDiffYears>>$@
133cdf0e10cSrcweir    @echo     _ScDate_IsLeapYear>>$@
134cdf0e10cSrcweir    @echo     _ScDate_DaysInMonth>>$@
135cdf0e10cSrcweir    @echo     _ScDate_DaysInYear>>$@
136cdf0e10cSrcweir    @echo     _ScDate_WeeksInYear>>$@
137cdf0e10cSrcweir
138cdf0e10cSrcweir.ENDIF
139cdf0e10cSrcweir
140cdf0e10cSrcweir
141