xref: /aoo4110/main/soldep/util/perl.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
24.IF "$(GUI)"=="WNT"
25SOLARINC+=-I$(BUILD_TOOLS)$/..$/perl$/lib$/core
26PERL_LIB=$(BUILD_TOOLS)$/..$/perl$/lib$/core$/perl58.lib
27.ENDIF
28
29.IF "$(OS)$(CPU)" == "LINUXI"
30	.IF "$(OUTPATH)" == "unxubti8" # Hack for Ububtu x86 builds in SO environment
31		SOLARINC+=-I$/usr$/lib$/perl$/5.8.8$/CORE
32		PERL_LIB=	-lcrypt \
33			$/usr$/lib$/libperl.a \
34			$/usr$/lib$/perl$/5.8.8$/auto/DynaLoader/DynaLoader.a
35    .ELSE
36		SOLARINC+=-I$(BUILD_TOOLS)$/..$/..$/lib$/perl5$/5.8.3$/i686-linux$/CORE
37		PERL_LIB=	-lcrypt \
38			$(BUILD_TOOLS)$/..$/..$/lib$/perl5$/5.8.3$/i686-linux$/CORE$/libperl.a \
39			$(BUILD_TOOLS)$/..$/..$/lib$/perl5$/5.8.3$/i686-linux$/auto/DynaLoader/DynaLoader.a
40	.ENDIF
41.ENDIF
42
43.IF "$(OS)$(CPU)" == "SOLARISS"
44SOLARINC+=-I$(BUILD_TOOLS)$/..$/..$/lib$/perl5$/5.8.3$/sun4-solaris$/CORE
45PERL_LIB=	-lsocket \
46			-lnsl \
47			-ldl \
48			$(BUILD_TOOLS)$/..$/..$/lib$/perl5$/5.8.3$/sun4-solaris$/CORE$/shared$/libperl.so \
49			$(BUILD_TOOLS)$/..$/..$/lib$/perl5$/5.8.3$/sun4-solaris$/CORE$/shared$/DynaLoader.a
50.ENDIF
51
52.IF "$(OS)$(CPU)" == "SOLARISI"
53SOLARINC+=-I$(BUILD_TOOLS)$/..$/..$/lib$/perl5$/5.8.3$/i86pc-solaris$/CORE
54PERL_LIB=	-lsocket \
55			-lnsl \
56			-ldl \
57			$(BUILD_TOOLS)$/..$/..$/lib$/perl5$/5.8.3$/i86pc-solaris$/CORE$/shared$/libperl.so \
58			$(BUILD_TOOLS)$/..$/..$/lib$/perl5$/5.8.3$/i86pc-solaris$/CORE$/shared$/DynaLoader.a
59.ENDIF
60
61.IF "$(OS)$(CPU)" == "MACOSXI"
62SOLARINC+=-I$(BUILD_TOOLS)$/..$/..$/lib$/perl5$/5.8.3$/darwin-2level$/CORE
63PERL_LIB=	\
64			$(BUILD_TOOLS)$/..$/..$/lib$/perl5$/5.8.3$/darwin-2level$/CORE$/libperl.a \
65			$(BUILD_TOOLS)$/..$/..$/lib$/perl5$/5.8.3$/darwin-2level$/auto/DynaLoader/DynaLoader.a
66.ENDIF
67
68