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=sccomp 26TARGET=solver 27 28ENABLE_EXCEPTIONS=TRUE 29VISIBILITY_HIDDEN=TRUE 30USE_DEFFILE=TRUE 31LIBTARGET=NO 32 33# --- Settings ---------------------------------- 34 35.INCLUDE : settings.mk 36 37# --- Files ------------------------------------- 38 39.IF "$(ENABLE_COINMP)"=="NO" 40 41dummy: 42 @echo "Nothing to build (CoinMP is disabled)" 43 44.ELSE 45 46SLOFILES=$(SLO)$/solver.obj 47 48SRS1NAME=$(TARGET) 49SRC1FILES=solver.src 50 51# --- Library ----------------------------------- 52 53SHL1TARGET= $(TARGET)$(DLLPOSTFIX) 54 55SHL1OBJS= $(SLOFILES) 56 57SHL1STDLIBS= $(COMPHELPERLIB) \ 58 $(CPPUHELPERLIB) \ 59 $(CPPULIB) \ 60 $(SALLIB) \ 61 $(TOOLSLIB) 62 63SHL1DEPN= makefile.mk 64SHL1DEF= $(MISC)$/$(SHL1TARGET).def 65SHL1VERSIONMAP= $(SOLARENV)/src/component.map 66DEF1NAME= $(SHL1TARGET) 67 68.IF "$(SYSTEM_COINMP)" == "YES" 69INCSYSTEM+= $(COINMP_CFLAGS) 70CFLAGS+= -DSYSTEM_COINMP 71# Use the library flags from configure 72SHL1STDLIBS+=$(COINMP_LIBS) 73.ELSE 74# Use the library flags from solenv 75SHL1STDLIBS+=$(COINMPLIBS) 76.ENDIF 77 78# --- Resources -------------------------------- 79 80RESLIB1LIST=$(SRS)$/solver.srs 81 82RESLIB1NAME=solver 83RESLIB1SRSFILES=$(RESLIB1LIST) 84 85# --- Targets ---------------------------------- 86 87.INCLUDE : target.mk 88 89 90 91ALLTAR : $(MISC)/solver.component 92 93$(MISC)/solver.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 94 solver.component 95 $(XSLTPROC) --nonet --stringparam uri \ 96 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 97 $(SOLARENV)/bin/createcomponent.xslt solver.component 98 99.ENDIF 100