1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
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 #*************************************************************************
35 TARGET
:= test_javauno_nativethreadpool
36 PACKAGE
:= test$/javauno
$/nativethreadpool
38 ENABLE_EXCEPTIONS
:= TRUE
41 .IF
"$(OS)" == "LINUX"
42 JVM_LIB_URL
:= file
:///net
/grande.germany
/develop6
/update
/dev
/Linux_JDK_1.4
.1_03
/jre
/lib
/i386
/client
/libjvm.so
44 ERROR
-- missing platform
49 DLLPRE
= # no leading "lib" on .so files
50 INCPRE
+= $(MISC
)$/$(TARGET
)$/inc
52 SHL1TARGET
= $(TARGET
)_client.uno
53 SHL1OBJS
= $(SLO
)$/testnativethreadpoolclient.obj
54 SHL1STDLIBS
= $(CPPULIB
) $(CPPUHELPERLIB
) $(SALLIB
)
55 SHL1VERSIONMAP
= version.map
56 SHL1IMPLIB
= i
$(TARGET
)_client
58 SHL2TARGET
= $(TARGET
)_server.uno
59 SHL2OBJS
= $(SLO
)$/testnativethreadpoolserver.obj
60 SHL2STDLIBS
= $(CPPULIB
) $(CPPUHELPERLIB
) $(SALLIB
)
61 SHL2VERSIONMAP
= version.map
62 SHL2IMPLIB
= i
$(TARGET
)_server
64 SLOFILES
= $(SHL1OBJS
) $(SHL2OBJS
)
66 JAVAFILES
= Relay.java
67 JARFILES
= java_uno.jar juh.jar jurt.jar ridl.jar
73 EXEC_CLASSPATH_TMP
= $(foreach,i
,$(JARFILES
) $(SOLARBINDIR
)$/$i)
75 $(strip $(subst,!,$(PATH_SEPERATOR
) $(EXEC_CLASSPATH_TMP
:s
/ /!/)))
77 $(MISC
)$/$(TARGET
)$/types.rdb
: types.idl
79 - $(MKDIR
) $(MISC
)$/$(TARGET
)
80 - $(MKDIR
) $(MISC
)$/$(TARGET
)$/inc
81 $(IDLC
) -I
$(SOLARIDLDIR
) -O
$(MISC
)$/$(TARGET
) $<
82 $(REGMERGE
) $@
/UCR
$(MISC
)$/$(TARGET
)$/types.urd
83 $(CPPUMAKER
) -BUCR
-C
-O
$(MISC
)$/$(TARGET
)$/inc
$@
-X
$(SOLARBINDIR
)$/types.rdb
84 $(JAVAMAKER
) -BUCR
-nD
-O
$(CLASSDIR
) $@
-X
$(SOLARBINDIR
)$/types.rdb
86 $(SLOFILES
) $(JAVACLASSFILES
): $(MISC
)$/$(TARGET
)$/types.rdb
88 $(BIN
)$/$(TARGET
).uno.jar
: $(JAVACLASSFILES
) relay.manifest
89 jar cfm
$@ relay.manifest
-C
$(CLASSDIR
) test/javauno
/nativethreadpool
91 $(BIN
)$/$(TARGET
).rdb .ERRREMOVE
: $(MISC
)$/$(TARGET
)$/types.rdb \
92 $(BIN
)$/$(TARGET
).uno.jar
93 cp
$(MISC
)$/$(TARGET
)$/types.rdb
$@
94 $(REGMERGE
) $@
/ $(SOLARBINDIR
)$/types.rdb
95 $(REGCOMP
) -register
-r
$@
-c acceptor.uno
$(DLLPOST
) \
96 -c bridgefac.uno
$(DLLPOST
) -c connector.uno
$(DLLPOST
) \
97 -c remotebridge.uno
$(DLLPOST
) -c uuresolver.uno
$(DLLPOST
) \
98 -c javaloader.uno
$(DLLPOST
) -c javavm.uno
$(DLLPOST
) \
99 -c stocservices.uno
$(DLLPOST
)
100 cp
$(SOLARBINDIR
)$/types.rdb
$(MISC
)$/$(TARGET
)$/bootstrap.rdb
101 $(REGCOMP
) -register
-r
$(MISC
)$/$(TARGET
)$/bootstrap.rdb \
102 -c javaloader.uno
$(DLLPOST
) -c javavm.uno
$(DLLPOST
) \
103 -c stocservices.uno
$(DLLPOST
)
104 .IF
"$(GUI)" == "WNT" ||
"$(USE_SHELL)" != "bash"
105 ERROR
-- missing platform
107 + export OO_JAVA_PROPERTIES
='RuntimeLib=$(JVM_LIB_URL)' && \
108 $(REGCOMP
) -register
-r
$@
-c file
://$(PWD
)/$(BIN
)$/$(TARGET
).uno.jar \
109 -br
$(MISC
)$/$(TARGET
)$/bootstrap.rdb
-classpath
$(EXEC_CLASSPATH
) \
110 -env
:URE_INTERNAL_JAVA_DIR
=file
://$(SOLARBINDIR
)
113 test .PHONY
: $(SHL1TARGETN
) $(BIN
)$/$(TARGET
).uno.jar
$(BIN
)$/$(TARGET
).rdb
114 .IF
"$(GUI)" == "WNT" ||
"$(USE_SHELL)" != "bash"
115 ERROR
-- missing platform
117 $(AUGMENT_LIBRARY_PATH
) uno
-c
test.javauno.nativethreadpool.server \
118 -l
$(SHL2TARGETN
) -ro
$(BIN
)$/$(TARGET
).rdb \
119 -u
'uno:socket,host=localhost,port=3830;urp;test' --singleaccept
&
120 + $(AUGMENT_LIBRARY_PATH
) OO_JAVA_PROPERTIES
='RuntimeLib=$(JVM_LIB_URL)' \
121 CLASSPATH
=$(EXEC_CLASSPATH
)$(PATH_SEPERATOR
)$(BIN
)$/$(TARGET
).uno.jar \
122 uno
-c
test.javauno.nativethreadpool.client
-l
$(SHL1TARGETN
) \
123 -ro
$(BIN
)$/$(TARGET
).rdb \
124 -env
:URE_INTERNAL_JAVA_DIR
=file
://$(SOLARBINDIR
)