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 #*************************************************************************
38 ENABLE_EXCEPTIONS
=TRUE
40 # --- Settings -----------------------------------------------------
42 .INCLUDE
: settings.mk
44 # --- Files --------------------------------------------------------
45 ALLIDLFILES
= test_bridge.idl
49 UNOUCRDEP
=$(SOLARBINDIR
)$/udkapi.rdb
$(BIN
)$/test.rdb
50 UNOUCRRDB
=$(SOLARBINDIR
)$/udkapi.rdb
$(BIN
)$/test.rdb
52 # output directory (one dir for each project)
55 # adding to inludeoath
57 CFLAGS
+= -I..
$/source
$/remote
$/urp
60 com.sun.star.uno.XWeak\
61 com.sun.star.uno.XNamingService\
62 com.sun.star.uno.XAggregation \
63 com.sun.star.uno.TypeClass\
64 com.sun.star.io.XInputStream\
65 com.sun.star.io.XOutputStream\
66 com.sun.star.lang.XInitialization \
67 com.sun.star.lang.XSingleServiceFactory \
68 com.sun.star.lang.XMultiServiceFactory \
69 com.sun.star.lang.XTypeProvider \
70 com.sun.star.registry.XSimpleRegistry \
71 com.sun.star.loader.XImplementationLoader \
72 com.sun.star.registry.XImplementationRegistration \
73 com.sun.star.corba.giop.TargetAddress \
74 com.sun.star.corba.giop.TargetAddressGroup \
75 com.sun.star.lang.XComponent \
76 com.sun.star.bridge.XBridgeFactory\
77 com.sun.star.connection.XAcceptor\
78 com.sun.star.connection.XConnector\
79 com.sun.star.beans.Property\
80 com.sun.star.corba.giop.RequestHeader_1_2\
81 com.sun.star.container.XSet\
82 com.sun.star.lang.XServiceInfo\
84 com.sun.star.
test.performance.XPerformanceTest \
85 com.sun.star.lang.XMain \
86 com.sun.star.lang.XMultiComponentFactory \
87 com.sun.star.lang.XSingleComponentFactory
89 JARFILES
= jurt.jar unoil.jar
92 $(OBJ
)$/testserver.obj \
93 $(OBJ
)$/testclient.obj \
94 $(OBJ
)$/testcomp.obj \
95 $(OBJ
)$/testsameprocess.obj
98 APP2TARGET
= testserver
99 APP2OBJS
= $(OBJ
)$/testserver.obj \
102 .IF
"$(OS)" == "LINUX"
103 APP2STDLIBS
+= -lstdc
++
111 APP3TARGET
= testclient
112 APP3OBJS
= $(OBJ
)$/testclient.obj \
115 .IF
"$(OS)" == "LINUX"
116 APP3STDLIBS
+= -lstdc
++
124 #----------------------------------
126 APP4TARGET
= testsameprocess
127 APP4OBJS
= $(OBJ
)$/testsameprocess.obj \
130 .IF
"$(OS)" == "LINUX"
131 APP4STDLIBS
+= -lstdc
++
139 APP4DEF
= $(MISC
)$/$(APP4TARGET
).def
141 #----------------------------------
143 # APP5TARGET= testoffice
144 # APP5OBJS= $(OBJ)$/testoffice.obj \
145 # $(OBJ)$/testcomp.obj
147 # .IF "$(OS)" == "LINUX"
148 # APP5STDLIBS+= -lstdc++
156 # APP5DEF= $(MISC)$/$(APP5TARGET).def
159 # --- Targets ------------------------------------------------------
163 ALLTAR
: $(BIN
)$/test.rdb \
167 $(BIN
)$/test.rdb
: $(ALLIDLFILES
)
168 $(IDLC
) -I
$(PRJ
) -I
$(SOLARIDLDIR
) -O
$(BIN
) $?
169 $(REGMERGE
) $@
/UCR
$(BIN
)$/{$(?
:f
:s
/.idl
/.urd
/)}
172 $(BIN
)$/client.rdb
: $(BIN
)$/test.rdb
173 rm -f
$(BIN
)$/client.rdb
174 $(REGMERGE
) $@
/ $(BIN
)$/test.rdb
$(SOLARBINDIR
)$/udkapi.rdb
176 $(BIN
)$/server.rdb
: $(BIN
)$/test.rdb
177 rm -f
$(BIN
)$/client.rdb
178 $(REGMERGE
) $@
/ $(BIN
)$/test.rdb
$(SOLARBINDIR
)$/udkapi.rdb