mirror of
https://github.com/transmission/transmission
synced 2025-03-03 10:15:45 +00:00
get libevent building and playing nice with all the other apps
This commit is contained in:
parent
3b960b5001
commit
4676cea866
8 changed files with 555 additions and 31 deletions
|
@ -1,9 +1,6 @@
|
|||
if WITH_GTK
|
||||
GTK_DIR = gtk
|
||||
endif
|
||||
if WITH_LIBEVENT
|
||||
DAEMON_DIR = daemon
|
||||
endif
|
||||
if HAVE_BEOS
|
||||
BEOS_DIR = beos
|
||||
endif
|
||||
|
@ -14,7 +11,7 @@ if HAVE_WX
|
|||
WX_DIR = wx
|
||||
endif
|
||||
|
||||
SUBDIRS = libtransmission $(DAEMON_DIR) cli $(GTK_DIR) $(BEOS_DIR) $(MAC_DIR) $(WX_DIR)
|
||||
SUBDIRS = third-party libtransmission daemon cli $(GTK_DIR) $(BEOS_DIR) $(MAC_DIR) $(WX_DIR)
|
||||
|
||||
DISTCLEANFILES = \
|
||||
Transmission.desktop
|
||||
|
@ -23,4 +20,5 @@ EXTRA_DIST = \
|
|||
NEWS \
|
||||
AUTHORS \
|
||||
LICENSE \
|
||||
README
|
||||
README \
|
||||
third-party
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
#!/bin/sh
|
||||
autoreconf --force --install -I config -I m4
|
||||
cd third-party/libevent
|
||||
sh ./autogen.sh
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
AM_CPPFLAGS = -I@top_srcdir@
|
||||
AM_CFLAGS = $(PTHREAD_CFLAGS)
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
-I@top_srcdir@ \
|
||||
@LIBEVENT_CPPFLAGS@ \
|
||||
$(PTHREAD_CFLAGS)
|
||||
|
||||
bin_PROGRAMS = transmission-cli
|
||||
|
||||
transmission_cli_SOURCES = transmissioncli.c
|
||||
transmission_cli_LDADD = ../libtransmission/libtransmission.a $(PTHREAD_LIBS) -lm
|
||||
|
||||
transmission_cli_LDADD = \
|
||||
../libtransmission/libtransmission.a \
|
||||
@LIBEVENT_LIBS@ \
|
||||
$(PTHREAD_LIBS) -lm
|
||||
|
|
28
configure.ac
28
configure.ac
|
@ -40,24 +40,14 @@ AC_SEARCH_LIBS([gethostbyname], [nsl bind])
|
|||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl
|
||||
dnl libevent detection for the Daemon
|
||||
|
||||
|
||||
AC_CHECK_LIB([event],[event_init],[have_libevent=yes],[have_libevent=no])
|
||||
AC_ARG_WITH(libevent,
|
||||
AC_HELP_STRING([--with-libevent], [Build Daemon]),
|
||||
[want_libevent=$withval],
|
||||
[want_libevent=$have_libevent])
|
||||
use_libevent=no
|
||||
if test "x$want_libevent" = "xyes" ; then
|
||||
if test "x$have_libevent" = "xyes"; then
|
||||
use_libevent=yes
|
||||
else
|
||||
AC_MSG_ERROR("libevent not found!")
|
||||
fi
|
||||
fi
|
||||
AM_CONDITIONAL([WITH_LIBEVENT],[test "x$use_libevent" = "xyes"])
|
||||
dnl libevent fun
|
||||
|
||||
AC_CONFIG_SUBDIRS([third-party/libevent])
|
||||
AC_MSG_NOTICE([invoking libevent's configure script])
|
||||
LIBEVENT_LIBS="\$(top_srcdir)/third-party/libevent/.libs/libevent.a"
|
||||
LIBEVENT_CPPFLAGS="-I\$(top_srcdir)/third-party/libevent"
|
||||
AC_SUBST(LIBEVENT_LIBS)
|
||||
AC_SUBST(LIBEVENT_CPPFLAGS)
|
||||
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
@ -207,6 +197,7 @@ AC_CONFIG_FILES([Makefile
|
|||
gtk/Makefile
|
||||
libtransmission/Makefile
|
||||
libtransmission/version.h
|
||||
third-party/Makefile
|
||||
macosx/Makefile
|
||||
wx/Makefile
|
||||
wx/images/Makefile])
|
||||
|
@ -219,8 +210,9 @@ Configuration:
|
|||
|
||||
Source code location: ${srcdir}
|
||||
Compiler: ${CXX}
|
||||
Build libtransmission: yes
|
||||
Build Daemon: yes
|
||||
Build BeOS client: ${beos}
|
||||
Build Daemon: ${use_libevent}
|
||||
Build GTK+ client: ${use_gtk}
|
||||
Build OS X client: ${darwin}
|
||||
Build wxWidgets client: ${use_wx}
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
AM_CPPFLAGS = -I@top_srcdir@ @GTK_CFLAGS@ @GLIB_CFLAGS@ -DLOCALEDIR=\""$(transmissionlocaledir)"\"
|
||||
AM_CPPFLAGS = \
|
||||
-I@top_srcdir@ \
|
||||
@LIBEVENT_CPPFLAGS@ \
|
||||
@GTK_CFLAGS@ \
|
||||
@GLIB_CFLAGS@ \
|
||||
-DLOCALEDIR=\""$(transmissionlocaledir)"\"
|
||||
|
||||
AM_CFLAGS = $(PTHREAD_CFLAGS)
|
||||
|
||||
|
@ -44,4 +49,8 @@ transmission_gtk_SOURCES = \
|
|||
tr_window.c \
|
||||
util.c
|
||||
|
||||
transmission_gtk_LDADD = ../libtransmission/libtransmission.a @GTK_LIBS@ @GLIB_LIBS@ $(PTHREAD_LIBS) -lm
|
||||
transmission_gtk_LDADD = \
|
||||
../libtransmission/libtransmission.a \
|
||||
@GTK_LIBS@ @GLIB_LIBS@ \
|
||||
@LIBEVENT_LIBS@ \
|
||||
$(PTHREAD_LIBS) -lm
|
||||
|
|
508
third-party/Makefile
vendored
Normal file
508
third-party/Makefile
vendored
Normal file
|
@ -0,0 +1,508 @@
|
|||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# third-party/Makefile. Generated from Makefile.in by configure.
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
srcdir = .
|
||||
top_srcdir = ..
|
||||
|
||||
pkgdatadir = $(datadir)/Transmission
|
||||
pkglibdir = $(libdir)/Transmission
|
||||
pkgincludedir = $(includedir)/Transmission
|
||||
top_builddir = ..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = /usr/bin/install -c
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = i686-pc-linux-gnu
|
||||
host_triplet = i686-pc-linux-gnu
|
||||
subdir = third-party
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_CLEAN_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-exec-recursive install-info-recursive \
|
||||
install-recursive installcheck-recursive installdirs-recursive \
|
||||
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
uninstall-recursive
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = ${SHELL} /mnt/home/charles/src/T-trunk/missing --run aclocal-1.9
|
||||
AMDEP_FALSE = #
|
||||
AMDEP_TRUE =
|
||||
AMTAR = ${SHELL} /mnt/home/charles/src/T-trunk/missing --run tar
|
||||
AUTOCONF = ${SHELL} /mnt/home/charles/src/T-trunk/missing --run autoconf
|
||||
AUTOHEADER = ${SHELL} /mnt/home/charles/src/T-trunk/missing --run autoheader
|
||||
AUTOMAKE = ${SHELL} /mnt/home/charles/src/T-trunk/missing --run automake-1.9
|
||||
AWK = gawk
|
||||
BUNDLE_VERSION = 2748
|
||||
CATALOGS = bg.gmo es.gmo fi.gmo fr.gmo it.gmo pl.gmo ro.gmo ru.gmo sv.gmo
|
||||
CATOBJEXT = .gmo
|
||||
CC = gcc
|
||||
CCDEPMODE = depmode=gcc3
|
||||
CFLAGS = -Os -Wall -W -ggdb3
|
||||
CPP = gcc -E
|
||||
CPPFLAGS = -I/mnt/home/charles/wx/include
|
||||
CXX = g++
|
||||
CXXDEPMODE = depmode=gcc3
|
||||
CXXFLAGS = -Os -Wall -W -ggdb3
|
||||
CYGPATH_W = echo
|
||||
DATADIRNAME = share
|
||||
DEFS = -DPACKAGE_NAME=\"Transmission\" -DPACKAGE_TARNAME=\"transmission\" -DPACKAGE_VERSION=\"0.80\" -DPACKAGE_STRING=\"Transmission\ 0.80\" -DPACKAGE_BUGREPORT=\"http://transmission.m0k.org/trac/newticket\" -DPACKAGE=\"Transmission\" -DVERSION=\"0.80\" -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_DAEMON=1 -DHAVE_DIRNAME=1 -DHAVE_BASENAME=1 -DHAVE_PTHREAD=1 -DGETTEXT_PACKAGE=\"transmission\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBSSL=1
|
||||
DEPDIR = .deps
|
||||
ECHO_C =
|
||||
ECHO_N = -n
|
||||
ECHO_T =
|
||||
EGREP = grep -E
|
||||
EXEEXT =
|
||||
GETTEXT_PACKAGE = transmission
|
||||
GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
|
||||
GLIB_GENMARSHAL = glib-genmarshal
|
||||
GLIB_LIBS = -Wl,--export-dynamic -pthread -L/lib -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
|
||||
GLIB_MINIMUM = 2.6.0
|
||||
GLIB_MKENUMS = glib-mkenums
|
||||
GMOFILES = bg.gmo es.gmo fi.gmo fr.gmo it.gmo pl.gmo ro.gmo ru.gmo sv.gmo
|
||||
GMSGFMT = /usr/bin/msgfmt
|
||||
GOBJECT_QUERY = gobject-query
|
||||
GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12
|
||||
GTK_LIBS = -pthread -L/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
|
||||
GTK_MINIMUM = 2.6.0
|
||||
HAVE_BEOS_FALSE =
|
||||
HAVE_BEOS_TRUE = #
|
||||
HAVE_DARWIN_FALSE =
|
||||
HAVE_DARWIN_TRUE = #
|
||||
HAVE_WINDOWS_FALSE =
|
||||
HAVE_WINDOWS_TRUE = #
|
||||
HAVE_WX_FALSE = #
|
||||
HAVE_WX_TRUE =
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
INSTALL_PROGRAM = ${INSTALL}
|
||||
INSTALL_SCRIPT = ${INSTALL}
|
||||
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
|
||||
INSTOBJEXT = .mo
|
||||
INTLLIBS =
|
||||
LDFLAGS = -L/mnt/home/charles/wx/lib
|
||||
LIBEVENT_CPPFLAGS = -I$(top_srcdir)/third-party/libevent
|
||||
LIBEVENT_LIBS = $(top_srcdir)/third-party/libevent/.libs/libevent.a
|
||||
LIBOBJS =
|
||||
LIBS = -lssl -lcrypto
|
||||
LTLIBOBJS =
|
||||
MAINT = #
|
||||
MAINTAINER_MODE_FALSE =
|
||||
MAINTAINER_MODE_TRUE = #
|
||||
MAKEINFO = ${SHELL} /mnt/home/charles/src/T-trunk/missing --run makeinfo
|
||||
MKINSTALLDIRS = ./mkinstalldirs
|
||||
MSGFMT = /usr/bin/msgfmt
|
||||
OBJEXT = o
|
||||
PACKAGE = Transmission
|
||||
PACKAGE_BUGREPORT = http://transmission.m0k.org/trac/newticket
|
||||
PACKAGE_NAME = Transmission
|
||||
PACKAGE_STRING = Transmission 0.80
|
||||
PACKAGE_TARNAME = transmission
|
||||
PACKAGE_VERSION = 0.80
|
||||
PATH_SEPARATOR = :
|
||||
PEERID_PREFIX = -TR0800-
|
||||
PKG_CONFIG = /usr/bin/pkg-config
|
||||
POFILES = bg.po es.po fi.po fr.po it.po pl.po ro.po ru.po sv.po
|
||||
POSUB = po
|
||||
PO_IN_DATADIR_FALSE =
|
||||
PO_IN_DATADIR_TRUE =
|
||||
PTHREAD_CC = gcc
|
||||
PTHREAD_CFLAGS = -pthread
|
||||
PTHREAD_LIBS =
|
||||
RANLIB = ranlib
|
||||
SET_MAKE =
|
||||
SHELL = /bin/sh
|
||||
STRIP =
|
||||
SVN_REVISION = 2748
|
||||
USERAGENT_PREFIX = 0.80
|
||||
USE_NLS = yes
|
||||
VERSION = 0.80
|
||||
VERSION_PACKAGE = 0.80-r2748
|
||||
WINDRES =
|
||||
WITH_GTK_FALSE = #
|
||||
WITH_GTK_TRUE =
|
||||
WX_CFLAGS = -I/mnt/home/charles/wx/lib/wx/include/gtk2-ansi-release-2.8 -I/mnt/home/charles/wx/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread
|
||||
WX_CFLAGS_ONLY = -pthread
|
||||
WX_CONFIG_PATH = /mnt/home/charles/wx/bin/wx-config
|
||||
WX_CPPFLAGS = -I/mnt/home/charles/wx/lib/wx/include/gtk2-ansi-release-2.8 -I/mnt/home/charles/wx/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
|
||||
WX_CXXFLAGS = -I/mnt/home/charles/wx/lib/wx/include/gtk2-ansi-release-2.8 -I/mnt/home/charles/wx/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread
|
||||
WX_CXXFLAGS_ONLY =
|
||||
WX_LIBS = -L/mnt/home/charles/wx/lib -pthread -lwx_gtk2_aui-2.8 -lwx_gtk2_xrc-2.8 -lwx_gtk2_qa-2.8 -lwx_gtk2_html-2.8 -lwx_gtk2_adv-2.8 -lwx_gtk2_core-2.8 -lwx_base_xml-2.8 -lwx_base_net-2.8 -lwx_base-2.8
|
||||
WX_LIBS_STATIC =
|
||||
WX_MINIMUM = 2.6.0
|
||||
WX_RESCOMP =
|
||||
WX_VERSION = 2.8.4
|
||||
XGETTEXT = /usr/bin/xgettext
|
||||
ac_ct_CC = gcc
|
||||
ac_ct_CXX = g++
|
||||
ac_ct_RANLIB = ranlib
|
||||
ac_ct_STRIP =
|
||||
acx_pthread_config =
|
||||
am__fastdepCC_FALSE = #
|
||||
am__fastdepCC_TRUE =
|
||||
am__fastdepCXX_FALSE = #
|
||||
am__fastdepCXX_TRUE =
|
||||
am__include = include
|
||||
am__leading_dot = .
|
||||
am__quote =
|
||||
am__tar = ${AMTAR} chof - "$$tardir"
|
||||
am__untar = ${AMTAR} xf -
|
||||
bindir = ${exec_prefix}/bin
|
||||
build = i686-pc-linux-gnu
|
||||
build_alias =
|
||||
build_cpu = i686
|
||||
build_os = linux-gnu
|
||||
build_vendor = pc
|
||||
datadir = ${prefix}/share
|
||||
exec_prefix = ${prefix}
|
||||
host = i686-pc-linux-gnu
|
||||
host_alias =
|
||||
host_cpu = i686
|
||||
host_os = linux-gnu
|
||||
host_vendor = pc
|
||||
includedir = ${prefix}/include
|
||||
infodir = ${prefix}/info
|
||||
install_sh = /mnt/home/charles/src/T-trunk/install-sh
|
||||
libdir = ${exec_prefix}/lib
|
||||
libexecdir = ${exec_prefix}/libexec
|
||||
localstatedir = ${prefix}/var
|
||||
mandir = ${prefix}/man
|
||||
mkdir_p = mkdir -p --
|
||||
oldincludedir = /usr/include
|
||||
prefix = /usr/local
|
||||
program_transform_name = s,x,x,
|
||||
sbindir = ${exec_prefix}/sbin
|
||||
sharedstatedir = ${prefix}/com
|
||||
sysconfdir = ${prefix}/etc
|
||||
target_alias =
|
||||
SUBDIRS = libevent
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu third-party/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu third-party/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: # $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
uninstall-info-am:
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||
(cd $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$top_distdir" \
|
||||
distdir="$$distdir/$$subdir" \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-info-am
|
||||
|
||||
uninstall-info: uninstall-info-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
|
||||
clean clean-generic clean-recursive ctags ctags-recursive \
|
||||
distclean distclean-generic distclean-recursive distclean-tags \
|
||||
distdir dvi dvi-am html html-am info info-am install \
|
||||
install-am install-data install-data-am install-exec \
|
||||
install-exec-am install-info install-info-am install-man \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||
maintainer-clean-recursive mostlyclean mostlyclean-generic \
|
||||
mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
|
||||
uninstall uninstall-am uninstall-info-am
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
1
third-party/Makefile.am
vendored
Normal file
1
third-party/Makefile.am
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
SUBDIRS = libevent
|
|
@ -1,5 +1,10 @@
|
|||
AM_CPPFLAGS = -I@top_srcdir@ @WX_CPPFLAGS@
|
||||
AM_CPPFLAGS = \
|
||||
-I@top_srcdir@ \
|
||||
@WX_CPPFLAGS@ \
|
||||
@LIBEVENT_CPPFLAGS@
|
||||
|
||||
AM_CXXFLAGS = @WX_CXXFLAGS@
|
||||
|
||||
SUBDIRS = images
|
||||
|
||||
bin_PROGRAMS = Xmission
|
||||
|
@ -11,4 +16,8 @@ Xmission_SOURCES = \
|
|||
torrent-stats.cc \
|
||||
xmission.cc
|
||||
|
||||
Xmission_LDADD = ../libtransmission/libtransmission.a @WX_LIBS@ $(PTHREAD_LIBS) -lm
|
||||
Xmission_LDADD = \
|
||||
../libtransmission/libtransmission.a \
|
||||
@LIBEVENT_LIBS@ \
|
||||
@WX_LIBS@ \
|
||||
$(PTHREAD_LIBS) -lm
|
||||
|
|
Loading…
Reference in a new issue