mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
further automake conversion
svn:r10
This commit is contained in:
parent
6c6c936bcb
commit
5b27aa0323
@ -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 = *~
|
||||
|
@ -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
11
sample/Makefile.am
Normal 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 = *~
|
Loading…
x
Reference in New Issue
Block a user