begin to separate potentially shared code into library
This commit is contained in:
parent
131ea70b6a
commit
8159ff04d2
1
INSTALL
1
INSTALL
@ -2,6 +2,7 @@ First of all, you need some packages installed:
|
|||||||
|
|
||||||
autoconf
|
autoconf
|
||||||
automake
|
automake
|
||||||
|
libtool
|
||||||
gammu
|
gammu
|
||||||
|
|
||||||
To compile program:
|
To compile program:
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
|
SUBDIRS = lib
|
||||||
|
|
||||||
INCLUDES=${gammu_CFLAGS}
|
INCLUDES=${gammu_CFLAGS}
|
||||||
yasnd_LDADD = ${libconfuse_LIBS}
|
yasnd_LDADD = ${libconfuse_LIBS}
|
||||||
yasnd_LDADD += ${gammu_LIBS}
|
yasnd_LDADD += ${gammu_LIBS}
|
||||||
|
yasnd_LDADD += lib/libyasnd.la
|
||||||
sbin_PROGRAMS = yasnd
|
sbin_PROGRAMS = yasnd
|
||||||
yasnd_SOURCES = yasnd.c yasnd-gammu.c yasnd-ipc.c
|
yasnd_SOURCES = yasnd.c yasnd-gammu.c yasnd-ipc.c
|
||||||
|
|
||||||
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
distclean-local:
|
distclean-local:
|
||||||
rm -rf aclocal.m4 autom4te.cache depcomp install-sh missing configure Makefile.in config.h* &>/dev/null
|
rm -rf aclocal.m4 m4 autom4te.cache depcomp install-sh missing configure Makefile.in config.h* &>/dev/null
|
||||||
|
rm -rf ltmain.sh config.guess config.sub &>/dev/null
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
aclocal
|
aclocal
|
||||||
autoheader
|
autoheader
|
||||||
|
libtoolize
|
||||||
autoconf
|
autoconf
|
||||||
automake -a
|
automake -a
|
||||||
|
@ -4,12 +4,15 @@ AC_CONFIG_SRCDIR([yasnd.c])
|
|||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AC_LANG([C])
|
AC_LANG([C])
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
AC_DISABLE_STATIC
|
||||||
|
|
||||||
# Default prefix for installation
|
# Default prefix for installation
|
||||||
AC_PREFIX_DEFAULT()
|
AC_PREFIX_DEFAULT()
|
||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_PROG_CC_C99
|
AC_PROG_CC_C99
|
||||||
|
LT_INIT
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
PKG_CHECK_MODULES([gammu], [gammu >= 1.0])
|
PKG_CHECK_MODULES([gammu], [gammu >= 1.0])
|
||||||
@ -27,5 +30,5 @@ AC_CHECK_FUNCS([strdup memset])
|
|||||||
AC_FUNC_FORK
|
AC_FUNC_FORK
|
||||||
AC_FUNC_MALLOC
|
AC_FUNC_MALLOC
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([Makefile lib/Makefile])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
6
lib/Makefile.am
Normal file
6
lib/Makefile.am
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
lib_LTLIBRARIES = libyasnd.la
|
||||||
|
libyasnd_la_SOURCES = libyasnd.c
|
||||||
|
libyasnd_la_CPPFLAGS = -I$(top_srcdir)
|
||||||
|
|
||||||
|
distclean-local:
|
||||||
|
rm -f Makefile.in &>/dev/null
|
5
lib/libyasnd.c
Normal file
5
lib/libyasnd.c
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#include "yasnd.h"
|
||||||
|
|
||||||
|
void lib_init()
|
||||||
|
{
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user