xref: /aoo4110/main/basic/util/makefile.mk (revision b1cdbd2c)
1*b1cdbd2cSJim Jagielski#**************************************************************
2*b1cdbd2cSJim Jagielski#
3*b1cdbd2cSJim Jagielski#  Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski#  or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski#  distributed with this work for additional information
6*b1cdbd2cSJim Jagielski#  regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski#  to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski#  "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski#  with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski#
11*b1cdbd2cSJim Jagielski#    http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski#
13*b1cdbd2cSJim Jagielski#  Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski#  software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski#  KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski#  specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski#  under the License.
19*b1cdbd2cSJim Jagielski#
20*b1cdbd2cSJim Jagielski#**************************************************************
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim JagielskiPRJ=..
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim JagielskiPRJNAME=basic
27*b1cdbd2cSJim JagielskiTARGET=sb
28*b1cdbd2cSJim Jagielski#basic.hid generieren
29*b1cdbd2cSJim JagielskiGEN_HID=TRUE
30*b1cdbd2cSJim Jagielski
31*b1cdbd2cSJim Jagielski# --- Settings ---------------------------------------------------
32*b1cdbd2cSJim Jagielski
33*b1cdbd2cSJim Jagielski.INCLUDE :  settings.mk
34*b1cdbd2cSJim Jagielski
35*b1cdbd2cSJim Jagielski# --- Allgemein ---------------------------------------------------
36*b1cdbd2cSJim Jagielski
37*b1cdbd2cSJim JagielskiLIB1TARGET=$(SLB)$/sb.lib
38*b1cdbd2cSJim JagielskiLIB1FILES=		\
39*b1cdbd2cSJim Jagielski	$(SLB)$/basicmgr.lib \
40*b1cdbd2cSJim Jagielski	$(SLB)$/classes.lib \
41*b1cdbd2cSJim Jagielski	$(SLB)$/comp.lib \
42*b1cdbd2cSJim Jagielski    $(SLB)$/uno.lib \
43*b1cdbd2cSJim Jagielski	$(SLB)$/runtime.lib \
44*b1cdbd2cSJim Jagielski	$(SLB)$/sbx.lib
45*b1cdbd2cSJim Jagielski
46*b1cdbd2cSJim JagielskiSHL1TARGET= sb$(DLLPOSTFIX)
47*b1cdbd2cSJim JagielskiSHL1IMPLIB= basic
48*b1cdbd2cSJim Jagielski
49*b1cdbd2cSJim JagielskiSHL1STDLIBS= \
50*b1cdbd2cSJim Jagielski			$(CPPULIB) \
51*b1cdbd2cSJim Jagielski			$(CPPUHELPERLIB) \
52*b1cdbd2cSJim Jagielski			$(TOOLSLIB) \
53*b1cdbd2cSJim Jagielski			$(SVTOOLLIB) \
54*b1cdbd2cSJim Jagielski			$(SVLLIB)	\
55*b1cdbd2cSJim Jagielski			$(VCLLIB) \
56*b1cdbd2cSJim Jagielski			$(VOSLIB) \
57*b1cdbd2cSJim Jagielski			$(SALLIB) \
58*b1cdbd2cSJim Jagielski            $(SALHELPERLIB) \
59*b1cdbd2cSJim Jagielski			$(COMPHELPERLIB) \
60*b1cdbd2cSJim Jagielski			$(UNOTOOLSLIB) \
61*b1cdbd2cSJim Jagielski			$(SOTLIB) \
62*b1cdbd2cSJim Jagielski			$(VOSLIB) \
63*b1cdbd2cSJim Jagielski		    $(XMLSCRIPTLIB)
64*b1cdbd2cSJim Jagielski
65*b1cdbd2cSJim Jagielski# Uncomment the following line if DBG_TRACE_PROFILING is active in source/inc/sbtrace.hxx
66*b1cdbd2cSJim Jagielski# SHL1STDLIBS+=$(CANVASTOOLSLIB)
67*b1cdbd2cSJim Jagielski
68*b1cdbd2cSJim Jagielski.IF "$(SOLAR_JAVA)" != "TRUE"
69*b1cdbd2cSJim JagielskiSHL1STDLIBS+=$(SJLIB)
70*b1cdbd2cSJim Jagielski.ENDIF
71*b1cdbd2cSJim Jagielski
72*b1cdbd2cSJim Jagielski.IF "$(GUI)"=="WNT"
73*b1cdbd2cSJim JagielskiSHL1STDLIBS+=	\
74*b1cdbd2cSJim Jagielski	$(UWINAPILIB)	\
75*b1cdbd2cSJim Jagielski	$(OLEAUT32LIB)
76*b1cdbd2cSJim Jagielski.ENDIF # WNT
77*b1cdbd2cSJim Jagielski
78*b1cdbd2cSJim Jagielski.IF "$(GUI)" != "UNX"
79*b1cdbd2cSJim Jagielski.IF "$(COM)" != "GCC"
80*b1cdbd2cSJim JagielskiSHL1OBJS=	\
81*b1cdbd2cSJim Jagielski	$(SLO)$/sb.obj
82*b1cdbd2cSJim Jagielski.ENDIF
83*b1cdbd2cSJim Jagielski.ENDIF
84*b1cdbd2cSJim Jagielski
85*b1cdbd2cSJim JagielskiSHL1DEF=	$(MISC)$/$(SHL1TARGET).def
86*b1cdbd2cSJim JagielskiSHL1LIBS=	$(SLB)$/sb.lib
87*b1cdbd2cSJim Jagielski
88*b1cdbd2cSJim JagielskiDEF1NAME	=$(SHL1TARGET)
89*b1cdbd2cSJim JagielskiDEF1DEPN	=	\
90*b1cdbd2cSJim Jagielski	$(MISC)$/$(SHL1TARGET).flt
91*b1cdbd2cSJim Jagielski
92*b1cdbd2cSJim JagielskiDEFLIB1NAME	=sb
93*b1cdbd2cSJim JagielskiDEF1DES		=StarBasic
94*b1cdbd2cSJim Jagielski
95*b1cdbd2cSJim Jagielski
96*b1cdbd2cSJim JagielskiRES1TARGET=$(PRJNAME)
97*b1cdbd2cSJim JagielskiSRS1FILES= \
98*b1cdbd2cSJim Jagielski		$(SRS)$/classes.srs \
99*b1cdbd2cSJim Jagielski		$(SRS)$/sbx.srs
100*b1cdbd2cSJim Jagielski
101*b1cdbd2cSJim JagielskiRESLIB2NAME=sb
102*b1cdbd2cSJim JagielskiRESLIB2IMAGES=$(PRJ)$/res
103*b1cdbd2cSJim JagielskiRESLIB2SRSFILES= \
104*b1cdbd2cSJim Jagielski		$(SRS)$/classes.srs \
105*b1cdbd2cSJim Jagielski		$(SRS)$/sbx.srs
106*b1cdbd2cSJim Jagielski########## remove sbx.srx (and this line) when issue i53795 is fixed
107*b1cdbd2cSJim Jagielski
108*b1cdbd2cSJim Jagielski# --- Targets -----------------------------------------------------------
109*b1cdbd2cSJim Jagielski
110*b1cdbd2cSJim Jagielski.INCLUDE :  target.mk
111*b1cdbd2cSJim Jagielski
112*b1cdbd2cSJim Jagielski#-------------------------------------------------------------------------
113*b1cdbd2cSJim Jagielski#								Windows NT
114*b1cdbd2cSJim Jagielski#-------------------------------------------------------------------------
115*b1cdbd2cSJim Jagielski#
116*b1cdbd2cSJim Jagielski#					default targets aus target.mk
117*b1cdbd2cSJim Jagielski#
118*b1cdbd2cSJim Jagielski
119*b1cdbd2cSJim Jagielski# --- Basic-Filter-Datei ---
120*b1cdbd2cSJim Jagielski
121*b1cdbd2cSJim Jagielski$(MISC)$/$(SHL1TARGET).flt: makefile.mk
122*b1cdbd2cSJim Jagielski	@echo ------------------------------
123*b1cdbd2cSJim Jagielski	@echo Making: $@
124*b1cdbd2cSJim Jagielski	@echo WEP > $@
125*b1cdbd2cSJim Jagielski	@echo LIBMAIN >> $@
126*b1cdbd2cSJim Jagielski	@echo LibMain >> $@
127*b1cdbd2cSJim Jagielski	@echo Sbi >> $@
128*b1cdbd2cSJim Jagielski	@echo SvRTL >> $@
129*b1cdbd2cSJim Jagielski	@echo SbRtl_ >> $@
130*b1cdbd2cSJim Jagielski	@echo exception >> $@
131*b1cdbd2cSJim Jagielski	@echo bad_alloc >> $@
132*b1cdbd2cSJim Jagielski	@echo __CT >> $@
133*b1cdbd2cSJim Jagielski
134*b1cdbd2cSJim Jagielski$(SRS)$/basic.srs:
135*b1cdbd2cSJim Jagielski	$(TYPE) $(SRS)$/classes.srs + $(SRS)$/runtime.srs + $(SRS)$/sbx.srs > $@
136*b1cdbd2cSJim Jagielski
137*b1cdbd2cSJim JagielskiALLTAR : $(MISC)/sb.component
138*b1cdbd2cSJim Jagielski
139*b1cdbd2cSJim Jagielski$(MISC)/sb.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
140*b1cdbd2cSJim Jagielski        sb.component
141*b1cdbd2cSJim Jagielski    $(XSLTPROC) --nonet --stringparam uri \
142*b1cdbd2cSJim Jagielski        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
143*b1cdbd2cSJim Jagielski        $(SOLARENV)/bin/createcomponent.xslt sb.component
144