1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27PRJ=..$/.. 28 29PRJNAME= stoc 30TARGET= excomp 31TARGET1= excomp1 32TARGET2= excomp2 33TARGETTYPE=CUI 34#LIBTARGET=NO 35ENABLE_EXCEPTIONS=TRUE 36USE_DEFFILE= TRUE 37NO_BSYMBOLIC= TRUE 38COMP1TYPELIST=$(TARGET1) 39COMP2TYPELIST=$(TARGET2) 40 41# --- Settings ----------------------------------------------------- 42 43.INCLUDE : settings.mk 44 45# ------------------------------------------------------------------ 46 47UNOUCRDEP= $(BIN)$/excomp.rdb 48UNOUCRRDB= $(BIN)$/excomp.rdb 49UNOUCROUT= $(OUT)$/inc 50INCPRE+= $(OUT)$/inc 51 52UNOTYPES=$($(TARGET1)_XML2CMPTYPES) 53UNOTYPES+=$($(TARGET2)_XML2CMPTYPES) 54UNOTYPES+= com.sun.star.registry.XImplementationRegistration \ 55 com.sun.star.lang.XComponent 56 57# --- Application excomp ------------------------------------------------ 58APP1TARGET= $(TARGET) 59APP1OBJS= $(OBJ)$/excomp.obj 60 61APP1STDLIBS= \ 62 $(CPPULIB) \ 63 $(CPPUHELPERLIB) \ 64 $(SALHELPERLIB) \ 65 $(SALLIB) 66 67# ---- objects ---- 68SLOFILES= \ 69 $(SLO)$/excomp1.obj \ 70 $(SLO)$/$(COMP1TYPELIST)_description.obj \ 71 $(SLO)$/excomp2.obj \ 72 $(SLO)$/$(COMP2TYPELIST)_description.obj 73 74# ---- excomp1 ------ 75SHL1TARGET= $(TARGET1) 76 77SHL1STDLIBS= \ 78 $(CPPULIB) \ 79 $(CPPUHELPERLIB) \ 80 $(SALHELPERLIB) \ 81 $(SALLIB) 82 83SHL1DEPN= 84SHL1LIBS= 85SHL1OBJS= $(SLO)$/excomp1.obj \ 86 $(SLO)$/$(COMP1TYPELIST)_description.obj 87SHL1IMPLIB= i$(TARGET1) 88SHL1DEF= $(MISC)$/$(SHL1TARGET).def 89 90DEF1NAME= $(SHL1TARGET) 91DEF1EXPORTFILE= exports.dxp 92 93# ---- excomp2 ------ 94SHL2TARGET= $(TARGET2) 95 96SHL2STDLIBS= \ 97 $(CPPULIB) \ 98 $(CPPUHELPERLIB) \ 99 $(SALHELPERLIB) \ 100 $(SALLIB) 101 102SHL2DEPN= 103SHL2LIBS= 104SHL2OBJS= $(SLO)$/excomp2.obj \ 105 $(SLO)$/$(COMP2TYPELIST)_description.obj 106SHL2IMPLIB= i$(TARGET2) 107SHL2DEF= $(MISC)$/$(SHL2TARGET).def 108 109DEF2NAME= $(SHL2TARGET) 110DEF2EXPORTFILE= exports.dxp 111 112ALLIDLFILES:= example$/XTest.idl example$/ExampleComponent1.idl example$/ExampleComponent2.idl 113 114# --- Targets ------------------------------------------------------ 115 116.IF "$(depend)" == "" 117ALL : $(BIN)$/excomp.rdb \ 118 ALLTAR 119.ELSE 120ALL: ALLDEP 121.ENDIF 122 123.INCLUDE : target.mk 124 125$(BIN)$/excomp.rdb: $(ALLIDLFILES) 126 idlc -I$(PRJ) -I$(SOLARIDLDIR) -O$(MISC)$/excomp $? 127 regmerge $@ /UCR $(MISC)$/excomp$/{$(?:f:s/.idl/.urd/)} 128 regmerge $@ / $(SOLARBINDIR)$/udkapi.rdb 129 touch $@ 130 131