2016-01-30 05:24:23 +00:00
|
|
|
AUTOMAKE_OPTIONS = nostdinc
|
|
|
|
|
|
|
|
CPPFLAGS_ALL_COMMON = \
|
|
|
|
-I$(abs_builddir) \
|
|
|
|
-I$(abs_srcdir) \
|
|
|
|
-I$(includedir)
|
|
|
|
|
|
|
|
LDFLAGS_ALL_COMMON = -L$(abs_builddir) -L$(libdir)
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
# MAIN LIBRARY
|
|
|
|
##################################################
|
|
|
|
|
2019-05-14 04:25:38 +00:00
|
|
|
CPPFLAGS_LIB_COMMON = $(CPPFLAGS_ALL_COMMON)
|
2016-01-30 05:24:23 +00:00
|
|
|
LDFLAGS_LIB_COMMON = $(LDFLAGS_ALL_COMMON) -version-info 1:0:0 -no-undefined
|
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
|
|
|
|
2016-04-12 13:56:59 +00:00
|
|
|
include_HEADERS = \
|
2018-12-12 13:15:54 +00:00
|
|
|
mio-cfg.h \
|
2020-05-01 14:00:27 +00:00
|
|
|
mio-chr.h \
|
2018-12-12 13:15:54 +00:00
|
|
|
mio-cmn.h \
|
2019-02-08 10:13:24 +00:00
|
|
|
mio-dns.h \
|
2020-04-30 16:20:31 +00:00
|
|
|
mio-ecs.h \
|
2020-02-20 06:48:43 +00:00
|
|
|
mio-fmt.h \
|
2020-04-30 16:20:31 +00:00
|
|
|
mio-htb.h \
|
2020-05-01 18:01:29 +00:00
|
|
|
mio-htrd.h \
|
2020-04-30 16:20:31 +00:00
|
|
|
mio-htre.h \
|
|
|
|
mio-http.h \
|
2020-05-29 11:35:20 +00:00
|
|
|
mio-json.h \
|
2020-02-16 14:23:27 +00:00
|
|
|
mio-nwif.h \
|
2019-02-11 09:24:16 +00:00
|
|
|
mio-pac1.h \
|
2020-05-04 08:40:05 +00:00
|
|
|
mio-path.h \
|
2020-05-21 10:15:57 +00:00
|
|
|
mio-pipe.h \
|
2018-12-12 13:15:54 +00:00
|
|
|
mio-pro.h \
|
|
|
|
mio-sck.h \
|
2020-02-16 13:59:41 +00:00
|
|
|
mio-skad.h \
|
2020-05-21 17:05:40 +00:00
|
|
|
mio-thr.h \
|
2019-02-11 09:24:16 +00:00
|
|
|
mio-upac.h \
|
2019-01-24 09:53:10 +00:00
|
|
|
mio-utl.h \
|
2018-12-12 13:15:54 +00:00
|
|
|
mio.h
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = libmio.la
|
|
|
|
libmio_la_SOURCES = \
|
2020-05-01 14:00:27 +00:00
|
|
|
chr.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 \
|
2020-07-08 05:24:40 +00:00
|
|
|
http-fil.c \
|
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 \
|
2018-12-12 13:15:54 +00:00
|
|
|
mio-prv.h \
|
|
|
|
mio.c \
|
2020-02-16 14:23:27 +00:00
|
|
|
nwif.c \
|
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 \
|
|
|
|
sck.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 \
|
|
|
|
utl-siph.c
|
2020-06-11 17:20:09 +00:00
|
|
|
|
|
|
|
|
2018-12-12 13:15:54 +00:00
|
|
|
libmio_la_CPPFLAGS = $(CPPFLAGS_LIB_COMMON)
|
|
|
|
libmio_la_LDFLAGS = $(LDFLAGS_LIB_COMMON)
|
2019-04-12 02:45:35 +00:00
|
|
|
libmio_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
|
2020-06-14 16:09:17 +00:00
|
|
|
include_HEADERS += mio-mar.h
|
|
|
|
libmio_la_SOURCES += mar.c mar-cli.c
|
2020-06-11 17:20:09 +00:00
|
|
|
libmio_la_LDFLAGS +=
|
|
|
|
libmio_la_LIBADD += -lmariadb
|
|
|
|
endif
|
|
|
|
|
2016-01-30 05:24:23 +00:00
|
|
|
install-data-hook:
|
2018-12-12 13:15:54 +00:00
|
|
|
@echo "#ifndef _MIO_CFG_H_" > "$(DESTDIR)$(includedir)/mio-cfg.h"
|
|
|
|
@echo "#define _MIO_CFG_H_" >> "$(DESTDIR)$(includedir)/mio-cfg.h"
|
|
|
|
@$(EGREP) "#define[ ]+MIO_" "$(abs_builddir)/mio-cfg.h" >> "$(DESTDIR)$(includedir)/mio-cfg.h"
|
|
|
|
@echo "#endif" >> "$(DESTDIR)$(includedir)/mio-cfg.h"
|
2019-04-10 09:25:34 +00:00
|
|
|
@rm -f "$(DESTDIR)$(includedir)/mio-cfg.h.in"
|
2018-12-12 13:15:54 +00:00
|
|
|
@$(SED) 's|/\*#define MIO_HAVE_CFG_H\*/|#define MIO_HAVE_CFG_H|' "$(srcdir)/mio-cmn.h" > "$(DESTDIR)$(includedir)/mio-cmn.h"
|
2016-01-30 05:24:23 +00:00
|
|
|
|
|
|
|
uninstall-hook:
|
2019-04-10 09:25:34 +00:00
|
|
|
@rm -f "$(DESTDIR)$(includedir)/mio-cfg.h"
|
2016-01-30 05:24:23 +00:00
|
|
|
|