xref: /aoo4110/main/sccomp/source/solver/makefile.mk (revision b1cdbd2c)
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"
69CFLAGS+= $(COINMP_CFLAGS) -DSYSTEM_COINMP
70# Use the library flags from configure
71SHL1STDLIBS+=$(COINMP_LIBS)
72.ELSE
73# Use the library flags from solenv
74SHL1STDLIBS+=$(COINMPLIBS)
75.ENDIF
76
77# --- Resources --------------------------------
78
79RESLIB1LIST=$(SRS)$/solver.srs
80
81RESLIB1NAME=solver
82RESLIB1SRSFILES=$(RESLIB1LIST)
83
84# --- Targets ----------------------------------
85
86.INCLUDE : target.mk
87
88
89
90ALLTAR : $(MISC)/solver.component
91
92$(MISC)/solver.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
93        solver.component
94    $(XSLTPROC) --nonet --stringparam uri \
95        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
96        $(SOLARENV)/bin/createcomponent.xslt solver.component
97
98.ENDIF
99