xref: /trunk/main/shell/source/unix/misc/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=misc
27
28LIBTARGET=NO
29TARGETTYPE=CUI
30NO_DEFAULT_STL=TRUE
31LIBSALCPPRT=$(0)
32
33# --- Settings -----------------------------------------------------
34
35.INCLUDE : settings.mk
36
37# --- Files --------------------------------------------------------
38
39SCRIPTFILES = \
40	$(BIN)$/senddoc \
41	$(BIN)$/open-url \
42	$(BIN)$/cde-open-url \
43	$(BIN)$/gnome-open-url \
44	$(BIN)$/kde-open-url
45
46.IF "$(GUI)" == "OS2"
47
48APP1TARGET = open-url
49APP1OBJS = \
50	$(OBJ)$/open-url.obj \
51	open-url.def
52APP1LIBS =
53
54APP2TARGET = senddoc
55APP2OBJS = \
56	$(OBJ)$/senddoc.obj \
57	senddoc.def
58APP2LIBS =
59APP2STDLIBS =
60
61.ELSE
62
63APP1TARGET = gnome-open-url.bin
64APP1OBJS = \
65	$(OBJ)$/gnome-open-url.obj
66APP1LIBS =
67.IF "$(OS)"!="FREEBSD" && "$(OS)"!="NETBSD"
68APP1STDLIBS=-ldl
69.ENDIF
70
71APP2TARGET = uri-encode
72APP2OBJS = $(OBJ)$/uri-encode.obj
73APP2LIBS =
74APP2STDLIBS =
75
76OBJFILES = $(APP1OBJS) $(APP2OBJS)
77.ENDIF
78
79# --- Targets ------------------------------------------------------
80
81.INCLUDE : target.mk
82
83ALLTAR : $(SCRIPTFILES) $(AWKFILES)
84
85$(SCRIPTFILES) : $$(@:f:+".sh")
86	@tr -d "\015" < $(@:f:+".sh") > $@
87