xref: /aoo42x/main/stoc/source/javavm/makefile.mk (revision 7871dc3e)
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
23PRJ=..$/..
24
25PRJNAME=stoc
26TARGET = javavm.uno
27ENABLE_EXCEPTIONS=TRUE
28COMP1TYPELIST = jen
29
30.IF "$(SOLAR_JAVA)" == "TRUE"
31# --- Settings -----------------------------------------------------
32
33.INCLUDE :  settings.mk
34DLLPRE =
35
36# --- Files --------------------------------------------------------
37
38# Kollision zwischen bool.h aus Java und bool.h aus der STL.
39# Das Problem tritt fuer alle Plattformen auf, aber anscheinend stolpert nur der
40# GCC darueber
41.IF "$(COM)" == "GCC"
42CDEFS += -D__SGI_STL_BOOL_H
43.ENDIF
44
45.INCLUDE :  ..$/cppumaker.mk
46
47SLOFILES= \
48		$(SLO)$/javavm.obj		\
49		$(SLO)$/jvmargs.obj	\
50		$(SLO)$/interact.obj
51
52SHL1TARGET= $(TARGET)
53SHL1VERSIONMAP = $(SOLARENV)/src/component.map
54SHL1STDLIBS= \
55		$(CPPUHELPERLIB) 	\
56		$(CPPULIB)	    	\
57		$(SALLIB) \
58        $(JVMACCESSLIB) \
59        $(SALHELPERLIB) \
60	$(JVMFWKLIB)
61
62.IF "$(GUI)"=="WNT"
63SHL1STDLIBS += $(ADVAPI32LIB)
64.ENDIF
65
66SHL1DEPN=
67SHL1IMPLIB=		i$(TARGET)
68SHL1LIBS=		$(SLB)$/$(TARGET).lib
69SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
70SHL1RPATH=      URELIB
71
72DEF1NAME=		$(SHL1TARGET)
73
74.ELSE		# SOLAR_JAVA
75all:
76	@echo Nothing to do: SOLAR_JAVA not set
77.ENDIF
78
79# --- Targets ------------------------------------------------------
80
81
82.INCLUDE :	target.mk
83
84ALLTAR : $(MISC)/javavm.component
85
86$(MISC)/javavm.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
87        javavm.component
88    $(XSLTPROC) --nonet --stringparam uri \
89        '$(COMPONENTPREFIX_URE_NATIVE)$(SHL1TARGETN:f)' -o $@ \
90        $(SOLARENV)/bin/createcomponent.xslt javavm.component
91