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 #*************************************************************************
34 TARGET
= test_javauno_any
36 PACKAGE
= test$/java_uno
$/anytest
38 ENABLE_EXCEPTIONS
= TRUE
43 GIVE_EXEC_RIGHTS
= @echo
45 GIVE_EXEC_RIGHTS
= chmod
+x
49 $(subst,$(CLASSDIR
)$/$(PACKAGE
)$/, $(subst,.class
,.java
$(JAVACLASSFILES
)))
51 # Make sure TestBed.class is found under $(CLASSDIR)$/test:
52 .IF
"$(XCLASSPATH)" == ""
53 XCLASSPATH
:= $(CLASSDIR
)$/test
55 XCLASSPATH
!:= $(XCLASSPATH
)$(PATH_SEPERATOR
)$(CLASSDIR
)$/test
58 EXEC_CLASSPATH_TMP
= \
59 $(foreach,i
,$(JARFILES
) $(SOLARBINDIR
)$/$i)$(PATH_SEPERATOR
)$(XCLASSPATH
)
61 $(strip $(subst,!,$(PATH_SEPERATOR
) $(EXEC_CLASSPATH_TMP
:s
/ /!/)))
63 JARFILES
= juh.jar jurt.jar ridl.jar
65 $(CLASSDIR
)$/$(PACKAGE
)$/TestAny.class \
66 $(CLASSDIR
)$/$(PACKAGE
)$/TestRemote.class \
67 $(CLASSDIR
)$/$(PACKAGE
)$/TestJni.class
69 #--------------------------------------------------
72 ENABLE_EXCEPTIONS
= TRUE
73 INCPRE
+= $(OUT
)$/inc
$/test
93 SHL1VERSIONMAP
=$(TARGET
).map
95 SHL1LIBS
=$(SLB
)$/$(TARGET
).lib
96 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
97 DEF1NAME
=$(SHL1TARGET
)
101 #--------------------------------------------------
103 $(SLOFILES
) : $(MISC
)$/gen_files.flag
104 $(JAVACLASSFILES
) : $(MISC
)$/gen_files.flag
107 $(OUT
)$/bin
$/TestRemote
$(SCRIPTEXT
) \
108 $(OUT
)$/bin
$/TestJni
$(SCRIPTEXT
)
110 $(OUT
)$/bin
$/TestRemote
$(SCRIPTEXT
) : $(JAVACLASSFILES
)
112 echo java
-classpath ..
$/class
$/test$(PATH_SEPERATOR
)..
$/class
$(PATH_SEPERATOR
)$(EXEC_CLASSPATH
) \
113 test.java_uno.anytest.TestRemote
> $@
114 $(GIVE_EXEC_RIGHTS
) $@
116 $(OUT
)$/bin
$/TestJni
$(SCRIPTEXT
) : $(JAVACLASSFILES
)
118 echo
'$(AUGMENT_LIBRARY_PATH)' java
-classpath \
119 .
$(PATH_SEPERATOR
)..
$/class
$(PATH_SEPERATOR
)$(EXEC_CLASSPATH
) \
120 -Djava.library.path
=..
$/lib
test.java_uno.anytest.TestJni
>> $@
121 $(GIVE_EXEC_RIGHTS
) $@
123 $(BIN
)$/test_java_uno_anytest.rdb
: types.idl
124 $(IDLC
) -I
$(PRJ
) -I
$(SOLARIDLDIR
) -O
$(BIN
) $?
125 $(REGMERGE
) $@
/UCR
$(BIN
)$/{$(?
:f
:s
/.idl
/.urd
/)}
127 $(MISC
)$/gen_files.flag
: $(BIN
)$/test_java_uno_anytest.rdb
128 $(CPPUMAKER
) -C
-BUCR
-O
$(OUT
)$/inc
$/test -X
$(SOLARBINDIR
)$/udkapi.rdb
$?
129 $(CPPUMAKER
) -C
-BUCR
-O
$(OUT
)$/inc
$/test -T com.sun.star.uno.XInterface
$(SOLARBINDIR
)$/udkapi.rdb
130 $(JAVAMAKER
) -nD
-BUCR
-O
$(CLASSDIR
) -X
$(SOLARBINDIR
)$/udkapi.rdb
$?