author | Jon Tibble <meths@btinternet.com> |
Mon, 04 May 2015 14:04:39 +0100 | |
branch | oi_151a |
changeset 254 | 9c2a4ac793f0 |
parent 42 | b6f829cb6d9e |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
21 |
||
22 |
# |
|
13 | 23 |
# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. |
0 | 24 |
# |
13 | 25 |
|
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
13
diff
changeset
|
26 |
#ident "@(#)Makefile.sfw 1.3 10/07/30 SMI" |
0 | 27 |
# |
28 |
||
29 |
include ../Makefile.cmd |
|
30 |
||
31 |
VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh) |
|
32 |
TARBALL = $(VER).tar.gz |
|
33 |
PATCHES:sh = echo Patches/*.patch |
|
34 |
||
35 |
# configure(1) options to use |
|
36 |
# a default --prefix and --mandir are set in Makefile.master |
|
37 |
CONFIGURE_OPTIONS += --bindir=/usr/sbin |
|
38 |
CONFIGURE_OPTIONS += --with-binsubdir=sbin |
|
39 |
CONFIGURE_OPTIONS += --libexecdir=/usr/lib/inet |
|
40 |
CONFIGURE_OPTIONS += --sysconfdir=/etc/inet |
|
41 |
CONFIGURE_OPTIONS += --enable-all-clocks |
|
42 |
CONFIGURE_OPTIONS += --enable-debugging |
|
43 |
CONFIGURE_OPTIONS += --enable-debug-timing |
|
44 |
CONFIGURE_OPTIONS += --disable-optional-args |
|
45 |
CONFIGURE_OPTIONS += --enable-parse-clocks |
|
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
13
diff
changeset
|
46 |
CONFIGURE_OPTIONS += --enable-ignore-dns-errors |
0 | 47 |
CONFIGURE_OPTIONS += --without-ntpsnmpd |
48 |
CONFIGURE_OPTIONS += --without-lineeditlibs |
|
49 |
CONFIGURE_OPTIONS += --with-openssl-libdir=/lib |
|
13 | 50 |
CONFIGURE_OPTIONS += --disable-getifaddrs |
0 | 51 |
|
52 |
SFW_PATH="$(SPRO_VROOT)/bin:/usr/perl5/bin:/usr/sfw/bin:$(PATH)" |
|
53 |
||
54 |
TARGET_ENV += CC="$(CC)" |
|
55 |
TARGET_ENV += PATH="$(SFW_PATH)" |
|
56 |
TARGET_ENV += CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE=600 -D__EXTENSIONS__" |
|
57 |
TARGET_ENV += LD_OPTIONS="-M $(SRC)/cmd/mapfile_noexstk -L${ROOT}/usr/lib -L/usr/lib -R/usr/lib" |
|
58 |
TARGET_ENV += MAKE="$(CCSMAKE)" |
|
59 |
TARGET_ENV += INSTALL="$(INSTALL_PROTO)" |
|
60 |
||
61 |
all:= TARGET = all |
|
62 |
install:= TARGET = install |
|
63 |
install:= TARGET_ENV += DESTDIR=$(ROOT) |
|
64 |
install:= TARGET_ENV += localedir="$(CFGLOCALE)" |
|
65 |
||
66 |
all: $(VER)/config.status |
|
67 |
(cd $(VER); env - $(CCSMAKE) all $(TARGET_ENV)) |
|
68 |
||
69 |
install: install-protofix |
|
70 |
||
71 |
install-target: all |
|
72 |
install-sfw $(VER) |
|
73 |
||
74 |
install-protofix: install-target |
|
75 |
for pkg in $(COMPONENT_PACKAGES:sh) ; do \ |
|
76 |
$(SRC)/tools/protofix --pkg $$pkg --perm ; \ |
|
77 |
done |
|
78 |
||
79 |
$(VER)/config.status: $(VER)/.patched |
|
80 |
(cd $(VER) ; env - $(SHELL) ./configure $(CONFIGURE_OPTIONS) $(TARGET_ENV)) |
|
81 |
||
82 |
clean: |
|
83 |
-rm -rf $(VER) |
|
84 |
||
85 |
include ../Makefile.targ |
|
86 |
||
87 |
FRC: |