2 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
13 topsrcdir
= @top_srcdir@
17 include $(MOD_DEPTH
)/config
/autoconf.mk
19 abs_dist_libdir
:= $(shell (cd
$(dist_libdir
);pwd
))
20 abs_dist_includedir
:= $(shell (cd
$(dist_includedir
);pwd
))
31 include $(srcdir)/Makefile.com
36 $(ROOT
)/usr
/include/mps
39 PROTO
+= $(ROOT
)/usr
/lib
/mps
/cpu
/sparcv8plus
45 PROTO
+= $(ROOT
)/usr
/lib
/mps
/sparcv9
48 PROTO
+= $(ROOT
)/usr
/lib
/mps
/amd64
50 abs_dist64_libdir
= $(abs_dist_libdir
)
51 abs_dist32_libdir
= $(shell echo
$(abs_dist_libdir
) | sed
-e
"s|_64_OPT|_OPT|g" -e
"s|_64_DBG|_DBG|g")
52 abs_dist64_includedir
= $(abs_dist_includedir
)
53 abs_dist32_includedir
= $(shell echo
$(abs_dist_includedir
) | sed
-e
"s|_64_OPT|_OPT|g" -e
"s|_64_DBG|_DBG|g")
55 abs_dist32_libdir
= $(abs_dist_libdir
)
56 abs_dist64_libdir
= $(shell echo
$(abs_dist_libdir
) | sed
-e
"s|_OPT|_64_OPT|g" -e
"s|_DBG|_64_DBG|g")
57 abs_dist32_includedir
= $(abs_dist_includedir
)
58 abs_dist64_includedir
= $(shell echo
$(abs_dist_includedir
) | sed
-e
"s|_OPT|_64_OPT|g" -e
"s|_DBG|_64_DBG|g")
61 awk_pkginfo
: bld_awk_pkginfo
62 .
/bld_awk_pkginfo
-m
$(MACH
) -p
"$(PRODUCT_VERSION)" -o
$@
-v
$(PRODUCT_VERSION
)
64 all:: awk_pkginfo
$(PROTO
)
65 publish
: awk_pkginfo
$(PROTO
)
69 $(RM
) awk_pkginfo bld_awk_pkginfo
75 $(ROOT
)/usr
/lib
/mps
/sparcv9
:
77 $(CP
) -r
$(abs_dist64_libdir
)/*.so
$@
78 $(ROOT
)/usr
/lib
/mps
/amd64
:
80 $(CP
) -r
$(abs_dist64_libdir
)/*.so
$@
83 $(CP
) -r
$(abs_dist32_libdir
)/*.so
$@
84 $(ROOT
)/usr
/lib
/mps
/cpu
/sparcv8plus
:
86 $(CP
) -r
$(abs_dist32_libdir
)/cpu
/sparcv8plus
/*.so
$@
87 $(ROOT
)/usr
/include/mps
:
89 $(CP
) -r
$(abs_dist32_includedir
)/* $@