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= jvmfwk
26
27TARGET = plugin
28
29ENABLE_EXCEPTIONS=TRUE
30
31LIBTARGET=NO
32
33UNOCOMPONENT1=sunjavaplugin
34
35# --- Settings -----------------------------------------------------
36
37.INCLUDE :  settings.mk
38DLLPRE =
39
40# ------------------------------------------------------------------
41
42#.INCLUDE :  ..$/cppumaker.mk
43.IF "$(SOLAR_JAVA)"!=""
44
45SLOFILES= \
46	$(SLO)$/sunversion.obj \
47	$(SLO)$/sunjavaplugin.obj \
48	$(SLO)$/vendorbase.obj \
49	$(SLO)$/util.obj \
50	$(SLO)$/sunjre.obj \
51	$(SLO)$/gnujre.obj \
52	$(SLO)$/vendorlist.obj \
53	$(SLO)$/otherjre.obj
54
55LIB1OBJFILES= $(SLOFILES)
56
57
58
59LIB1TARGET=$(SLB)$/$(UNOCOMPONENT1).lib
60
61SHL1TARGET=	$(UNOCOMPONENT1)
62
63
64SHL1STDLIBS= \
65		$(CPPULIB) \
66		$(CPPUHELPER) \
67		$(SALLIB) \
68		$(SALHELPERLIB)
69
70
71.IF "$(GUI)" == "WNT"
72.IF "$(COM)"!="GCC"
73SHL1STDLIBS += uwinapi.lib advapi32.lib
74.ELSE
75SHL1STDLIBS += -luwinapi -ladvapi32
76.ENDIF # GCC
77.ENDIF #WNT
78
79SHL1VERSIONMAP = sunjavaplugin.map
80SHL1DEPN=
81SHL1IMPLIB=	i$(UNOCOMPONENT1)
82SHL1LIBS=	$(LIB1TARGET)
83SHL1DEF=	$(MISC)$/$(SHL1TARGET).def
84DEF1NAME=	$(SHL1TARGET)
85SHL1RPATH=  URELIB
86
87JAVACLASSFILES= \
88    $(CLASSDIR)$/JREProperties.class
89
90JAVAFILES = $(subst,$(CLASSDIR)$/, $(subst,.class,.java $(JAVACLASSFILES)))
91
92.ENDIF # SOLAR_JAVA
93
94
95
96# --- Targets ------------------------------------------------------
97
98.INCLUDE :	target.mk
99
100.IF "$(GUI)"=="WNT"
101BOOTSTRAPFILE=$(BIN)$/sunjavaplugin.ini
102.ELSE
103BOOTSTRAPFILE=$(BIN)$/sunjavapluginrc
104.ENDIF
105
106
107$(BOOTSTRAPFILE): sunjavapluginrc
108	-$(COPY) $< $@
109
110
111ALLTAR: \
112	$(BOOTSTRAPFILE)
113
114