Update ooo320-m1
[ooovba.git] / bridges / test / java_uno / equals / makefile.mk
blob4064b5e48f0998074c12081aee176f94ca5914fa
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.7 $
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 #*************************************************************************
32 PRJ = ..$/..$/..
33 PRJNAME = bridges
35 TARGET = test_javauno_equals
36 PACKAGE = test$/java_uno$/equals
38 ENABLE_EXCEPTIONS = TRUE
40 .INCLUDE: settings.mk
42 # Make sure TestBed.class is found under $(CLASSDIR)$/test:
43 .IF "$(XCLASSPATH)" == ""
44 XCLASSPATH := $(CLASSDIR)$/test
45 .ELSE
46 XCLASSPATH !:= $(XCLASSPATH)$(PATH_SEPERATOR)$(CLASSDIR)$/test
47 .ENDIF
49 DLLPRE = # no leading "lib" on .so files
50 INCPRE += $(MISC)$/$(TARGET)$/inc
52 SLOFILES = $(SLO)$/testequals.obj
54 SHL1TARGET = testequals.uno
55 SHL1OBJS = $(SLOFILES)
56 SHL1STDLIBS = $(CPPULIB) $(CPPUHELPERLIB) $(SALLIB)
57 SHL1VERSIONMAP = testequals.map
58 SHL1IMPLIB = itestequals
60 JAVAFILES = TestEquals.java
61 JARFILES = juh.jar jurt.jar ridl.jar
63 .INCLUDE: target.mk
65 ALLTAR: $(BIN)$/testequals$(SCRIPTEXT)
67 .IF "$(GUI)" == "WNT"
68 GIVE_EXEC_RIGHTS = @echo
69 .ELSE # GUI, WNT
70 GIVE_EXEC_RIGHTS = chmod +x
71 .ENDIF # GUI, WNT
73 EXEC_CLASSPATH_TMP = $(foreach,i,$(JARFILES) $(SOLARBINDIR)$/$i)
74 EXEC_CLASSPATH = \
75 $(strip $(subst,!,$(PATH_SEPERATOR) $(EXEC_CLASSPATH_TMP:s/ /!/)))
77 $(MISC)$/$(TARGET).rdb: types.idl
78 - rm $@
79 - $(MKDIR) $(MISC)$/$(TARGET)
80 - $(MKDIR) $(MISC)$/$(TARGET)$/inc
81 $(IDLC) -I$(SOLARIDLDIR) -O$(MISC)$/$(TARGET) $<
82 $(REGMERGE) $(MISC)$/$(TARGET).rdb /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).rdb
88 $(BIN)$/testequals$(SCRIPTEXT): $(BIN)$/testequals_services.rdb
89 echo '$(AUGMENT_LIBRARY_PATH)' java -classpath \
90 ..$/class$/test$(PATH_SEPERATOR)..$/class$(PATH_SEPERATOR)\
91 ..$/class$/java_uno.jar$(PATH_SEPERATOR)$(EXEC_CLASSPATH) \
92 test.java_uno.equals.TestEquals $(SOLARBINDIR)$/types.rdb \
93 testequals_services.rdb > $@
94 $(GIVE_EXEC_RIGHTS) $@
96 $(BIN)$/testequals_services.rdb:
97 - rm $@
98 $(REGCOMP) -register -r $@ -c bridgefac.uno
99 $(REGCOMP) -register -r $@ -c connector.uno
100 $(REGCOMP) -register -r $@ -c remotebridge.uno