
TARGETS=libbtt/libbtt.so

#if BUILD_APACHE2
TARGETS+=apache2/mod_bt.so
#endif

all: $(TARGETS)
	make -C tests
	make -C tools

libbtt/libbtt.so::
	make -C libbtt

apache2/mod_bt.so::
	make -C apache2
	
clean:
	make -C libbtt clean
	make -C tests clean
	make -C tools clean
#if BUILD_APACHE2
	make -C apache2 clean
#endif

install:
#if BUILD_PERL
	make -C libbtt/Net-BitTorrent-LibBTT install
#endif
#if BUILD_APACHE2
	make -C apache2 install
#endif
	true

