15 # If applicable, add the following below this CDDL HEADER, with the |
15 # If applicable, add the following below this CDDL HEADER, with the |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
|
20 # |
20 |
21 |
21 # |
22 # |
22 # Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # |
24 # |
24 |
25 BUILD_BITS= 64 |
25 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
26 |
27 |
27 COMPONENT_NAME= tree |
28 COMPONENT_NAME= tree |
28 COMPONENT_VERSION= 1.7.0 |
29 COMPONENT_VERSION= 1.7.0 |
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
31 COMPONENT_ARCHIVE_HASH= \ |
31 COMPONENT_ARCHIVE_HASH= \ |
32 sha256:6957c20e82561ac4231638996e74f4cfa4e6faabc5a2f511f0b4e3940e8f7b12 |
32 sha256:6957c20e82561ac4231638996e74f4cfa4e6faabc5a2f511f0b4e3940e8f7b12 |
33 COMPONENT_PROJECT_URL= http://mama.indstate.edu/users/ice/tree/ |
33 COMPONENT_PROJECT_URL= http://mama.indstate.edu/users/ice/tree/ |
34 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)src/$(COMPONENT_ARCHIVE) |
34 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)src/$(COMPONENT_ARCHIVE) |
35 COMPONENT_BUGDB= utility/tree |
|
36 |
35 |
37 TPNO= 27186 |
36 TPNO= 27186 |
38 |
37 |
39 include $(WS_MAKE_RULES)/prep.mk |
38 BUILD_STYLE= justmake |
40 include $(WS_MAKE_RULES)/justmake.mk |
39 TEST_TARGET= $(NO_TESTS) |
41 include $(WS_MAKE_RULES)/ips.mk |
40 include $(WS_MAKE_RULES)/common.mk |
42 |
|
43 # Enable ASLR for this component |
|
44 ASLR_MODE = $(ASLR_ENABLE) |
|
45 |
41 |
46 # Fixes creation of executable |
42 # Fixes creation of executable |
47 CC += $(CC_BITS) |
43 LDFLAGS += $(CC_BITS) |
48 # The native Makefile invites patching to set the following, but doing it here |
44 |
|
45 # The native Makefile invites patching to build for Solaris, but doing it here |
49 # instead will keep it working if the build system changes. |
46 # instead will keep it working if the build system changes. |
50 COMPONENT_BUILD_ARGS += CC="$(CC)" |
47 COMPONENT_BUILD_ARGS += CC="$(CC)" |
51 COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)" |
48 COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)" |
52 COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)" |
49 COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)" |
53 COMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR) |
50 COMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR) |
54 COMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMAN1DIR) |
51 COMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMAN1DIR) |
55 |
|
56 build: $(BUILD_64) |
|
57 |
|
58 install: $(INSTALL_64) |
|
59 |
|
60 test: $(NO_TESTS) |
|
61 |
|
62 system-test: $(NO_TESTS) |
|
63 |
|
64 REQUIRED_PACKAGES += system/library |
|