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