hio/mio/lib/Makefile.am

69 lines
1.6 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)
LDFLAGS_ALL_COMMON = -L$(abs_builddir) -L$(libdir)
##################################################
# MAIN LIBRARY
##################################################
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
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
include_HEADERS = \
2018-12-12 13:15:54 +00:00
mio-cfg.h \
mio-cmn.h \
2019-02-08 10:13:24 +00:00
mio-dns.h \
2019-02-11 09:24:16 +00:00
mio-pac1.h \
2018-12-12 13:15:54 +00:00
mio-pro.h \
mio-sck.h \
2019-02-11 09:24:16 +00:00
mio-upac.h \
mio-utl.h \
2018-12-12 13:15:54 +00:00
mio.h
lib_LTLIBRARIES = libmio.la
libmio_la_SOURCES = \
2019-02-11 09:24:16 +00:00
dns.c \
err.c \
2019-05-31 14:31:40 +00:00
fmt.c \
2018-12-12 13:15:54 +00:00
mio-prv.h \
2019-01-29 16:57:16 +00:00
mio-sys.h \
2018-12-12 13:15:54 +00:00
mio.c \
pro.c \
sck.c \
sck-addr.c \
sck-addr.h \
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 \
sys-tim.c \
tmr.c \
utf8.c \
utl.c
2018-12-12 13:15:54 +00:00
libmio_la_CPPFLAGS = $(CPPFLAGS_LIB_COMMON)
libmio_la_LDFLAGS = $(LDFLAGS_LIB_COMMON)
libmio_la_LIBADD = $(LIBADD_LIB_COMMON) $(SSL_LIBS) $(SOCKET_LIBS) $(SENDFILE_LIBS)
2018-12-12 13:15:54 +00:00
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