2
|
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 |
#
|
18
|
23 |
# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
2
|
24 |
#
|
|
25 |
|
18
|
26 |
# ident "@(#)Makefile.sfw 1.4 10/06/22 SMI"
|
2
|
27 |
|
|
28 |
include $(SRC)/lib/Makefile.lib
|
|
29 |
include ../Makefile.com
|
|
30 |
|
|
31 |
VERSION=$(COMPONENT_VERSION:sh)
|
|
32 |
|
|
33 |
OPENSSL_FIPS = openssl-fips
|
|
34 |
PROGS = ccwrap
|
|
35 |
|
|
36 |
FIPS_VERSION = 1.2
|
|
37 |
FIPS_NAME = openssl-fips
|
|
38 |
|
|
39 |
FIPS_VER = $(FIPS_NAME)-$(FIPS_VERSION)
|
|
40 |
FIPS_VER64 = $(FIPS_VER)-64
|
|
41 |
|
|
42 |
SUBDIRS = $(OPENSSL_FIPS)
|
|
43 |
|
|
44 |
CONFIGURE_OPTIONS += fips \
|
|
45 |
--with-fipslibdir="$(PWD)/$(OPENSSL_FIPS)/$(FIPS_VER)/fips"
|
|
46 |
CONFIGURE_OPTIONS64 += fips \
|
|
47 |
--with-fipslibdir="$(PWD)/$(OPENSSL_FIPS)/$(FIPS_VER64)/fips"
|
|
48 |
|
|
49 |
PATCHES:sh = mkdir -p Patches; cp -rpf ../Patches/*.patch Patches/; \
|
|
50 |
cp -fp *.patch Patches/; \
|
|
51 |
echo Patches/[0-2][0-9]*.patch
|
|
52 |
|
|
53 |
PATCHES_sparc:sh = echo Patches/sparc-*.patch
|
|
54 |
PATCHES_sparcv9:sh = echo Patches/sparc-*.patch
|
|
55 |
|
|
56 |
PATCHES_32 = $(PATCHES_$(MACH))
|
|
57 |
PATCHES_64 = $(PATCHES_$(MACH64))
|
|
58 |
|
|
59 |
CONFIG_STATUS = config.status
|
|
60 |
|
|
61 |
all := TARGET = all
|
|
62 |
all32 := TARGET = all32
|
|
63 |
all64 := TARGET = all64
|
|
64 |
clean := TARGET = clean
|
|
65 |
|
|
66 |
all: $(SUBDIRS) all32 all64
|
|
67 |
|
|
68 |
$(SUBDIRS): FRC.targ
|
|
69 |
@cd $@; pwd; $(CCSMAKE) $(MAKEFILE) $(TARGET)
|
|
70 |
|
18
|
71 |
all32: $(VER)/$(CONFIG_STATUS) $(PROGS) $(SUBDIRS)
|
2
|
72 |
cd $(VER); env - \
|
|
73 |
PATH=$(PWD):$(SFW_PATH) \
|
|
74 |
$(CCSMAKE)
|
|
75 |
|
18
|
76 |
all64: $(VER64)/$(CONFIG_STATUS) $(PROGS) $(SUBDIRS)
|
2
|
77 |
cd $(VER64); env - \
|
|
78 |
PATH=$(PWD):$(SFW_PATH) \
|
|
79 |
$(CCSMAKE)
|
|
80 |
|
18
|
81 |
$(VER)/$(CONFIG_STATUS): $(VER)/$(SFW_STAMP_PATCHED) $(VER)/$(PKCS11_STAMP)
|
2
|
82 |
cd $(VER); env - \
|
|
83 |
PATH=$(SFW_PATH) \
|
|
84 |
$(SHELL) ./Configure $(CONFIGURE_OPTIONS)
|
|
85 |
$(GPATCH) $(VER)/crypto/opensslconf.h Patches/opensslconf.patch
|
|
86 |
cd $(VER); $(CCSMAKE) depend
|
|
87 |
$(TOUCH) $@
|
|
88 |
|
18
|
89 |
$(VER64)/$(CONFIG_STATUS): $(VER64)/$(SFW_STAMP_PATCHED) $(VER64)/$(PKCS11_STAMP)
|
2
|
90 |
cd $(VER64); env - \
|
|
91 |
PATH=$(SFW_PATH) \
|
|
92 |
$(SHELL) ./Configure $(CONFIGURE_OPTIONS64)
|
|
93 |
cd $(VER64); $(CCSMAKE) depend
|
|
94 |
$(TOUCH) $@
|
|
95 |
|
|
96 |
install: all install32 install64
|
|
97 |
|
|
98 |
install32: all32
|
9
|
99 |
MACH32=$(MACH32) VERDIR=$(VER) VERSION=$(VERSION) $(SHELL) ./install-sfw
|
2
|
100 |
|
|
101 |
install64: all64
|
|
102 |
MACH64=$(MACH64) VERDIR=$(VER64) \
|
|
103 |
VERSION=$(VERSION) $(SHELL) ./install-sfw-64
|
|
104 |
|
|
105 |
clean: $(SUBDIRS)
|
|
106 |
-rm -rf $(VER) $(VER64) $(PROGS) Patches
|
|
107 |
|
|
108 |
include $(SRC)/lib/Makefile.targ
|