xref: /aoo41x/main/formula/util/makefile.mk (revision 52845faf)
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=..
25PRJNAME=formula
26TARGET=for
27TARGET2=forui
28USE_DEFFILE=TRUE
29GEN_HID=TRUE
30GEN_HID_OTHER=TRUE
31
32# USE_LDUMP2=TRUE
33# --- Settings ----------------------------------
34.INCLUDE :  settings.mk
35
36
37# --- formula core (for) -----------------------------------
38
39LIB1TARGET=$(SLB)$/$(TARGET).lib
40LIB1FILES=\
41		$(SLB)$/core_resource.lib \
42		$(SLB)$/core_api.lib
43
44SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
45
46SHL1STDLIBS= \
47		$(TOOLSLIB) 			\
48		$(SVTOOLLIB)			\
49                $(SVLLIB) \
50		$(UNOTOOLSLIB)			\
51		$(COMPHELPERLIB) 		\
52		$(CPPUHELPERLIB) 		\
53		$(CPPULIB)				\
54		$(VCLLIB)				\
55		$(SALLIB)
56
57SHL1IMPLIB=i$(TARGET)
58SHL1USE_EXPORTS=name
59SHL1LIBS=$(LIB1TARGET)
60SHL1DEF=$(MISC)$/$(SHL1TARGET).def
61
62DEF1NAME=$(SHL1TARGET)
63DEFLIB1NAME=$(TARGET)
64
65# --- .res file ----------------------------------------------------------
66
67RES1FILELIST=\
68	$(SRS)$/core_strings.srs
69
70RESLIB1NAME=$(TARGET)
71RESLIB1IMAGES=$(PRJ)$/res
72RESLIB1SRSFILES=$(RES1FILELIST)
73
74
75# --- formula UI core (forui) -----------------------------------
76LIB2TARGET=$(SLB)$/$(TARGET2).lib
77LIB2FILES=\
78		$(SLB)$/uidlg.lib \
79		$(SLB)$/ui_resource.lib
80
81SHL2TARGET=$(TARGET2)$(DLLPOSTFIX)
82
83SHL2STDLIBS= \
84		$(SFXLIB)				\
85		$(SVTOOLLIB)			\
86		$(SVLLIB)  \
87		$(VCLLIB)				\
88		$(UNOTOOLSLIB)			\
89		$(TOOLSLIB)				\
90		$(CPPULIB)				\
91		$(SO2LIB)				\
92		$(CPPUHELPERLIB)        \
93		$(SALLIB)
94
95.IF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
96SHL2STDLIBS+= \
97		-lfor$(DLLPOSTFIX)
98SHL2DEPN=$(SHL1TARGETN)
99.ELSE
100SHL2STDLIBS+= \
101		$(LB)$/ifor.lib
102SHL2DEPN=$(LB)$/i$(TARGET).lib
103.ENDIF
104
105
106SHL2IMPLIB=i$(TARGET2)
107SHL2LIBS=$(LIB2TARGET)
108SHL2DEF=$(MISC)$/$(SHL2TARGET).def
109DEF2NAME=$(SHL2TARGET)
110.IF "$(GUI)"=="OS2"
111DEFLIB2NAME=$(TARGET2)
112.ENDIF
113
114SHL2USE_EXPORTS=name
115
116# --- .res file ----------------------------------------------------------
117
118RES2FILELIST=\
119	$(SRS)$/uidlg.srs
120
121
122RESLIB2NAME=$(TARGET2)
123RESLIB2IMAGES=$(PRJ)$/res
124RESLIB2SRSFILES=$(RES2FILELIST)
125
126
127# --- Targets ----------------------------------
128
129.INCLUDE : target.mk
130
131
132ALLTAR : $(MISC)/for.component
133
134$(MISC)/for.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
135        for.component
136    $(XSLTPROC) --nonet --stringparam uri \
137        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
138        $(SOLARENV)/bin/createcomponent.xslt for.component
139