Makefile revision 174
174N/A#
174N/A# CDDL HEADER START
174N/A#
174N/A# The contents of this file are subject to the terms of the
174N/A# Common Development and Distribution License (the "License").
174N/A# You may not use this file except in compliance with the License.
174N/A#
174N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
174N/A# or http://www.opensolaris.org/os/licensing.
174N/A# See the License for the specific language governing permissions
174N/A# and limitations under the License.
174N/A#
174N/A# When distributing Covered Code, include this CDDL HEADER in each
174N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
174N/A# If applicable, add the following below this CDDL HEADER, with the
174N/A# fields enclosed by brackets "[]" replaced with your own identifying
174N/A# information: Portions Copyright [yyyy] [name of copyright owner]
174N/A#
174N/A# CDDL HEADER END
174N/A#
174N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
174N/A#
174N/Ainclude ../../make-rules/shared-macros.mk
174N/A
174N/ACOMPONENT_NAME = curl
174N/ACOMPONENT_VERSION= 7.21.2
174N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
174N/ACOMPONENT_PROJECT_URL= http://curl.haxx.se/
174N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
174N/ACOMPONENT_ARCHIVE_HASH= sha1:af8182165d7a0d16b97e2c2936ed92f3ba5c868c
174N/ACOMPONENT_ARCHIVE_URL= http://curl.haxx.se/download/$(COMPONENT_ARCHIVE)
174N/A
174N/Ainclude ../../make-rules/prep.mk
174N/Ainclude ../../make-rules/configure.mk
174N/Ainclude ../../make-rules/ips.mk
174N/A
174N/APKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
174N/APKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
174N/A
174N/APATCH_LEVEL = 0
174N/A
174N/ALIBNAME = $(COMPONENT_NAME)
174N/ALINTOUT = lint.out
174N/A
174N/AGSSAPI_LIBDIR_32 = /usr/lib
174N/AGSSAPI_LIBDIR_64 = /usr/lib/$(MACH64)
174N/A
174N/A# Enable C99 mode
174N/Astudio_C99MODE = $(studio_C99_ENABLE)
174N/A
174N/A# And we want -Xc too
174N/ACFLAGS += $(CC_BITS) -Xc -xnorunpath $(XPG6MODE)
174N/ACFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES)
174N/ACPPFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES) -D__EXTENSIONS__=1 -DNDEBUG
174N/ALDFLAGS += -lpthread -lc -lm -lgss -lsocket -lresolv -lnsl -lgen
174N/A
174N/ACONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
174N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
174N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
174N/ACONFIGURE_ENV += CCLD="$(CC) $(CFLAGS) $(LDFLAGS)"
174N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
174N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
174N/A
174N/ACONFIGURE_OPTIONS += --localstatedir=/var --enable-shared --disable-static
174N/ACONFIGURE_OPTIONS += --enable-http --enable-ftp
174N/ACONFIGURE_OPTIONS += --enable-file --enable-dict
174N/ACONFIGURE_OPTIONS += --enable-manual --disable-libgcc
174N/ACONFIGURE_OPTIONS += --enable-rtsp --enable-proxy
174N/ACONFIGURE_OPTIONS += --enable-telnet --enable-tftp --enable-pop3
174N/ACONFIGURE_OPTIONS += --enable-imap --enable-smtp
174N/ACONFIGURE_OPTIONS += --enable-ipv6 --enable-nonblocking
174N/ACONFIGURE_OPTIONS += --enable-thread --enable-verbose
174N/ACONFIGURE_OPTIONS += --disable-sspi --enable-crypto-auth
174N/ACONFIGURE_OPTIONS += --enable-cookies --disable-hidden-symbols
174N/ACONFIGURE_OPTIONS += --disable-soname-bump
174N/ACONFIGURE_OPTIONS += --enable-ldap --with-random=/dev/urandom
174N/ACONFIGURE_OPTIONS += --with-ssl --with-ldap-lib=ldap
174N/ACONFIGURE_OPTIONS += --with-lber-lib=sldap
174N/ACONFIGURE_OPTIONS += --with-gssapi-includes=/usr/include/gssapi
174N/ACONFIGURE_OPTIONS += --with-gssapi-libs=$(GSSAPI_LIBDIR_$(BITS))
174N/ACONFIGURE_OPTIONS += --with-gssapi=/usr --without-ca-bundle
174N/ACONFIGURE_OPTIONS += --with-ca-path=/etc/openssl/certs
174N/ACONFIGURE_OPTIONS += --with-zlib=/usr --with-libidn=/usr
174N/ACONFIGURE_OPTIONS += --with-pic
174N/ACONFIGURE_OPTIONS += "curl_disallow_getifaddrs=yes"
174N/A
174N/APKG_PROTO_DIRS += $(COMPONENT_SRC)
174N/A
174N/ACOMPONENT_POST_BUILD_ACTION = \
174N/A ( cd $(@D) ; \
174N/A $(LINT) -nsvx $(CC_BITS) -o $(LIBNAME) -I$(@D) \
174N/A -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include \
174N/A -I$(COMPONENT_DIR)/$(COMPONENT_SRC) \
174N/A $(COMPONENT_DIR)/llib-l$(LIBNAME) > $(LINTOUT) 2>&1)
174N/A
174N/ACOMPONENT_POST_INSTALL_ACTION = \
174N/A ( $(CP) $(COMPONENT_DIR)/llib-l$(LIBNAME) $(PROTOUSRLIBDIR)/ ; \
174N/A cd $(@D); $(INSTALL) llib-l$(LIBNAME).ln \
174N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS)) )
174N/A
174N/APROTOUSRBINDIR64 = $(PROTOUSRBINDIR)/$(MACH64)
174N/APROTOUSRSHAREDOCDIR1 = $(PROTOUSRSHAREDIR)/doc/curl/html
174N/APROTOUSRSHAREDOCDIR2 = $(PROTOUSRSHAREDIR)/doc/libcurl/html
174N/A
174N/Abuild: $(BUILD_32_and_64)
174N/A
174N/AHTMLDOCLIST1 = curl.html curl-config.html index.html
174N/AHTMLDOCLIST2 = curl_easy_cleanup.html curl_easy_duphandle.html \
174N/A curl_easy_escape.html curl_easy_getinfo.html \
174N/A curl_easy_init.html curl_easy_pause.html \
174N/A curl_easy_perform.html curl_easy_recv.html \
174N/A curl_easy_reset.html curl_easy_send.html \
174N/A curl_easy_setopt.html curl_easy_strerror.html \
174N/A curl_easy_unescape.html curl_escape.html \
174N/A curl_formadd.html curl_formfree.html \
174N/A curl_formget.html curl_free.html \
174N/A curl_getdate.html curl_getenv.html \
174N/A curl_global_cleanup.html curl_global_init.html \
174N/A curl_global_init_mem.html curl_mprintf.html \
174N/A curl_multi_add_handle.html curl_multi_assign.html \
174N/A curl_multi_cleanup.html curl_multi_fdset.html \
174N/A curl_multi_info_read.html curl_multi_init.html \
174N/A curl_multi_perform.html curl_multi_remove_handle.html \
174N/A curl_multi_setopt.html curl_multi_socket.html \
174N/A curl_multi_socket_action.html curl_multi_strerror.html \
174N/A curl_multi_timeout.html curl_share_cleanup.html \
174N/A curl_share_init.html curl_share_setopt.html \
174N/A curl_share_strerror.html curl_slist_append.html \
174N/A curl_slist_free_all.html curl_strequal.html \
174N/A curl_unescape.html curl_version.html \
174N/A curl_version_info.html index.html \
174N/A libcurl-easy.html libcurl-errors.html \
174N/A libcurl-multi.html libcurl-share.html \
174N/A libcurl-tutorial.html libcurl.html
174N/A
174N/AMAN1LIST = curl-config.1 curl.1
174N/AMAN3LIST = curl_easy_cleanup.3 curl_easy_duphandle.3 \
174N/A curl_easy_escape.3 curl_easy_getinfo.3 \
174N/A curl_easy_init.3 curl_easy_pause.3 \
174N/A curl_easy_perform.3 curl_easy_recv.3 \
174N/A curl_easy_reset.3 curl_easy_send.3 \
174N/A curl_easy_setopt.3 curl_easy_strerror.3 \
174N/A curl_easy_unescape.3 curl_escape.3 \
174N/A curl_formadd.3 curl_formfree.3 \
174N/A curl_formget.3 curl_free.3 \
174N/A curl_getdate.3 curl_getenv.3 \
174N/A curl_global_cleanup.3 curl_global_init.3 \
174N/A curl_global_init_mem.3 curl_mprintf.3 \
174N/A curl_multi_add_handle.3 curl_multi_assign.3 \
174N/A curl_multi_cleanup.3 curl_multi_fdset.3 \
174N/A curl_multi_info_read.3 curl_multi_init.3 \
174N/A curl_multi_perform.3 curl_multi_remove_handle.3 \
174N/A curl_multi_setopt.3 curl_multi_socket.3 \
174N/A curl_multi_socket_action.3 curl_multi_strerror.3 \
174N/A curl_multi_timeout.3 curl_share_cleanup.3 \
174N/A curl_share_init.3 curl_share_setopt.3 \
174N/A curl_share_strerror.3 curl_slist_append.3 \
174N/A curl_slist_free_all.3 curl_strequal.3 \
174N/A curl_unescape.3 curl_version.3 \
174N/A curl_version_info.3 libcurl-easy.3 \
174N/A libcurl-errors.3 libcurl-multi.3 \
174N/A libcurl-share.3 libcurl-tutorial.3 libcurl.3
174N/A
174N/AGSED = /usr/gnu/bin/sed
174N/A
174N/Ainclude ../../make-rules/shared-targets.mk
174N/A
174N/Ainstall: $(INSTALL_32_and_64)
174N/A $(MKDIR) $(PROTOUSRSHAREDOCDIR1) ; \
174N/A list1='$(HTMLDOCLIST1)' ; for f in $$list1; do \
174N/A $(INSTALL) -m 0644 $(COMPONENT_DIR)/$(COMPONENT_SRC)/docs/$$f \
174N/A $(PROTOUSRSHAREDOCDIR1)/ ; \
174N/A done
174N/A $(MKDIR) $(PROTOUSRSHAREDOCDIR2) ; \
174N/A list2='$(HTMLDOCLIST2)' ; for f in $$list2; do \
174N/A $(INSTALL) -m 0644 \
174N/A $(COMPONENT_DIR)/$(COMPONENT_SRC)/docs/libcurl/$$f \
174N/A $(PROTOUSRSHAREDOCDIR2)/ ; \
174N/A done
174N/A $(MKDIR) $(PROTOUSRSHAREMAN1DIR) ; \
174N/A list3='$(MAN1LIST)'; for f in $$list3; do \
174N/A $(GSED) -f oracleman-stability \
174N/A $(PROTOUSRSHAREMAN1DIR)/$$f > \
174N/A $(PROTOUSRSHAREMAN1DIR)/$$f.sed 2>&1 ; \
174N/A $(CP) -fp $(PROTOUSRSHAREMAN1DIR)/$$f.sed \
174N/A $(PROTOUSRSHAREMAN1DIR)/$$f ; \
174N/A $(RM) -f $(PROTOUSRSHAREMAN1DIR)/$$f.sed ; \
174N/A done
174N/A $(MKDIR) $(PROTOUSRSHAREMAN3DIR) ; \
174N/A list4='$(MAN3LIST)'; for f in $$list4; do \
174N/A $(GSED) -f oracleman-stability \
174N/A $(PROTOUSRSHAREMAN3DIR)/$$f > \
174N/A $(PROTOUSRSHAREMAN3DIR)/$$f.sed 2>&1 ; \
174N/A $(CP) -fp $(PROTOUSRSHAREMAN3DIR)/$$f.sed \
174N/A $(PROTOUSRSHAREMAN3DIR)/$$f ; \
174N/A $(RM) -f $(PROTOUSRSHAREMAN3DIR)/$$f.sed ; \
174N/A done
174N/A $(RM) $(PROTOUSRBINDIR)/curl-config ; \
174N/A $(INSTALL) -m 0755 $(COMPONENT_DIR)/Solaris/curl-config \
174N/A $(PROTOUSRBINDIR)/
174N/A $(RM) $(PROTOUSRBINDIR64)/curl-config
174N/A $(GSED) -e "s#MACH64#$(MACH64)#g" \
174N/A $(COMPONENT_DIR)/Solaris/curl-config-64 > \
174N/A $(COMPONENT_DIR)/curl-config
174N/A $(INSTALL) -m 0755 \
174N/A $(COMPONENT_DIR)/curl-config $(PROTOUSRBINDIR64)/
174N/A $(RM) $(COMPONENT_DIR)/curl-config
174N/A
174N/Atest: $(BUILD_32_and_64)
174N/A @cd $(BUILD_DIR_32); $(GMAKE) check
174N/A @cd $(BUILD_DIR_64); $(GMAKE) check
174N/A
174N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
174N/A
174N/Ainclude ../../make-rules/depend.mk
174N/A