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) $(LTDLINCL)
|
|
|
|
LDFLAGS_LIB_COMMON = $(LDFLAGS_ALL_COMMON) -version-info 1:0:0 -no-undefined
|
|
|
|
LIBADD_LIB_COMMON = $(LIBM) $(LIBLTDL)
|
|
|
|
|
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 = \
|
2016-01-30 05:24:23 +00:00
|
|
|
stio-cfg.h \
|
|
|
|
stio-cmn.h \
|
2016-02-02 15:40:09 +00:00
|
|
|
stio-pro.h \
|
|
|
|
stio-sck.h \
|
2016-01-30 05:24:23 +00:00
|
|
|
stio.h
|
|
|
|
|
2016-04-12 13:56:59 +00:00
|
|
|
lib_LTLIBRARIES = libstio.la
|
2016-01-30 05:24:23 +00:00
|
|
|
libstio_la_SOURCES = \
|
|
|
|
stio-prv.h \
|
|
|
|
stio.c \
|
2016-02-02 15:40:09 +00:00
|
|
|
stio-pro.c \
|
2016-01-30 05:24:23 +00:00
|
|
|
stio-sck.c \
|
|
|
|
stio-tim.c \
|
2016-04-02 15:25:35 +00:00
|
|
|
stio-tmr.c
|
2016-01-30 05:24:23 +00:00
|
|
|
libstio_la_CPPFLAGS = $(CPPFLAGS_LIB_COMMON)
|
|
|
|
libstio_la_LDFLAGS = $(LDFLAGS_LIB_COMMON)
|
2016-04-17 17:00:58 +00:00
|
|
|
libstio_la_LIBADD = $(LIBADD_LIB_COMMON) $(SSL_LIBS)
|
2016-01-30 05:24:23 +00:00
|
|
|
|
2016-04-12 13:56:59 +00:00
|
|
|
bin_PROGRAMS = stio
|
2016-01-30 05:24:23 +00:00
|
|
|
stio_SOURCES = main.c
|
|
|
|
stio_CPPFLAGS = $(CPPFLAGS_LIB_COMMON)
|
|
|
|
stio_LDFLAGS = $(LDFLAGS_LIB_COMMON)
|
|
|
|
stio_LDADD = $(LIBADD_LIB_COMMON) -lstio
|
|
|
|
|
|
|
|
install-data-hook:
|
2016-04-16 16:05:57 +00:00
|
|
|
@echo "#ifndef _STIO_CFG_H_" > "$(DESTDIR)$(includedir)/stio-cfg.h"
|
|
|
|
@echo "#define _STIO_CFG_H_" >> "$(DESTDIR)$(includedir)/stio-cfg.h"
|
|
|
|
@$(EGREP) "#define[ ]+STIO_" "$(abs_builddir)/stio-cfg.h" >> "$(DESTDIR)$(includedir)/stio-cfg.h"
|
|
|
|
@echo "#endif" >> "$(DESTDIR)$(includedir)/stio-cfg.h"
|
|
|
|
@$(RM) "$(DESTDIR)$(includedir)/stio-cfg.h.in"
|
|
|
|
@$(SED) 's|/\*#define STIO_HAVE_CFG_H\*/|#define STIO_HAVE_CFG_H|' "$(srcdir)/stio-cmn.h" > "$(DESTDIR)$(includedir)/stio-cmn.h"
|
2016-01-30 05:24:23 +00:00
|
|
|
|
|
|
|
uninstall-hook:
|
2016-04-16 16:05:57 +00:00
|
|
|
@$(RM) "$(DESTDIR)$(includedir)/stio-cfg.h"
|
2016-01-30 05:24:23 +00:00
|
|
|
|