Statistics
| Branch: | Tag: | Revision:

streamers-build / Makefile @ 57fb780f

History | View | Annotate | Download (1.65 KB)

1 e58e6412 Csaba Kiraly
BASEDIR = $(shell pwd)
2
THIRDPARTYLIBS = $(BASEDIR)/THIRDPARTY-LIBS
3
4 60658846 Csaba Kiraly
.PHONY: $(THIRDPARTYLIBS) update
5 e58e6412 Csaba Kiraly
6
all: Streamers/streamer-grapes
7
ml: Streamers/streamer-ml-monl-grapes-static
8 57fb780f Csaba Kiraly
chunkstream: Streamers/streamer-chunkstream ChunkerPlayer/chunker_player/chunker_player
9 e58e6412 Csaba Kiraly
10
$(THIRDPARTYLIBS):
11
	$(MAKE) -C $(THIRDPARTYLIBS) || { echo "Error preparing third party libs" && exit 1; }
12
13 7c525c3e Csaba Kiraly
update:
14
	git pull
15
	git submodule update
16
17 0882652d Csaba Kiraly
Streamers/.git:
18 51bf8aa0 Csaba Kiraly
	git submodule update --init -- $(shell dirname $@)
19 e58e6412 Csaba Kiraly
20 0882652d Csaba Kiraly
Streamers/streamer-grapes: Streamers/.git $(THIRDPARTYLIBS)
21 e58e6412 Csaba Kiraly
	GRAPES=$(THIRDPARTYLIBS)/GRAPES FFMPEG_DIR=$(THIRDPARTYLIBS)/ffmpeg X264_DIR=$(THIRDPARTYLIBS)/x264 $(MAKE) -C Streamers  || { echo "Error compiling the Streamer" && exit 1; }
22
23
#version with NAPA-libs
24 0882652d Csaba Kiraly
Streamers/streamer-ml-monl-grapes-static: Streamers/.git $(THIRDPARTYLIBS)
25 e58e6412 Csaba Kiraly
	GRAPES=$(THIRDPARTYLIBS)/GRAPES FFMPEG_DIR=$(THIRDPARTYLIBS)/ffmpeg X264_DIR=$(THIRDPARTYLIBS)/x264 STATIC=2 NAPA=$(THIRDPARTYLIBS)/NAPA-BASELIBS/ LIBEVENT_DIR=$(THIRDPARTYLIBS)/NAPA-BASELIBS/3RDPARTY-LIBS/libevent ML=1 MONL=1 $(MAKE) -C Streamers || { echo "Error compiling the ML+MONL version of the Streamer" && exit 1; }
26
27 6164ac21 Csaba Kiraly
Streamers/streamer-chunkstream: Streamers/.git $(THIRDPARTYLIBS)
28
	IO=chunkstream GRAPES=$(THIRDPARTYLIBS)/GRAPES FFMPEG_DIR=$(THIRDPARTYLIBS)/ffmpeg X264_DIR=$(THIRDPARTYLIBS)/x264 $(MAKE) -C Streamers  || { echo "Error compiling the Streamer" && exit 1; }
29
30 57fb780f Csaba Kiraly
ChunkerPlayer/.git:
31
	git submodule update --init -- $(shell dirname $@)
32
33
ChunkerPlayer/chunker_player/chunker_player: ChunkerPlayer/.git
34
	cd ChunkerPlayer && ./build_ul.sh
35
36 28507821 Csaba Kiraly
prepare:
37
	git submodule update --init
38
39 e58e6412 Csaba Kiraly
clean:
40
	$(MAKE) -C $(THIRDPARTYLIBS) clean
41
	$(MAKE) -C Streamers clean