xref: /trunk/main/shell/source/unix/exec/makefile.mk (revision 7871dc3e)
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=shell
26TARGET=exec
27
28LIBTARGET=NO
29ENABLE_EXCEPTIONS=TRUE
30
31COMP1TYPELIST=syssh
32
33TESTAPP1=urltest
34
35# --- Settings -----------------------------------------------------
36
37.INCLUDE :  settings.mk
38
39# --- Files --------------------------------------------------------
40
41DLLPRE=
42
43SLOFILES=$(SLO)$/shellexec.obj\
44    $(SLO)$/shellexecentry.obj
45
46SHL1OBJS=$(SLOFILES)
47
48SHL1TARGET=syssh.uno
49.IF "$(GUI)" == "OS2"
50SHL1IMPLIB=i$(TARGET)
51.ELSE
52SHL1IMPLIB=
53.ENDIF
54
55SHL1VERSIONMAP=$(SOLARENV)/src/component.map
56SHL1DEF=$(MISC)$/$(SHL1TARGET).def
57DEF1NAME=$(SHL1TARGET)
58
59SHL1STDLIBS=$(CPPULIB)\
60			$(CPPUHELPERLIB)\
61			$(SALLIB)
62SHL1LIBS=
63SHL1DEPN=
64
65.IF "$(test)" != ""
66
67APP1TARGET=$(TESTAPP1)
68APP1STDLIBS= $(SHL1STDLIBS)
69APP1OBJS= \
70	$(SLO)$/shellexec.obj \
71	$(SLO)$/$(APP1TARGET).obj
72
73.ENDIF # "$(test)" != ""
74
75
76# --- Targets ------------------------------------------------------
77
78.INCLUDE :	target.mk
79
80run_test : $(BIN)$/$(TESTAPP1).sh
81    dmake test=t
82	$(BIN)$/$(TESTAPP1) urltest.txt
83
84$(BIN)$/$(TESTAPP1).sh : $$(@:f)
85	$(COPY) $< $@
86	-chmod +x $@
87
88ALLTAR : $(MISC)/syssh.component
89
90$(MISC)/syssh.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
91        syssh.component
92    $(XSLTPROC) --nonet --stringparam uri \
93        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
94        $(SOLARENV)/bin/createcomponent.xslt syssh.component
95