1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweirPRJ=.. 29*cdf0e10cSrcweir 30*cdf0e10cSrcweirPRJNAME=bridges 31*cdf0e10cSrcweirTARGET=test 32*cdf0e10cSrcweirLIBTARGET=NO 33*cdf0e10cSrcweirTARGETTYPE=CUI 34*cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 37*cdf0e10cSrcweir 38*cdf0e10cSrcweir.INCLUDE : settings.mk 39*cdf0e10cSrcweir 40*cdf0e10cSrcweir# --- Files -------------------------------------------------------- 41*cdf0e10cSrcweirALLIDLFILES = test_bridge.idl 42*cdf0e10cSrcweirCPPUMAKERFLAGS += -C 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir 45*cdf0e10cSrcweirUNOUCRDEP=$(SOLARBINDIR)$/udkapi.rdb $(BIN)$/test.rdb 46*cdf0e10cSrcweirUNOUCRRDB=$(SOLARBINDIR)$/udkapi.rdb $(BIN)$/test.rdb 47*cdf0e10cSrcweir 48*cdf0e10cSrcweir# output directory (one dir for each project) 49*cdf0e10cSrcweirUNOUCROUT=$(OUT)$/inc 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir# adding to inludeoath 52*cdf0e10cSrcweirINCPRE+=$(UNOUCROUT) 53*cdf0e10cSrcweirCFLAGS += -I..$/source$/remote$/urp 54*cdf0e10cSrcweir 55*cdf0e10cSrcweirUNOTYPES = \ 56*cdf0e10cSrcweir com.sun.star.uno.XWeak\ 57*cdf0e10cSrcweir com.sun.star.uno.XNamingService\ 58*cdf0e10cSrcweir com.sun.star.uno.XAggregation \ 59*cdf0e10cSrcweir com.sun.star.uno.TypeClass\ 60*cdf0e10cSrcweir com.sun.star.io.XInputStream\ 61*cdf0e10cSrcweir com.sun.star.io.XOutputStream\ 62*cdf0e10cSrcweir com.sun.star.lang.XInitialization \ 63*cdf0e10cSrcweir com.sun.star.lang.XSingleServiceFactory \ 64*cdf0e10cSrcweir com.sun.star.lang.XMultiServiceFactory \ 65*cdf0e10cSrcweir com.sun.star.lang.XTypeProvider \ 66*cdf0e10cSrcweir com.sun.star.registry.XSimpleRegistry \ 67*cdf0e10cSrcweir com.sun.star.loader.XImplementationLoader \ 68*cdf0e10cSrcweir com.sun.star.registry.XImplementationRegistration \ 69*cdf0e10cSrcweir com.sun.star.corba.giop.TargetAddress \ 70*cdf0e10cSrcweir com.sun.star.corba.giop.TargetAddressGroup \ 71*cdf0e10cSrcweir com.sun.star.lang.XComponent \ 72*cdf0e10cSrcweir com.sun.star.bridge.XBridgeFactory\ 73*cdf0e10cSrcweir com.sun.star.connection.XAcceptor\ 74*cdf0e10cSrcweir com.sun.star.connection.XConnector\ 75*cdf0e10cSrcweir com.sun.star.beans.Property\ 76*cdf0e10cSrcweir com.sun.star.corba.giop.RequestHeader_1_2\ 77*cdf0e10cSrcweir com.sun.star.container.XSet\ 78*cdf0e10cSrcweir com.sun.star.lang.XServiceInfo\ 79*cdf0e10cSrcweir test.XTestFactory \ 80*cdf0e10cSrcweir com.sun.star.test.performance.XPerformanceTest \ 81*cdf0e10cSrcweir com.sun.star.lang.XMain \ 82*cdf0e10cSrcweir com.sun.star.lang.XMultiComponentFactory \ 83*cdf0e10cSrcweir com.sun.star.lang.XSingleComponentFactory 84*cdf0e10cSrcweir 85*cdf0e10cSrcweirJARFILES = jurt.jar unoil.jar 86*cdf0e10cSrcweir 87*cdf0e10cSrcweirOBJFILES= \ 88*cdf0e10cSrcweir $(OBJ)$/testserver.obj \ 89*cdf0e10cSrcweir $(OBJ)$/testclient.obj \ 90*cdf0e10cSrcweir $(OBJ)$/testcomp.obj \ 91*cdf0e10cSrcweir $(OBJ)$/testsameprocess.obj 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir 94*cdf0e10cSrcweirAPP2TARGET= testserver 95*cdf0e10cSrcweirAPP2OBJS= $(OBJ)$/testserver.obj \ 96*cdf0e10cSrcweir $(OBJ)$/testcomp.obj 97*cdf0e10cSrcweir 98*cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 99*cdf0e10cSrcweirAPP2STDLIBS+= -lstdc++ 100*cdf0e10cSrcweir.ENDIF 101*cdf0e10cSrcweir 102*cdf0e10cSrcweirAPP2STDLIBS+= \ 103*cdf0e10cSrcweir $(CPPULIB) \ 104*cdf0e10cSrcweir $(CPPUHELPERLIB) \ 105*cdf0e10cSrcweir $(SALLIB) 106*cdf0e10cSrcweir 107*cdf0e10cSrcweirAPP3TARGET= testclient 108*cdf0e10cSrcweirAPP3OBJS= $(OBJ)$/testclient.obj \ 109*cdf0e10cSrcweir $(OBJ)$/testcomp.obj 110*cdf0e10cSrcweir 111*cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 112*cdf0e10cSrcweirAPP3STDLIBS+= -lstdc++ 113*cdf0e10cSrcweir.ENDIF 114*cdf0e10cSrcweir 115*cdf0e10cSrcweirAPP3STDLIBS+= \ 116*cdf0e10cSrcweir $(CPPULIB) \ 117*cdf0e10cSrcweir $(CPPUHELPERLIB) \ 118*cdf0e10cSrcweir $(SALLIB) 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir#---------------------------------- 121*cdf0e10cSrcweir 122*cdf0e10cSrcweirAPP4TARGET= testsameprocess 123*cdf0e10cSrcweirAPP4OBJS= $(OBJ)$/testsameprocess.obj \ 124*cdf0e10cSrcweir $(OBJ)$/testcomp.obj 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 127*cdf0e10cSrcweirAPP4STDLIBS+= -lstdc++ 128*cdf0e10cSrcweir.ENDIF 129*cdf0e10cSrcweir 130*cdf0e10cSrcweirAPP4STDLIBS+= \ 131*cdf0e10cSrcweir $(CPPULIB) \ 132*cdf0e10cSrcweir $(CPPUHELPERLIB) \ 133*cdf0e10cSrcweir $(SALLIB) 134*cdf0e10cSrcweir 135*cdf0e10cSrcweirAPP4DEF= $(MISC)$/$(APP4TARGET).def 136*cdf0e10cSrcweir 137*cdf0e10cSrcweir#---------------------------------- 138*cdf0e10cSrcweir 139*cdf0e10cSrcweir# APP5TARGET= testoffice 140*cdf0e10cSrcweir# APP5OBJS= $(OBJ)$/testoffice.obj \ 141*cdf0e10cSrcweir# $(OBJ)$/testcomp.obj 142*cdf0e10cSrcweir 143*cdf0e10cSrcweir# .IF "$(OS)" == "LINUX" 144*cdf0e10cSrcweir# APP5STDLIBS+= -lstdc++ 145*cdf0e10cSrcweir# .ENDIF 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir# APP5STDLIBS+= \ 148*cdf0e10cSrcweir# $(CPPULIB) \ 149*cdf0e10cSrcweir# $(CPPUHELPERLIB)\ 150*cdf0e10cSrcweir# $(SALLIB) 151*cdf0e10cSrcweir 152*cdf0e10cSrcweir# APP5DEF= $(MISC)$/$(APP5TARGET).def 153*cdf0e10cSrcweir 154*cdf0e10cSrcweir 155*cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 156*cdf0e10cSrcweir 157*cdf0e10cSrcweir.INCLUDE : target.mk 158*cdf0e10cSrcweir 159*cdf0e10cSrcweirALLTAR : $(BIN)$/test.rdb \ 160*cdf0e10cSrcweir $(BIN)$/server.rdb \ 161*cdf0e10cSrcweir $(BIN)$/client.rdb 162*cdf0e10cSrcweir 163*cdf0e10cSrcweir$(BIN)$/test.rdb: $(ALLIDLFILES) 164*cdf0e10cSrcweir $(IDLC) -I$(PRJ) -I$(SOLARIDLDIR) -O$(BIN) $? 165*cdf0e10cSrcweir $(REGMERGE) $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)} 166*cdf0e10cSrcweir touch $@ 167*cdf0e10cSrcweir 168*cdf0e10cSrcweir$(BIN)$/client.rdb: $(BIN)$/test.rdb 169*cdf0e10cSrcweir rm -f $(BIN)$/client.rdb 170*cdf0e10cSrcweir $(REGMERGE) $@ / $(BIN)$/test.rdb $(SOLARBINDIR)$/udkapi.rdb 171*cdf0e10cSrcweir 172*cdf0e10cSrcweir$(BIN)$/server.rdb: $(BIN)$/test.rdb 173*cdf0e10cSrcweir rm -f $(BIN)$/client.rdb 174*cdf0e10cSrcweir $(REGMERGE) $@ / $(BIN)$/test.rdb $(SOLARBINDIR)$/udkapi.rdb 175*cdf0e10cSrcweir 176