xref: /aoo41x/main/basic/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=..
29
30PRJNAME=basic
31TARGET=sb
32#basic.hid generieren
33GEN_HID=TRUE
34
35# --- Settings ---------------------------------------------------
36
37.INCLUDE :  settings.mk
38
39# --- Allgemein ---------------------------------------------------
40
41LIB1TARGET=$(SLB)$/sb.lib
42LIB1FILES=		\
43	$(SLB)$/basicmgr.lib \
44	$(SLB)$/classes.lib \
45	$(SLB)$/comp.lib \
46    $(SLB)$/uno.lib \
47	$(SLB)$/runtime.lib \
48	$(SLB)$/sbx.lib
49
50SHL1TARGET= sb$(DLLPOSTFIX)
51SHL1IMPLIB= basic
52
53SHL1STDLIBS= \
54			$(CPPULIB) \
55			$(CPPUHELPERLIB) \
56			$(TOOLSLIB) \
57			$(SVTOOLLIB) \
58			$(SVLLIB)	\
59			$(VCLLIB) \
60			$(VOSLIB) \
61			$(SALLIB) \
62            $(SALHELPERLIB) \
63			$(COMPHELPERLIB) \
64			$(UNOTOOLSLIB) \
65			$(SOTLIB) \
66			$(VOSLIB) \
67		    $(XMLSCRIPTLIB)
68
69# Uncomment the following line if DBG_TRACE_PROFILING is active in source/inc/sbtrace.hxx
70# SHL1STDLIBS+=$(CANVASTOOLSLIB)
71
72.IF "$(SOLAR_JAVA)" != "TRUE"
73SHL1STDLIBS+=$(SJLIB)
74.ENDIF
75
76.IF "$(GUI)"=="WNT"
77SHL1STDLIBS+=	\
78	$(UWINAPILIB)	\
79	$(OLEAUT32LIB)
80.ENDIF # WNT
81
82.IF "$(GUI)" != "UNX"
83.IF "$(COM)" != "GCC"
84SHL1OBJS=	\
85	$(SLO)$/sb.obj
86.ENDIF
87.ENDIF
88
89SHL1DEF=	$(MISC)$/$(SHL1TARGET).def
90SHL1LIBS=	$(SLB)$/sb.lib
91
92DEF1NAME	=$(SHL1TARGET)
93DEF1DEPN	=	\
94	$(MISC)$/$(SHL1TARGET).flt
95
96DEFLIB1NAME	=sb
97DEF1DES		=StarBasic
98
99
100RES1TARGET=$(PRJNAME)
101SRS1FILES= \
102		$(SRS)$/classes.srs \
103		$(SRS)$/sbx.srs
104
105# --- TESTTOOL IDE ------------------------------------------------------
106# The resources are linked here
107
108RESLIB1NAME=stt
109RESLIB1IMAGES=$(PRJ)$/res
110RESLIB1SRSFILES= \
111		$(SRS)$/app.srs
112
113RESLIB2NAME=sb
114RESLIB2IMAGES=$(PRJ)$/res
115RESLIB2SRSFILES= \
116		$(SRS)$/classes.srs \
117		$(SRS)$/sbx.srs
118########## remove sbx.srx (and this line) when issue i53795 is fixed
119
120# --- Targets -----------------------------------------------------------
121
122.INCLUDE :  target.mk
123
124#-------------------------------------------------------------------------
125#								Windows NT
126#-------------------------------------------------------------------------
127#
128#					default targets aus target.mk
129#
130
131# --- Basic-Filter-Datei ---
132
133$(MISC)$/$(SHL1TARGET).flt: makefile.mk
134	@echo ------------------------------
135	@echo Making: $@
136	@echo WEP > $@
137	@echo LIBMAIN >> $@
138	@echo LibMain >> $@
139	@echo Sbi >> $@
140	@echo SvRTL >> $@
141	@echo SbRtl_ >> $@
142	@echo exception >> $@
143	@echo bad_alloc >> $@
144	@echo __CT >> $@
145
146$(SRS)$/basic.srs:
147	$(TYPE) $(SRS)$/classes.srs + $(SRS)$/runtime.srs + $(SRS)$/sbx.srs > $@
148
149ALLTAR : $(MISC)/sb.component
150
151$(MISC)/sb.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
152        sb.component
153    $(XSLTPROC) --nonet --stringparam uri \
154        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
155        $(SOLARENV)/bin/createcomponent.xslt sb.component
156