1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24PRJ = ..$/.. 25PRJNAME = cli_ure 26 27TARGET = cli_uno 28NO_BSYMBOLIC = TRUE 29ENABLE_EXCEPTIONS = TRUE 30USE_DEFFILE = TRUE 31 32# --- Settings ----------------------------------------------------- 33 34.INCLUDE : settings.mk 35.INCLUDE : $(PRJ)$/util$/makefile.pmk 36 37 38.IF "$(COM)" == "MSC" 39# When compiling for CLR, disable "warning C4339: use of undefined type detected 40# in CLR meta-data - use of this type may lead to a runtime exception": 41.IF "$(CCNUMVER)" <= "001399999999" 42CFLAGSCXX += -clr -AI $(DLLDEST) -AI $(SOLARBINDIR) -wd4339 43.ELSE 44CFLAGSCXX += -clr:oldSyntax -AI $(DLLDEST) -AI $(SOLARBINDIR) -wd4339 45.ENDIF 46 47.IF "$(debug)" != "" 48CFLAGS += -Ob0 49.ENDIF 50 51 52 53.IF "$(CCNUMVER)" <= "001399999999" 54#see Microsoft Knowledge Base Article - 814472 55LINKFLAGS += -NOENTRY -NODEFAULTLIB:nochkclr.obj -INCLUDE:__DllMainCRTStartup@12 56.ENDIF 57# --- Files -------------------------------------------------------- 58 59SLOFILES = \ 60 $(SLO)$/cli_environment.obj \ 61 $(SLO)$/cli_bridge.obj \ 62 $(SLO)$/cli_data.obj \ 63 $(SLO)$/cli_proxy.obj \ 64 $(SLO)$/cli_uno.obj 65 66SHL1OBJS = $(SLOFILES) 67 68SHL1TARGET = $(TARGET) 69 70SHL1STDLIBS = \ 71 $(CPPULIB) \ 72 $(SALLIB) \ 73 mscoree.lib 74 75.IF "$(CCNUMVER)" >= "001399999999" 76SHL1STDLIBS += \ 77 msvcmrt.lib 78.ENDIF 79 80SHL1VERSIONMAP = bridge_exports.map 81 82SHL1IMPLIB = i$(TARGET) 83SHL1LIBS = $(SLB)$/$(TARGET).lib 84SHL1DEF = $(MISC)$/$(SHL1TARGET).def 85DEF1NAME = $(SHL1TARGET) 86 87.ENDIF 88 89# --- Targets ------------------------------------------------------ 90 91.INCLUDE : target.mk 92