further automake conversion

svn:r10
This commit is contained in:
Niels Provos 2002-04-09 17:42:15 +00:00
parent 6c6c936bcb
commit 5b27aa0323
3 changed files with 21 additions and 5 deletions

View File

@ -1,11 +1,16 @@
AUTOMAKE_OPTIONS = foreign no-dependencies
SUBDIRS = . sample
EXTRA_DIST = acconfig.h
lib_LIBRARIES = libevent.a
libevent_a_SOURCES = event.c select.c @EVSRCS@
libevent_a_SOURCES = event.c
libevent_a_LIBADD = @LIBOBJS@
include_HEADERS = event.h
man_MANS = event.3
DISTCLEANFILES = *~

View File

@ -53,10 +53,10 @@ AC_HEADER_TIME
dnl Checks for library functions.
AC_CHECK_FUNCS(gettimeofday)
AC_SUBST(EVSRCS)
AC_SUBST(LIBOBJS)
AC_CHECK_FUNCS(select, [haveselect=yes], )
if test "x$haveselect" = "xyes" ; then
EVSRCS="select.c"
LIBOBJS="$LIBOBJS select.o"
fi
havekqueue=no
@ -111,8 +111,8 @@ main(int argc, char **argv)
exit(0);
}, [AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_WORKING_KQUEUE)
EVSRCS="$EVSRCS kqueue.c"], AC_MSG_RESULT(no), AC_MSG_RESULT(no))
LIBOBJS="$LIBOBJS kqueue.o"], AC_MSG_RESULT(no), AC_MSG_RESULT(no))
fi
fi
AC_OUTPUT(Makefile test/Makefile)
AC_OUTPUT(Makefile test/Makefile sample/Makefile)

11
sample/Makefile.am Normal file
View File

@ -0,0 +1,11 @@
AUTOMAKE_OPTIONS = foreign no-dependencies
LDADD = -L.. -levent
CPPFPLAGS = -I..
bin_PROGRAMS = event-test time-test
event_test_sources = event-test.c
time_test_sources = time-test.c
DISTCLEANFILES = *~