components/isc-dhcp/Makefile
changeset 5682 94c0ca64c022
parent 5261 172253f94ecf
child 5709 42ebc732084b
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    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 
       
    22 #
    21 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    22 #
    24 #
       
    25 BUILD_BITS= 64_and_32
    23 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    24 
    27 
    25 COMPONENT_NAME=		isc-dhcp
    28 COMPONENT_NAME=		isc-dhcp
    26 COMPONENT_VERSION=	4.1-ESV-R7
    29 COMPONENT_VERSION=	4.1-ESV-R7
    27 HUMAN_VERSION=		$(COMPONENT_VERSION)-P1
    30 HUMAN_VERSION=		$(COMPONENT_VERSION)-P1
    28 IPS_COMPONENT_VERSION=	4.1.0.7.1
    31 IPS_COMPONENT_VERSION=	4.1.0.7.1
    29 COMPONENT_SRC_NAME=	dhcp
    32 COMPONENT_SRC_NAME=	dhcp
    30 COMPONENT_SRC=		$(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
       
    31 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    32 COMPONENT_PROJECT_URL=	http://www.isc.org/software/dhcp/
    33 COMPONENT_PROJECT_URL=	http://www.isc.org/software/dhcp/
    33 COMPONENT_ARCHIVE_URL=  \
    34 COMPONENT_ARCHIVE_URL=  \
    34     http://ftp.isc.org/isc/dhcp/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
    35     http://ftp.isc.org/isc/dhcp/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
    35 COMPONENT_ARCHIVE_HASH= \
    36 COMPONENT_ARCHIVE_HASH= \
    36     sha256:25d579291a13ccce39c5dbb0e2f2ce8e974c82015bc4e3ee653cf95a4ed15ca4
    37     sha256:25d579291a13ccce39c5dbb0e2f2ce8e974c82015bc4e3ee653cf95a4ed15ca4
    37 COMPONENT_BUGDB=	service/dhcp-server
    38 COMPONENT_BUGDB=	service/dhcp-server
    38 
    39 
    39 TPNO=			10383
    40 TPNO=			10383
    40 
    41 
    41 include $(WS_MAKE_RULES)/prep.mk
    42 INSTALL_TARGET=
    42 include $(WS_MAKE_RULES)/configure.mk
    43 include $(WS_MAKE_RULES)/common.mk
    43 include $(WS_MAKE_RULES)/ips.mk
       
    44 include $(WS_MAKE_RULES)/lint-libraries.mk
       
    45 
    44 
    46 LINT_FLAGS +=   -I$(BUILD_DIR_32)/includes \
    45 LINT_FLAGS +=   -I$(BUILD_DIR_32)/includes \
    47 	-I$(BUILD_DIR_64)/includes -I$(SOURCE_DIR)/includes -I.
    46 	-I$(BUILD_DIR_64)/includes -I$(SOURCE_DIR)/includes -I.
    48 
    47 
    49 COMPONENT_PRE_CONFIGURE_ACTION = \
    48 COMPONENT_PRE_CONFIGURE_ACTION = \
    60 CONFIGURE_OPTIONS  +=	--with-pic
    59 CONFIGURE_OPTIONS  +=	--with-pic
    61 
    60 
    62 
    61 
    63 # Disable message in omapip/errwarn.c.
    62 # Disable message in omapip/errwarn.c.
    64 CPPFLAGS  +=	        -DNOMINUM
    63 CPPFLAGS  +=	        -DNOMINUM
    65 CONFIGURE_OPTIONS  +=   CPPFLAGS="$(CPPFLAGS)"
       
    66 
    64 
    67 CFLAGS += -g -fPIC
    65 CFLAGS += -g -fPIC
    68 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
       
    69 
    66 
    70 COMPONENT_TEST_DIR =	$(@D)
    67 COMPONENT_TEST_DIR =	$(@D)
    71 
    68 
    72 configure:	$(CONFIGURE_32_and_64)
       
    73 
       
    74 build:		$(BUILD_32_and_64)
       
    75 
       
    76 install:	build $(INSTALL_32_and_64) $(PROTO_DIR)/dhcpd.leases
    69 install:	build $(INSTALL_32_and_64) $(PROTO_DIR)/dhcpd.leases
    77 
       
    78 test:		$(TEST_32_and_64)
       
    79 
       
    80 system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
       
    81 
    70 
    82 $(PROTO_DIR)/dhcpd.leases:	$(INSTALL_32_and_64)
    71 $(PROTO_DIR)/dhcpd.leases:	$(INSTALL_32_and_64)
    83 	$(TOUCH) $@
    72 	$(TOUCH) $@
    84 
    73 
    85 
    74 
    86 REQUIRED_PACKAGES += shell/ksh93
    75 REQUIRED_PACKAGES += shell/ksh93
    87 REQUIRED_PACKAGES += system/core-os
    76 REQUIRED_PACKAGES += system/core-os
    88 REQUIRED_PACKAGES += system/library
       
    89 REQUIRED_PACKAGES += system/network
    77 REQUIRED_PACKAGES += system/network