shared-macros.mk: simplify java settings
[oi-userland.git] / components / web / httping / Makefile
blobd56db7ab5a91bf9a5a6d4dd982a4a93997b0ba4c
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # CDDL HEADER END
15 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
16 # Copyright 2017 Adam Stevko
17 # Copyright 2020 Andreas Wacknitz
19 BUILD_BITS= 64
20 BUILD_STYLE= justmake
21 OPENSSL_VERSION= 3.1
22 include ../../../make-rules/shared-macros.mk
24 COMPONENT_NAME= httping
25 COMPONENT_VERSION= 2.5
26 COMPONENT_FMRI= diagnostic/httping
27 COMPONENT_SUMMARY= Ping using HTTP requests
28 COMPONENT_CLASSIFICATION=Applications/Internet
29 COMPONENT_DESCRIPTION= Give httping an url, and it'll show you how long it takes to connect, send a request and retrieve the reply (only the headers).
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
31 COMPONENT_PROJECT_URL= https://www.vanheusden.com/httping/
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
33 COMPONENT_ARCHIVE_HASH= \
34 sha256:3e895a0a6d7bd79de25a255a1376d4da88eb09c34efdd0476ab5a907e75bfaf8
35 COMPONENT_ARCHIVE_URL= https://critical.ch/distfiles/$(COMPONENT_ARCHIVE)
36 COMPONENT_LICENSE= AGPL v3
38 TEST_TARGET= $(NO_TESTS)
39 include $(WS_MAKE_RULES)/common.mk
41 CC += $(CC_BITS)
43 EXTRA_LIBRARIES = -lsocket -lnsl
44 EXTRA_LIBRARIES += -lncurses -lfftw3 -lssl -lcrypto -lresolv -lm
46 # Provide location for openssl 3.1 headers/libraries
47 CFLAGS += -I$(OPENSSL_INCDIR)
48 LDFLAGS += -L$(OPENSSL_LIBDIR)
50 # The usual Solaris curses.h vs ncurses/curses.h mess.
51 CFLAGS += -I$(USRINCDIR)/ncurses
53 # Override the values in the Makefile but get optimization level etc. from
54 # make-rules/shared-macros.mk.
55 COMPONENT_BUILD_ARGS += NC=yes
56 COMPONENT_BUILD_ARGS += CC="$(CC)"
57 COMPONENT_BUILD_ARGS += OFLAGS="$(CFLAGS)"
58 COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS) $(EXTRA_LIBRARIES)"
60 # Enable ASLR for this component
61 ASLR_MODE = $(ASLR_ENABLE)
63 # Auto-generated dependencies
64 REQUIRED_PACKAGES += $(OPENSSL_PKG)
65 REQUIRED_PACKAGES += library/fftw-3
66 REQUIRED_PACKAGES += library/ncurses
67 REQUIRED_PACKAGES += system/library
68 REQUIRED_PACKAGES += system/library/math