merge the formfield patch from ooo-build
[ooovba.git] / bridges / test / makefile.mk
blob5a4cffb500ab45538513bc6e69a63e13f91f8ee3
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.14 $
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=..
34 PRJNAME=bridges
35 TARGET=test
36 LIBTARGET=NO
37 TARGETTYPE=CUI
38 ENABLE_EXCEPTIONS=TRUE
40 # --- Settings -----------------------------------------------------
42 .INCLUDE : settings.mk
44 # --- Files --------------------------------------------------------
45 ALLIDLFILES = test_bridge.idl
46 CPPUMAKERFLAGS += -C
49 UNOUCRDEP=$(SOLARBINDIR)$/udkapi.rdb $(BIN)$/test.rdb
50 UNOUCRRDB=$(SOLARBINDIR)$/udkapi.rdb $(BIN)$/test.rdb
52 # output directory (one dir for each project)
53 UNOUCROUT=$(OUT)$/inc
55 # adding to inludeoath
56 INCPRE+=$(UNOUCROUT)
57 CFLAGS += -I..$/source$/remote$/urp
59 UNOTYPES = \
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\
83 test.XTestFactory \
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
91 OBJFILES= \
92 $(OBJ)$/testserver.obj \
93 $(OBJ)$/testclient.obj \
94 $(OBJ)$/testcomp.obj \
95 $(OBJ)$/testsameprocess.obj
98 APP2TARGET= testserver
99 APP2OBJS= $(OBJ)$/testserver.obj \
100 $(OBJ)$/testcomp.obj
102 .IF "$(OS)" == "LINUX"
103 APP2STDLIBS+= -lstdc++
104 .ENDIF
106 APP2STDLIBS+= \
107 $(CPPULIB) \
108 $(CPPUHELPERLIB) \
109 $(SALLIB)
111 APP3TARGET= testclient
112 APP3OBJS= $(OBJ)$/testclient.obj \
113 $(OBJ)$/testcomp.obj
115 .IF "$(OS)" == "LINUX"
116 APP3STDLIBS+= -lstdc++
117 .ENDIF
119 APP3STDLIBS+= \
120 $(CPPULIB) \
121 $(CPPUHELPERLIB) \
122 $(SALLIB)
124 #----------------------------------
126 APP4TARGET= testsameprocess
127 APP4OBJS= $(OBJ)$/testsameprocess.obj \
128 $(OBJ)$/testcomp.obj
130 .IF "$(OS)" == "LINUX"
131 APP4STDLIBS+= -lstdc++
132 .ENDIF
134 APP4STDLIBS+= \
135 $(CPPULIB) \
136 $(CPPUHELPERLIB) \
137 $(SALLIB)
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++
149 # .ENDIF
151 # APP5STDLIBS+= \
152 # $(CPPULIB) \
153 # $(CPPUHELPERLIB)\
154 # $(SALLIB)
156 # APP5DEF= $(MISC)$/$(APP5TARGET).def
159 # --- Targets ------------------------------------------------------
161 .INCLUDE : target.mk
163 ALLTAR : $(BIN)$/test.rdb \
164 $(BIN)$/server.rdb \
165 $(BIN)$/client.rdb
167 $(BIN)$/test.rdb: $(ALLIDLFILES)
168 $(IDLC) -I$(PRJ) -I$(SOLARIDLDIR) -O$(BIN) $?
169 $(REGMERGE) $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)}
170 touch $@
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