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#************************************************************************* 27 28PRJ = ..$/.. 29PRJNAME = cli_ure 30 31TARGET = climaker 32TARGETTYPE = CUI 33LIBTARGET = NO 34ENABLE_EXCEPTIONS = TRUE 35 36# disable caching to avoid stale objects 37# on version changes 38CCACHE_DISABLE=TRUE 39.EXPORT : CCACHE_DISABLE 40 41.INCLUDE : settings.mk 42.INCLUDE : $(PRJ)$/util$/makefile.pmk 43 44.IF "$(BUILD_FOR_CLI)" != "" 45 46NO_OFFUH=TRUE 47CPPUMAKERFLAGS = 48 49UNOTYPES = \ 50 com.sun.star.uno.TypeClass \ 51 com.sun.star.uno.XAggregation \ 52 com.sun.star.uno.XWeak \ 53 com.sun.star.uno.XComponentContext \ 54 com.sun.star.lang.XTypeProvider \ 55 com.sun.star.lang.XInitialization \ 56 com.sun.star.lang.XComponent \ 57 com.sun.star.lang.XMultiComponentFactory \ 58 com.sun.star.lang.XMultiServiceFactory \ 59 com.sun.star.lang.XSingleComponentFactory \ 60 com.sun.star.container.XSet \ 61 com.sun.star.container.XHierarchicalNameAccess \ 62 com.sun.star.loader.XImplementationLoader \ 63 com.sun.star.registry.XSimpleRegistry \ 64 com.sun.star.registry.XRegistryKey \ 65 com.sun.star.reflection.XTypeDescriptionEnumerationAccess \ 66 com.sun.star.reflection.XConstantTypeDescription \ 67 com.sun.star.reflection.XConstantsTypeDescription \ 68 com.sun.star.reflection.XIndirectTypeDescription \ 69 com.sun.star.reflection.XEnumTypeDescription \ 70 com.sun.star.reflection.XInterfaceTypeDescription2 \ 71 com.sun.star.reflection.XInterfaceMethodTypeDescription \ 72 com.sun.star.reflection.XInterfaceAttributeTypeDescription2 \ 73 com.sun.star.reflection.XCompoundTypeDescription \ 74 com.sun.star.reflection.XServiceTypeDescription2 \ 75 com.sun.star.reflection.XSingletonTypeDescription2 \ 76 com.sun.star.reflection.XStructTypeDescription 77 78CFLAGSCXX +=-AI$(BIN) 79 80 81# When compiling for CLR, disable "warning C4339: use of undefined type detected 82# in CLR meta-data - use of this type may lead to a runtime exception": 83.IF "$(COMEX)"=="10" 84CFLAGSCXX += -clr:noAssembly -wd4339 85.ELSE 86CFLAGSCXX += -clr:oldSyntax -LN -wd4339 -wd4715 87.ENDIF 88 89OBJFILES = \ 90 $(OBJ)$/climaker_app.obj \ 91 $(OBJ)$/climaker_emit.obj 92 93APP1TARGET = $(TARGET) 94APP1OBJS = $(OBJFILES) 95 96 97APP1STDLIBS = \ 98 $(CPPUHELPERLIB) \ 99 $(CPPULIB) \ 100 $(SALLIB) \ 101 mscoree.lib 102 103.IF "$(CCNUMVER)" >= "001399999999" 104APP1STDLIBS += \ 105 msvcmrt.lib 106.ENDIF 107 108.ENDIF 109 110 111 112.INCLUDE : $(PRJ)$/util$/target.pmk 113.INCLUDE : target.mk 114 115CLIMAKER_CONFIG = $(BIN)$/climaker.exe.config 116 117ALLTAR: \ 118 $(CLIMAKER_CONFIG) 119 120 121 122#Create the config file that is used with the policy assembly 123$(CLIMAKER_CONFIG): climaker.exe.config 124 $(COPY) $< $@ 125 chmod +x $@ 126 127 128.IF "$(BUILD_FOR_CLI)" != "" 129 130$(OBJFILES): $(BIN)$/cli_basetypes.dll 131 132 133.ENDIF 134 135 136 137 138