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 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
23 include ../../make-rules/shared-macros.mk |
23 include ../../make-rules/shared-macros.mk |
24 |
24 |
25 COMPONENT_NAME= isc-dhcp |
25 COMPONENT_NAME= isc-dhcp |
26 COMPONENT_VERSION= 4.1-ESV-R7 |
26 COMPONENT_VERSION= 4.1-ESV-R7 |
39 TPNO= 10383 |
39 TPNO= 10383 |
40 |
40 |
41 include $(WS_MAKE_RULES)/prep.mk |
41 include $(WS_MAKE_RULES)/prep.mk |
42 include $(WS_MAKE_RULES)/configure.mk |
42 include $(WS_MAKE_RULES)/configure.mk |
43 include $(WS_MAKE_RULES)/ips.mk |
43 include $(WS_MAKE_RULES)/ips.mk |
|
44 include $(WS_MAKE_RULES)/lint-libraries.mk |
|
45 |
|
46 # Enable ASLR for this component |
|
47 ASLR_MODE = $(ASLR_ENABLE) |
|
48 |
|
49 LINT_FLAGS += -I$(BUILD_DIR_32)/includes \ |
|
50 -I$(BUILD_DIR_64)/includes -I$(SOURCE_DIR)/includes -I. |
44 |
51 |
45 COMPONENT_PRE_CONFIGURE_ACTION = \ |
52 COMPONENT_PRE_CONFIGURE_ACTION = \ |
46 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
53 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
47 |
54 |
|
55 # Some patches need configure script re-creation. |
|
56 COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf -vfi); |
|
57 |
48 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/inet |
58 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/inet |
49 CONFIGURE_OPTIONS += --sbindir=$(USRLIBDIR)/inet |
59 CONFIGURE_OPTIONS.32 += --sbindir=$(USRLIBDIR)/inet |
50 CONFIGURE_OPTIONS += --bindir=$(USRSBINDIR) |
60 CONFIGURE_OPTIONS.32 += --bindir=$(USRSBINDIR) |
|
61 CONFIGURE_OPTIONS.64 += --sbindir=$(USRLIBDIR)/inet/$(MACH64) |
|
62 CONFIGURE_OPTIONS.64 += --bindir=$(USRSBINDIR)/$(MACH64) |
51 CONFIGURE_OPTIONS += --enable-use-sockets |
63 CONFIGURE_OPTIONS += --enable-use-sockets |
52 CONFIGURE_OPTIONS += --enable-ipv4-pktinfo |
64 CONFIGURE_OPTIONS += --enable-ipv4-pktinfo |
|
65 CONFIGURE_OPTIONS += --with-pic |
53 |
66 |
54 |
67 |
55 # Disable message in omapip/errwarn.c. |
68 # Disable message in omapip/errwarn.c. |
56 CPPFLAGS += -DNOMINUM |
69 CPPFLAGS += -DNOMINUM |
57 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
70 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
58 |
71 |
59 build: $(BUILD_32) |
72 CFLAGS += -g -fPIC |
|
73 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
60 |
74 |
61 install: build $(INSTALL_32) $(PROTO_DIR)/dhcpd.leases |
75 configure: $(CONFIGURE_32_and_64) |
62 |
76 |
|
77 build: $(BUILD_32_and_64) |
63 |
78 |
64 test: build |
79 install: $(INSTALL_32_and_64) $(PROTO_DIR)/dhcpd.leases |
|
80 |
|
81 test: $(TEST_32_and_64) #build |
65 @cd $(BUILD_DIR_32); $(MAKE) check |
82 @cd $(BUILD_DIR_32); $(MAKE) check |
|
83 @cd $(BUILD_DIR_64); $(MAKE) check |
66 |
84 |
67 $(PROTO_DIR)/dhcpd.leases: $(INSTALL_32) |
85 $(PROTO_DIR)/dhcpd.leases: #$(INSTALL_32_and_64) |
68 $(TOUCH) $@ |
86 $(TOUCH) $@ |
69 |
87 |
70 REQUIRED_PACKAGES += shell/ksh93 |
88 REQUIRED_PACKAGES += shell/ksh93 |
71 REQUIRED_PACKAGES += system/core-os |
89 REQUIRED_PACKAGES += system/core-os |
72 REQUIRED_PACKAGES += system/library |
90 REQUIRED_PACKAGES += system/library |