merge the formfield patch from ooo-build
[ooovba.git] / basic / util / makefile.mk
blob76385e91c16c2caec8071c853209ceecffd3fed7
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.24 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..
34 PRJNAME=basic
35 TARGET=sb
36 #basic.hid generieren
37 GEN_HID=TRUE
39 # --- Settings ---------------------------------------------------
41 .INCLUDE : settings.mk
43 # --- Allgemein ---------------------------------------------------
45 LIB1TARGET=$(SLB)$/sb.lib
46 LIB1FILES= \
47 $(SLB)$/basicmgr.lib \
48 $(SLB)$/classes.lib \
49 $(SLB)$/comp.lib \
50 $(SLB)$/uno.lib \
51 $(SLB)$/runtime.lib \
52 $(SLB)$/sbx.lib
54 SHL1TARGET= sb$(DLLPOSTFIX)
55 SHL1IMPLIB= basic
57 SHL1STDLIBS= \
58 $(CPPULIB) \
59 $(CPPUHELPERLIB) \
60 $(TOOLSLIB) \
61 $(SVTOOLLIB) \
62 $(SVLLIB) \
63 $(VCLLIB) \
64 $(VOSLIB) \
65 $(SALLIB) \
66 $(COMPHELPERLIB) \
67 $(UNOTOOLSLIB) \
68 $(SOTLIB) \
69 $(VOSLIB) \
70 $(XMLSCRIPTLIB)
72 .IF "$(SOLAR_JAVA)" != "TRUE"
73 SHL1STDLIBS+=$(SJLIB)
74 .ENDIF
76 .IF "$(GUI)"=="WNT"
77 SHL1STDLIBS+= \
78 $(UWINAPILIB) \
79 $(OLEAUT32LIB)
80 .ENDIF # WNT
82 .IF "$(GUI)" != "UNX"
83 .IF "$(COM)" != "GCC"
84 SHL1OBJS= \
85 $(SLO)$/sb.obj
86 .ENDIF
87 .ENDIF
89 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
90 SHL1LIBS= $(SLB)$/sb.lib
92 DEF1NAME =$(SHL1TARGET)
93 DEF1DEPN = \
94 $(MISC)$/$(SHL1TARGET).flt
96 DEFLIB1NAME =sb
97 DEF1DES =StarBasic
100 RES1TARGET=$(PRJNAME)
101 SRS1FILES= \
102 $(SRS)$/classes.srs \
103 $(SRS)$/sbx.srs
105 # --- TESTTOOL IDE ------------------------------------------------------
106 # The resources are linked here
108 RESLIB1NAME=stt
109 RESLIB1IMAGES=$(PRJ)$/res
110 RESLIB1SRSFILES= \
111 $(SRS)$/app.srs
113 RESLIB2NAME=sb
114 RESLIB2IMAGES=$(PRJ)$/res
115 RESLIB2SRSFILES= \
116 $(SRS)$/classes.srs \
117 $(SRS)$/sbx.srs
118 ########## remove sbx.srx (and this line) when issue i53795 is fixed
120 # --- Targets -----------------------------------------------------------
122 .INCLUDE : target.mk
124 #-------------------------------------------------------------------------
125 # Windows NT
126 #-------------------------------------------------------------------------
128 # default targets aus target.mk
131 # --- Basic-Filter-Datei ---
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 >> $@
146 $(SRS)$/basic.srs:
147 $(TYPE) $(SRS)$/classes.srs + $(SRS)$/runtime.srs + $(SRS)$/sbx.srs > $@