2016-01-30 05:24:23 +00:00
|
|
|
AUTOMAKE_OPTIONS = nostdinc
|
|
|
|
|
|
|
|
CPPFLAGS_ALL_COMMON = \
|
|
|
|
-I$(abs_builddir) \
|
|
|
|
-I$(abs_srcdir) \
|
|
|
|
-I$(includedir)
|
|
|
|
|
2020-11-15 05:05:59 +00:00
|
|
|
CFLAGS_ALL_COMMON =
|
2016-01-30 05:24:23 +00:00
|
|
|
LDFLAGS_ALL_COMMON = -L$(abs_builddir) -L$(libdir)
|
|
|
|
|
2021-08-14 12:40:40 +00:00
|
|
|
EXTRA_DIST = \
|
2022-06-13 13:54:14 +00:00
|
|
|
hio-str.h.m4 \
|
2021-08-14 12:40:40 +00:00
|
|
|
utl-str.c.m4 \
|
|
|
|
utl-str.m4
|
2021-07-20 14:40:46 +00:00
|
|
|
|
2022-06-11 07:01:21 +00:00
|
|
|
BUILT_SOURCES = \
|
2022-06-13 13:54:14 +00:00
|
|
|
hio-str.h \
|
2022-06-11 07:01:21 +00:00
|
|
|
utl-str.c
|
|
|
|
|
2016-01-30 05:24:23 +00:00
|
|
|
##################################################
|
|
|
|
# MAIN LIBRARY
|
|
|
|
##################################################
|
|
|
|
|
2019-05-14 04:25:38 +00:00
|
|
|
CPPFLAGS_LIB_COMMON = $(CPPFLAGS_ALL_COMMON)
|
2020-11-15 05:05:59 +00:00
|
|
|
CFLAGS_LIB_COMMON = $(CFLAGS_ALL_COMMON)
|
2016-01-30 05:24:23 +00:00
|
|
|
LDFLAGS_LIB_COMMON = $(LDFLAGS_ALL_COMMON) -version-info 1:0:0 -no-undefined
|
2020-11-15 03:40:15 +00:00
|
|
|
|
|
|
|
# $(LIBM) here for quadmath_snprintf() in libquadmath
|
2021-07-22 07:30:20 +00:00
|
|
|
# TODO: make this selective by moving HIO_ENABLE_FLTFMT to configure.ac
|
2019-05-14 04:25:38 +00:00
|
|
|
LIBADD_LIB_COMMON = $(LIBM)
|
2016-01-30 05:24:23 +00:00
|
|
|
|
2016-04-12 13:56:59 +00:00
|
|
|
#pkgincludedir = $(includedir)
|
|
|
|
#pkglibdir = $(libdir)
|
|
|
|
#pkgbindir = $(bindir)
|
2016-01-30 05:24:23 +00:00
|
|
|
|
2021-08-14 13:40:30 +00:00
|
|
|
# Never list hio-cfg.h in include_HEADERS.
|
2016-04-12 13:56:59 +00:00
|
|
|
include_HEADERS = \
|
2021-07-22 07:30:20 +00:00
|
|
|
hio-chr.h \
|
|
|
|
hio-cmn.h \
|
2021-08-13 15:37:34 +00:00
|
|
|
hio-dhcp.h \
|
2021-07-22 07:30:20 +00:00
|
|
|
hio-dns.h \
|
|
|
|
hio-ecs.h \
|
|
|
|
hio-fmt.h \
|
|
|
|
hio-htb.h \
|
|
|
|
hio-htrd.h \
|
|
|
|
hio-htre.h \
|
|
|
|
hio-http.h \
|
|
|
|
hio-json.h \
|
2021-08-14 12:38:44 +00:00
|
|
|
hio-md5.h \
|
2021-07-22 07:30:20 +00:00
|
|
|
hio-nwif.h \
|
|
|
|
hio-opt.h \
|
|
|
|
hio-pac1.h \
|
|
|
|
hio-path.h \
|
|
|
|
hio-pipe.h \
|
|
|
|
hio-pro.h \
|
2022-02-14 16:59:44 +00:00
|
|
|
hio-pty.h \
|
2021-08-12 09:32:24 +00:00
|
|
|
hio-rad.h \
|
2021-07-22 07:30:20 +00:00
|
|
|
hio-sck.h \
|
2022-02-15 11:14:10 +00:00
|
|
|
hio-shw.h \
|
2021-07-22 07:30:20 +00:00
|
|
|
hio-skad.h \
|
2022-06-13 13:54:14 +00:00
|
|
|
hio-str.h \
|
2021-07-22 07:30:20 +00:00
|
|
|
hio-thr.h \
|
|
|
|
hio-upac.h \
|
|
|
|
hio-utl.h \
|
|
|
|
hio.h
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = libhio.la
|
|
|
|
libhio_la_SOURCES = \
|
2020-05-01 14:00:27 +00:00
|
|
|
chr.c \
|
2021-08-13 15:37:34 +00:00
|
|
|
dhcp-svr.c \
|
2019-02-11 09:24:16 +00:00
|
|
|
dns.c \
|
2020-02-21 04:21:16 +00:00
|
|
|
dns-cli.c \
|
2020-04-30 16:20:31 +00:00
|
|
|
ecs.c \
|
|
|
|
ecs-imp.h \
|
2019-01-24 09:53:10 +00:00
|
|
|
err.c \
|
2019-05-31 14:31:40 +00:00
|
|
|
fmt.c \
|
2020-02-20 06:48:43 +00:00
|
|
|
fmt-imp.h \
|
2020-04-30 16:20:31 +00:00
|
|
|
htb.c \
|
2020-05-04 08:40:05 +00:00
|
|
|
htrd.c \
|
2020-05-01 14:00:27 +00:00
|
|
|
htre.c \
|
|
|
|
http.c \
|
2020-05-25 08:04:30 +00:00
|
|
|
http-cgi.c \
|
2022-06-16 13:52:37 +00:00
|
|
|
http-file.c \
|
2020-11-15 05:14:52 +00:00
|
|
|
http-prv.h \
|
2020-05-05 15:12:08 +00:00
|
|
|
http-svr.c \
|
2020-05-25 08:04:30 +00:00
|
|
|
http-thr.c \
|
2020-05-26 14:58:55 +00:00
|
|
|
http-txt.c \
|
2020-05-29 11:35:20 +00:00
|
|
|
json.c \
|
2021-07-22 07:30:20 +00:00
|
|
|
hio-prv.h \
|
|
|
|
hio.c \
|
2021-08-12 09:32:24 +00:00
|
|
|
md5.c \
|
2020-02-16 14:23:27 +00:00
|
|
|
nwif.c \
|
2021-07-19 10:24:39 +00:00
|
|
|
opt.c \
|
|
|
|
opt-imp.h \
|
2020-05-04 08:40:05 +00:00
|
|
|
path.c \
|
2020-05-21 10:15:57 +00:00
|
|
|
pipe.c \
|
2019-04-12 06:37:23 +00:00
|
|
|
pro.c \
|
2022-02-14 15:08:28 +00:00
|
|
|
pty.c \
|
2021-08-12 09:32:24 +00:00
|
|
|
rad-msg.c \
|
2019-04-12 06:37:23 +00:00
|
|
|
sck.c \
|
2022-02-15 11:14:10 +00:00
|
|
|
shw.c \
|
2020-02-16 13:59:41 +00:00
|
|
|
skad.c \
|
2019-01-29 16:57:16 +00:00
|
|
|
sys.c \
|
2019-01-24 18:03:27 +00:00
|
|
|
sys-ass.c \
|
|
|
|
sys-err.c \
|
|
|
|
sys-log.c \
|
2019-01-27 02:09:22 +00:00
|
|
|
sys-mux.c \
|
2020-04-30 02:28:09 +00:00
|
|
|
sys-prv.h \
|
2019-01-27 02:09:22 +00:00
|
|
|
sys-tim.c \
|
2020-05-21 17:05:40 +00:00
|
|
|
thr.c \
|
2020-05-21 10:30:07 +00:00
|
|
|
uch-case.h \
|
|
|
|
uch-prop.h \
|
2019-01-27 02:09:22 +00:00
|
|
|
tmr.c \
|
2019-01-24 09:53:10 +00:00
|
|
|
utf8.c \
|
2020-07-03 06:36:43 +00:00
|
|
|
utl.c \
|
2021-07-20 14:40:46 +00:00
|
|
|
utl-siph.c \
|
|
|
|
utl-str.c
|
2020-06-11 17:20:09 +00:00
|
|
|
|
|
|
|
|
2021-07-22 07:30:20 +00:00
|
|
|
libhio_la_CPPFLAGS = $(CPPFLAGS_LIB_COMMON)
|
|
|
|
libhio_la_CFLAGS = $(CFLAGS_LIB_COMMON)
|
|
|
|
libhio_la_LDFLAGS = $(LDFLAGS_LIB_COMMON)
|
|
|
|
libhio_la_LIBADD = $(LIBADD_LIB_COMMON) $(SSL_LIBS) $(SOCKET_LIBS) $(SENDFILE_LIBS)
|
2018-12-12 13:15:54 +00:00
|
|
|
|
2020-06-11 17:20:09 +00:00
|
|
|
if ENABLE_MARIADB
|
2021-07-22 07:30:20 +00:00
|
|
|
include_HEADERS += hio-mar.h
|
|
|
|
libhio_la_SOURCES += mar.c mar-cli.c
|
|
|
|
libhio_la_CFLAGS += $(MARIADB_CFLAGS)
|
|
|
|
libhio_la_LDFLAGS += $(MARIADB_LDFLAGS)
|
|
|
|
libhio_la_LIBADD += $(MARIADB_LIBS)
|
2020-08-18 02:48:15 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_SSL
|
2021-07-22 07:30:20 +00:00
|
|
|
libhio_la_LIBADD += $(SSL_LIBS)
|
2020-06-11 17:20:09 +00:00
|
|
|
endif
|
|
|
|
|
2016-01-30 05:24:23 +00:00
|
|
|
install-data-hook:
|
2021-07-22 07:30:20 +00:00
|
|
|
@echo "#ifndef _HIO_CFG_H_" > "$(DESTDIR)$(includedir)/hio-cfg.h"
|
|
|
|
@echo "#define _HIO_CFG_H_" >> "$(DESTDIR)$(includedir)/hio-cfg.h"
|
|
|
|
@$(EGREP) "#define[ ]+HIO_" "$(abs_builddir)/hio-cfg.h" >> "$(DESTDIR)$(includedir)/hio-cfg.h"
|
|
|
|
@echo "#endif" >> "$(DESTDIR)$(includedir)/hio-cfg.h"
|
|
|
|
@rm -f "$(DESTDIR)$(includedir)/hio-cfg.h.in"
|
|
|
|
@$(SED) 's|/\*#define HIO_HAVE_CFG_H\*/|#define HIO_HAVE_CFG_H|' "$(srcdir)/hio-cmn.h" > "$(DESTDIR)$(includedir)/hio-cmn.h"
|
2016-01-30 05:24:23 +00:00
|
|
|
|
|
|
|
uninstall-hook:
|
2021-07-22 07:30:20 +00:00
|
|
|
@rm -f "$(DESTDIR)$(includedir)/hio-cfg.h"
|
2016-01-30 05:24:23 +00:00
|
|
|
|
2022-06-13 13:54:14 +00:00
|
|
|
hio-str.h: utl-str.m4 hio-str.h.m4
|
|
|
|
m4 -I$(srcdir) $(srcdir)/hio-str.h.m4 > $(srcdir)/hio-str.h
|
2021-08-14 05:23:57 +00:00
|
|
|
|
|
|
|
utl-str.c: utl-str.m4 utl-str.c.m4
|
|
|
|
m4 -I$(srcdir) $(srcdir)/utl-str.c.m4 > $(srcdir)/utl-str.c
|
|
|
|
|