|
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 (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
22 # |
|
23 |
|
24 include ../../make-rules/shared-macros.mk |
|
25 |
|
26 COMPONENT_NAME= make |
|
27 COMPONENT_VERSION= 3.81 |
|
28 IPS_PKG_NAME= developer/build/gnu-make |
|
29 COMPONENT_DESCRIPTION= "GNU make - A utility used to build software (gmake) 3.81" |
|
30 COMPONENT_CLASSIFICATION="Development/GNU" |
|
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 COMPONENT_PROJECT_URL= http://http.gnu.org/software/make/ |
|
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
34 COMPONENT_ARCHIVE_HASH= sha1:cd4fa5a3184176492bf0799593a8f250a728210c |
|
35 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/make/$(COMPONENT_ARCHIVE) |
|
36 |
|
37 include ../../make-rules/prep.mk |
|
38 include ../../make-rules/configure.mk |
|
39 include ../../make-rules/ips.mk |
|
40 |
|
41 CONFIGURE_OPTIONS += --program-prefix=g |
|
42 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
|
43 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
44 |
|
45 GNUPROGS = make |
|
46 GNUMAN1 = make.1 |
|
47 SFWPROGS= gmake |
|
48 SFWMAN1= gmake.1 |
|
49 |
|
50 PROTOGNULINKS = $(GNUPROGS:%=$(PROTOGNUBIN)/%) |
|
51 |
|
52 $(PROTOGNULINKS): $(PROTOGNUBIN) |
|
53 $(RM) $@ ; $(SYMLINK) ../../bin/g$(@F) $@ |
|
54 |
|
55 PROTOGNUMAN1LINKS = $(GNUMAN1:%=$(PROTOGNUSHAREMAN1)/%) |
|
56 |
|
57 $(PROTOGNUMAN1LINKS): $(PROTOGNUSHAREMAN1) |
|
58 $(RM) $@ ; $(SYMLINK) ../../../../share/man/man1/g$(@F) $@ |
|
59 |
|
60 include ../../make-rules/shared-targets.mk |
|
61 |
|
62 # common targets |
|
63 build: $(BUILD_32) |
|
64 |
|
65 install: $(INSTALL_32) \ |
|
66 $(PROTOGNULINKS) $(PROTOGNUMAN1LINKS) \ |
|
67 $(PROTOSFWLINKS) $(PROTOSFWMAN1LINKS) |
|
68 |
|
69 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
70 |
|
71 include ../../make-rules/depend.mk |