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.1 09/03/05 SMI" |
|
25 # |
|
26 |
|
27 VER=$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh) |
|
28 VER64=$(VER)-64 |
|
29 |
|
30 include ../Makefile.lib |
|
31 |
|
32 CONFIGURE_OPTIONS += --enable-shared |
|
33 |
|
34 all : all32 all64 |
|
35 |
|
36 all32: $(VER)/config.status |
|
37 (cd $(VER); env - \ |
|
38 CC=$(CC) \ |
|
39 "CFLAGS=$(CFLAGS)" \ |
|
40 "PATH=$(SFW_PATH)" \ |
|
41 "MAKE=$(CCSMAKE)" \ |
|
42 $(CCSMAKE)) |
|
43 |
|
44 all64: $(VER64)/config.status |
|
45 (cd $(VER64); env - \ |
|
46 CC=$(CC64) \ |
|
47 "CFLAGS=$(CFLAGS64)" \ |
|
48 "PATH=$(SFW_PATH)" \ |
|
49 "MAKE=$(CCSMAKE)" \ |
|
50 $(CCSMAKE)) |
|
51 |
|
52 install: all |
|
53 VER=$(VER) $(SHELL) ./install-sfw |
|
54 VER64=$(VER64) MACH64=$(MACH64) $(SHELL) ./install-sfw-64 |
|
55 |
|
56 $(VER)/config.status: $(VER)/configure |
|
57 (cd $(VER); env - \ |
|
58 "CC=$(CC)" \ |
|
59 "CFLAGS=$(CFLAGS)" \ |
|
60 "PATH=$(SFW_PATH)" \ |
|
61 "MAKE=$(CCSMAKE)" \ |
|
62 $(SHELL) ./configure $(CONFIGURE_OPTIONS)) |
|
63 |
|
64 $(VER64)/config.status: $(VER64)/configure |
|
65 (cd $(VER64); env - \ |
|
66 "CC=$(CC64)" \ |
|
67 "CFLAGS=$(CFLAGS64)" \ |
|
68 "PATH=$(SFW_PATH)" \ |
|
69 "MAKE=$(CCSMAKE)" \ |
|
70 $(SHELL) ./configure $(CONFIGURE_OPTIONS)) |
|
71 |
|
72 $(VER)/configure: $(VER).tar.gz |
|
73 gzip -dc $(VER).tar.gz | tar xopf - |
|
74 touch $(VER)/configure |
|
75 |
|
76 $(VER64)/configure: $(VER).tar.gz |
|
77 mkdir -p tmp |
|
78 gzip -dc $(VER).tar.gz | (cd tmp; tar xopf -) |
|
79 rm -rf $(VER64) |
|
80 mv tmp/$(VER) $(VER64); rmdir tmp |
|
81 touch $(VER64)/configure |
|
82 |
|
83 clean: |
|
84 -rm -rf $(VER) $(VER64) |
|
85 |
|
86 install_h: |
|
87 |
|
88 include ../Makefile.targ |
|
89 |
|