continue code separation into different folders

This commit is contained in:
Sergey Popov 2012-03-18 21:32:46 +04:00
parent a528959369
commit a2877a1364
5 changed files with 16 additions and 12 deletions

View File

@ -1,12 +1,5 @@
SUBDIRS = lib SUBDIRS = lib daemon
include_HEADERS = yasnd.h
yasnd_LDADD = ${libconfuse_LIBS}
yasnd_LDADD += lib/libyasnd.la
sbin_PROGRAMS = yasnd
yasnd_SOURCES = yasnd.c yasnd-ipc.c
distclean-local: distclean-local:
rm -rf aclocal.m4 m4 autom4te.cache depcomp install-sh missing configure Makefile.in config.h* &>/dev/null rm -rf aclocal.m4 m4 autom4te.cache compile depcomp install-sh missing configure Makefile.in config.h* &>/dev/null
rm -rf ltmain.sh config.guess config.sub &>/dev/null rm -rf .deps ltmain.sh config.guess config.sub &>/dev/null

View File

@ -1,6 +1,6 @@
AC_PREREQ([2.68]) AC_PREREQ([2.68])
AC_INIT(yasnd, 0.1, admin@pinkbyte.ru) AC_INIT(yasnd, 0.1, admin@pinkbyte.ru)
AC_CONFIG_SRCDIR([yasnd.c]) AC_CONFIG_SRCDIR([daemon/yasnd.c])
AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([config.h])
AC_LANG([C]) AC_LANG([C])
AM_INIT_AUTOMAKE AM_INIT_AUTOMAKE
@ -11,6 +11,7 @@ AC_PREFIX_DEFAULT()
# Checks for programs. # Checks for programs.
AC_PROG_CC_C99 AC_PROG_CC_C99
AM_PROG_CC_C_O
LT_INIT LT_INIT
# Checks for libraries. # Checks for libraries.
@ -29,5 +30,5 @@ AC_CHECK_FUNCS([strdup memset])
AC_FUNC_FORK AC_FUNC_FORK
AC_FUNC_MALLOC AC_FUNC_MALLOC
AC_CONFIG_FILES([Makefile lib/Makefile]) AC_CONFIG_FILES([Makefile lib/Makefile daemon/Makefile])
AC_OUTPUT AC_OUTPUT

10
daemon/Makefile.am Normal file
View File

@ -0,0 +1,10 @@
include_HEADERS = $(top_srcdir)/yasnd.h
yasnd_LDADD = ${libconfuse_LIBS}
yasnd_LDADD += $(top_srcdir)/lib/libyasnd.la
sbin_PROGRAMS = yasnd
yasnd_SOURCES = yasnd.c yasnd-ipc.c
yasnd_CPPFLAGS = -I$(top_srcdir)
distclean-local:
rm -f Makefile.in &>/dev/null