hio/hio/lib/Makefile.am

154 lines
3.0 KiB
Makefile
Raw Normal View History

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)
EXTRA_DIST = \
2022-06-13 13:54:14 +00:00
hio-str.h.m4 \
utl-str.c.m4 \
utl-str.m4
BUILT_SOURCES = \
2022-06-13 13:54:14 +00:00
hio-str.h \
utl-str.c
2016-01-30 05:24:23 +00:00
##################################################
# MAIN LIBRARY
##################################################
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
# $(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
LIBADD_LIB_COMMON = $(LIBM)
2016-01-30 05:24:23 +00:00
#pkgincludedir = $(includedir)
#pkglibdir = $(libdir)
#pkgbindir = $(bindir)
2016-01-30 05:24:23 +00:00
# Never list hio-cfg.h in include_HEADERS.
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 \
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 \
hio-rad.h \
2021-07-22 07:30:20 +00:00
hio-sck.h \
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 \
dns-cli.c \
2020-04-30 16:20:31 +00:00
ecs.c \
ecs-imp.h \
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 \
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 \
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 \
pro.c \
2022-02-14 15:08:28 +00:00
pty.c \
rad-msg.c \
sck.c \
shw.c \
skad.c \
2019-01-29 16:57:16 +00:00
sys.c \
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 \
utf8.c \
2020-07-03 06:36:43 +00:00
utl.c \
utl-siph.c \
utl-str.c
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
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)
endif
if ENABLE_SSL
2021-07-22 07:30:20 +00:00
libhio_la_LIBADD += $(SSL_LIBS)
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
utl-str.c: utl-str.m4 utl-str.c.m4
m4 -I$(srcdir) $(srcdir)/utl-str.c.m4 > $(srcdir)/utl-str.c