Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 79 lines (67 sloc) 2.386 kb
9946ff0 @wesolows smartos-live#67 Support compiling cpp with gcc.
wesolows authored
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 $(VER.32); env - PATH=$(PATH) $(MAKE) $(PARALLEL) $(OVERRIDES))
28
29 all_autoconf_64: $(AUTOCONF_OUT.64)
30 (cd $(VER.64); env - PATH=$(PATH) $(MAKE) $(PARALLEL) $(OVERRIDES.64))
31
32 install_autoconf: $(BUILD32:yes=install_autoconf_32) \
33 $(BUILD64:yes=install_autoconf_64)
34
35 install_autoconf_32: all
36 mkdir -p $(DESTDIR)
37 (cd $(VER.32); \
38 env - PATH=$(PATH) \
39 $(MAKE) $(install_PARALLEL) DESTDIR=$(DESTDIR) install)
40
41 install_autoconf_64: all
42 mkdir -p $(DESTDIR)
43 (cd $(VER.64); \
44 env - PATH=$(PATH) \
45 $(MAKE) $(install_PARALLEL) DESTDIR=$(DESTDIR) install)
46
47 $(AUTOCONF_OUT.32): $(VER.32)/configure
48 (cd $(VER.32); \
49 env - PATH=$(PATH) $(AUTOCONF_ENV) \
50 ./configure $(AUTOCONF_OPTS))
51
52 $(AUTOCONF_OUT.64): $(VER.64)/configure
53 (cd $(VER.64); \
54 env - PATH=$(PATH) $(AUTOCONF_ENV.64) \
55 ./configure $(AUTOCONF_OPTS.64))
56
57 $(VER.32)/$(UNPACK_SENTINEL): $(TARBALL)
58 -rm -rf $(VER.32)
59 mkdir -p .unpack32
60 gtar x -C .unpack32 $(TARBALL_COMPRESS) --no-same-owner -f $(TARBALL)
61 $(APPLY_PATCHES.32)
62 mv -f .unpack32/$(VER) ./$(VER.32)
63 -rmdir .unpack32
64 $(FROB_SENTINEL.32)
65 touch $(VER.32)/$(UNPACK_SENTINEL)
66
67 $(VER.64)/$(UNPACK_SENTINEL): $(TARBALL)
68 -rm -rf $(VER.64)
69 mkdir -p .unpack64
70 gtar x -C .unpack64 $(TARBALL_COMPRESS) --no-same-owner -f $(TARBALL)
71 $(APPLY_PATCHES.64)
72 mv -f .unpack64/$(VER) ./$(VER.64)
73 -rmdir .unpack64
74 $(FROB_SENTINEL.64)
75 touch $(VER.64)/$(UNPACK_SENTINEL)
76
77 clean:
78 -rm -rf $(VER) $(VER.32) $(VER.64) .unpack32 .unpack64 $(CLEANFILES)
Something went wrong with that request. Please try again.