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