Store piece chunks directly on disk rather than keep them around in memory.
[etorrent.git] / Makefile
bloba2f68c0b5a4e3e1c273648ccc9c63e3ba2e217b9
1 ## Etorrent Makefile
2 ## Try to keep it so simple it can be run with BSD-make as well as
3 ## GNU-make
5 -include Makefile.config
7 VER=1.0
9 SHELL=/bin/sh
10 ETORRENT_LIB=./lib/etorrent-1.0
11 all: libs
13 libs:
14 cd lib && $(MAKE)
16 dialyzer: libs
17 $(DIALYZER) --verbose -I $(ETORRENT_LIB)/include -r $(ETORRENT_LIB)
19 dialyzer-succ: libs
20 $(DIALYZER) --verbose --succ_typings -I $(ETORRENT_LIB)/include -r $(ETORRENT_LIB)
22 run: libs
23 erl $(ERL_FLAGS) -pa $(ETORRENT_LIB)/ebin \
24 -config $(ETORRENT_LIB)/priv/etorrent.config \
25 -sname etorrent -s etorrent start_debug
27 tracer:
28 erl -pa $(ETORRENT_LIB)/ebin -noinput \
29 -sname tracer -s tr client
31 clean:
32 cd lib && $(MAKE) clean
34 install:
35 mkdir -p $(RELEASE_PREFIX)/lib/etorrent-$(VER)
36 for i in src ebin include priv; do \
37 cp -r $(ETORRENT_LIB)/$$i $(RELEASE_PREFIX)/lib/etorrent-$(VER) ; \
38 done
40 mkdir -p $(BIN_PREFIX)
41 sed -e "s|%%%BEAMDIR%%%|$(RELEASE_PREFIX)/lib/etorrent-$(VER)/ebin|;" \
42 -e "s|%%%CONFIGFILE%%%|$(RELEASE_PREFIX)/lib/etorrent-$(VER)/priv/etorrent.config|;" \
43 -e "s|%%%ERL_FLAGS%%%|\"$(ERL_FLAGS)\"|" < ./bin/etorrentctl.in > $(BIN_PREFIX)/etorrentctl
44 chmod +x $(BIN_PREFIX)/etorrentctl