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 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
22 |
# Use is subject to license terms.
|
|
23 |
#
|
|
24 |
#ident "@(#)Makefile.sfw 1.2 09/06/05 SMI"
|
|
25 |
#
|
|
26 |
|
|
27 |
include ../Makefile.cmd
|
|
28 |
|
|
29 |
VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
|
|
30 |
TARBALL = $(VER).tar.gz
|
|
31 |
|
|
32 |
PATCHES:sh=echo Patches/*.patch
|
|
33 |
|
|
34 |
LDFLAGS += \
|
|
35 |
-L$(ROOT)/usr/lib \
|
|
36 |
-M $(SRC)/cmd/mapfile_noexstk \
|
|
37 |
-z ignore
|
|
38 |
|
|
39 |
LIBS=-lnsl -lsocket -lpkcs11
|
|
40 |
CONFIGURE_OPTIONS += --localstatedir=/var
|
|
41 |
|
|
42 |
all: $(VER)/config.status
|
|
43 |
(cd $(VER); env - $(CCSMAKE) MAKE=$(CCSMAKE))
|
|
44 |
|
|
45 |
install: all
|
|
46 |
$(SHELL) VER=$(VER) ./install-sfw
|
|
47 |
|
|
48 |
$(VER)/config.status: $(VER)/configure
|
|
49 |
(cd $(VER); \
|
|
50 |
CC=$(CC) \
|
|
51 |
CFLAGS="$(CFLAGS) -DSOLARIS" \
|
|
52 |
LDFLAGS="$(LDFLAGS)" \
|
|
53 |
LIBS="$(LIBS)" \
|
|
54 |
INSTALL="$(INSTALL_PROTO) -m 755 " \
|
|
55 |
CONFDIR=/etc \
|
|
56 |
MAKE=$(CCSMAKE) \
|
|
57 |
./configure $(CONFIGURE_OPTIONS);)
|
|
58 |
|
|
59 |
$(VER)/configure: $(VER)/.patched
|
|
60 |
$(TOUCH) $@
|
|
61 |
|
|
62 |
clean:
|
|
63 |
$(RM) -r $(VER)
|
|
64 |
|
|
65 |
install_h:
|
|
66 |
|
|
67 |
include ../Makefile.targ
|