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, Version 1.0 only 6 # (the "License"). You may not use this file except in compliance 7 # with the License. 8 # 9 # You can obtain a copy of the license at COPYING 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 COPYING. 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 (c) 2012, Joyent, Inc. 22 # 23 24 all_autoconf: $(BUILD32:yes=all_autoconf_32) $(BUILD64:yes=all_autoconf_64) 25 26 all_autoconf_32: $(AUTOCONF_OUT.32) 27 (cd $(OBJ.32); \ 28 env - PATH=$(PATH) $(MAKE) $(PARALLEL) $(OVERRIDES) $(ALL_TGT)) 29 30 all_autoconf_64: $(AUTOCONF_OUT.64) 31 (cd $(OBJ.64); \ 32 env - PATH=$(PATH) $(MAKE) $(PARALLEL) $(OVERRIDES.64) $(ALL_TGT)) 33 34 install_autoconf: $(BUILD32:yes=install_autoconf_32) \ 35 $(BUILD64:yes=install_autoconf_64) 36 37 install_autoconf_32: all 38 mkdir -p $(DESTDIR) 39 (cd $(OBJ.32); \ 40 env - PATH=$(PATH) \ 41 $(MAKE) $(install_PARALLEL) $(OVERRIDES) DESTDIR=$(DESTDIR) install) 42 43 install_autoconf_64: all 44 mkdir -p $(DESTDIR) 45 (cd $(OBJ.64); \ 46 env - PATH=$(PATH) \ 47 $(MAKE) $(install_PARALLEL) $(OVERRIDES.64) DESTDIR=$(DESTDIR) \ 48 install) 49 50 $(AUTOCONF_OUT.32): $(VER.32)/configure | $(OBJ.32) 51 (cd $(OBJ.32); \ 52 env - PATH=$(PATH) $(AUTOCONF_ENV) \ 53 $(SEPARATE_BUILD:yes=../$(VER.32)/)./configure $(AUTOCONF_OPTS.32)) 54 55 $(AUTOCONF_OUT.64): $(VER.64)/configure | $(OBJ.64) 56 (cd $(VER.64); \ 57 env - PATH=$(PATH) $(AUTOCONF_ENV.64) \ 58 $(SEPARATE_BUILD:yes=../$(VER.64)/)./configure $(AUTOCONF_OPTS.64)) 59 60 $(VER.32)/$(UNPACK_SENTINEL): $(TARBALL) 61 -rm -rf $(VER.32) $(OBJ.32) 62 mkdir -p .unpack32 63 gtar x -C .unpack32 $(TARBALL_COMPRESS) --no-same-owner -f $(TARBALL) 64 $(APPLY_PATCHES.32) 65 mv -f .unpack32/$(VER) ./$(VER.32) 66 -rmdir .unpack32 67 $(FROB_SENTINEL.32) 68 touch $(VER.32)/$(UNPACK_SENTINEL) 69 70 $(VER.64)/$(UNPACK_SENTINEL): $(TARBALL) 71 -rm -rf $(VER.64) $(OBJ.64) 72 mkdir -p .unpack64 73 gtar x -C .unpack64 $(TARBALL_COMPRESS) --no-same-owner -f $(TARBALL) 74 $(APPLY_PATCHES.64) 75 mv -f .unpack64/$(VER) ./$(VER.64) 76 -rmdir .unpack64 77 $(FROB_SENTINEL.64) 78 touch $(VER.64)/$(UNPACK_SENTINEL) 79 80 $(VER.32).build: $(VER.32)/$(UNPACK_SENTINEL) 81 mkdir -p "$@" 82 83 $(VER.64).build: $(VER.64)/$(UNPACK_SENTINEL) 84 mkdir -p "$@" 85 86 clean: 87 -rm -rf $(VER) $(VER.32) $(VER.64) .unpack32 .unpack64 $(CLEANFILES) \ 88 $(VER.32)strap $(VER.64)strap $(OBJ.32) $(OBJ.64) $(CTF.32) $(CTF.64)