xref: /aoo41x/main/sccomp/source/solver/makefile.mk (revision 88bfee53)
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                $(COINMPLIB)
63
64SHL1DEPN=       makefile.mk
65SHL1DEF=        $(MISC)$/$(SHL1TARGET).def
66SHL1VERSIONMAP= $(SOLARENV)/src/component.map
67DEF1NAME=       $(SHL1TARGET)
68
69# --- Resources --------------------------------
70
71RESLIB1LIST=$(SRS)$/solver.srs
72
73RESLIB1NAME=solver
74RESLIB1SRSFILES=$(RESLIB1LIST)
75
76# --- Targets ----------------------------------
77
78.INCLUDE : target.mk
79
80
81
82ALLTAR : $(MISC)/solver.component
83
84$(MISC)/solver.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
85        solver.component
86    $(XSLTPROC) --nonet --stringparam uri \
87        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
88        $(SOLARENV)/bin/createcomponent.xslt solver.component
89
90.ENDIF
91