Makefile.in (2275B)
1 # 2 # Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3 # Use is subject to license terms. 4 # 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/. 8 # 9 #ident "$Id$" 10 # 11 12 MOD_DEPTH = ../.. 13 topsrcdir = @top_srcdir@ 14 srcdir = @srcdir@ 15 VPATH = @srcdir@ 16 17 include $(MOD_DEPTH)/config/autoconf.mk 18 19 abs_dist_libdir := $(shell (cd $(dist_libdir);pwd)) 20 abs_dist_includedir := $(shell (cd $(dist_includedir);pwd)) 21 22 %: %.ksh 23 $(RM) $@ 24 cp $< $@ 25 chmod +x $@ 26 27 DIRS = \ 28 SUNWpr \ 29 SUNWprd 30 31 include $(srcdir)/Makefile.com 32 33 PROTO = \ 34 $(ROOT) \ 35 $(ROOT)/usr/lib/mps \ 36 $(ROOT)/usr/include/mps 37 38 ifeq ($(MACH), sparc) 39 PROTO += $(ROOT)/usr/lib/mps/cpu/sparcv8plus 40 endif 41 42 ifeq ($(USE_64), 1) 43 ifeq ($(MACH), sparc) 44 # Sparc 45 PROTO += $(ROOT)/usr/lib/mps/sparcv9 46 else 47 # AMD64 48 PROTO += $(ROOT)/usr/lib/mps/amd64 49 endif 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") 54 else 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") 59 endif 60 61 awk_pkginfo: bld_awk_pkginfo 62 ./bld_awk_pkginfo -m $(MACH) -p "$(PRODUCT_VERSION)" -o $@ -v $(PRODUCT_VERSION) 63 64 all:: awk_pkginfo $(PROTO) 65 publish: awk_pkginfo $(PROTO) 66 +$(LOOP_OVER_DIRS) 67 68 clean clobber:: 69 $(RM) awk_pkginfo bld_awk_pkginfo 70 $(RM) -r $(ROOT) 71 72 $(ROOT): 73 mkdir -p $@ 74 75 $(ROOT)/usr/lib/mps/sparcv9: 76 mkdir -p $@ 77 $(CP) -r $(abs_dist64_libdir)/*.so $@ 78 $(ROOT)/usr/lib/mps/amd64: 79 mkdir -p $@ 80 $(CP) -r $(abs_dist64_libdir)/*.so $@ 81 $(ROOT)/usr/lib/mps: 82 mkdir -p $@ 83 $(CP) -r $(abs_dist32_libdir)/*.so $@ 84 $(ROOT)/usr/lib/mps/cpu/sparcv8plus: 85 mkdir -p $@ 86 $(CP) -r $(abs_dist32_libdir)/cpu/sparcv8plus/*.so $@ 87 $(ROOT)/usr/include/mps: 88 mkdir -p $@ 89 $(CP) -r $(abs_dist32_includedir)/* $@