hio/stio/lib/Makefile.am

59 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) $(LTDLINCL)
LDFLAGS_LIB_COMMON = $(LDFLAGS_ALL_COMMON) -version-info 1:0:0 -no-undefined
LIBADD_LIB_COMMON = $(LIBM) $(LIBLTDL)
#pkgincludedir = $(includedir)
#pkglibdir = $(libdir)
#pkgbindir = $(bindir)
2016-01-30 05:24:23 +00:00
include_HEADERS = \
2016-01-30 05:24:23 +00:00
stio-cfg.h \
stio-cmn.h \
stio-pro.h \
stio-sck.h \
2016-01-30 05:24:23 +00:00
stio.h
lib_LTLIBRARIES = libstio.la
2016-01-30 05:24:23 +00:00
libstio_la_SOURCES = \
stio-prv.h \
stio.c \
stio-pro.c \
2016-01-30 05:24:23 +00:00
stio-sck.c \
stio-tim.c \
2016-04-18 14:21:23 +00:00
stio-tmr.c \
stio-utl.c
2016-01-30 05:24:23 +00:00
libstio_la_CPPFLAGS = $(CPPFLAGS_LIB_COMMON)
libstio_la_LDFLAGS = $(LDFLAGS_LIB_COMMON)
libstio_la_LIBADD = $(LIBADD_LIB_COMMON) $(SSL_LIBS)
2016-01-30 05:24:23 +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:
@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:
@$(RM) "$(DESTDIR)$(includedir)/stio-cfg.h"
2016-01-30 05:24:23 +00:00