Statistics
| Branch: | Tag: | Revision:

streamers-build / Makefile @ cc4971e1

History | View | Annotate | Download (2.17 KB)

1
BASEDIR = $(shell pwd)
2
THIRDPARTYLIBS = $(BASEDIR)/THIRDPARTY-LIBS
3

    
4
.PHONY: $(THIRDPARTYLIBS) update
5

    
6
all: Streamers/streamer-grapes
7
ml: Streamers/streamer-ml-monl-grapes-static
8
chunkstream: Streamers/streamer-chunkstream ChunkerPlayer/chunker_player/chunker_player
9
ml-chunkstream: Streamers/streamer-ml-monl-chunkstream-static ChunkerPlayer/chunker_player/chunker_player
10

    
11
$(THIRDPARTYLIBS):
12
	$(MAKE) -C $(THIRDPARTYLIBS) || { echo "Error preparing third party libs" && exit 1; }
13

    
14
update:
15
	git pull
16
	git submodule update
17

    
18
Streamers/.git:
19
	git submodule update --init -- $(shell dirname $@)
20

    
21
Streamers/streamer-grapes: Streamers/.git $(THIRDPARTYLIBS)
22
	GRAPES=$(THIRDPARTYLIBS)/GRAPES FFMPEG_DIR=$(THIRDPARTYLIBS)/ffmpeg X264_DIR=$(THIRDPARTYLIBS)/x264 $(MAKE) -C Streamers  || { echo "Error compiling the Streamer" && exit 1; }
23

    
24
#version with NAPA-libs
25
Streamers/streamer-ml-monl-grapes-static: Streamers/.git $(THIRDPARTYLIBS)
26
	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; }
27

    
28
Streamers/streamer-chunkstream: Streamers/.git $(THIRDPARTYLIBS)
29
	IO=chunkstream GRAPES=$(THIRDPARTYLIBS)/GRAPES FFMPEG_DIR=$(THIRDPARTYLIBS)/ffmpeg X264_DIR=$(THIRDPARTYLIBS)/x264 $(MAKE) -C Streamers  || { echo "Error compiling the Streamer" && exit 1; }
30

    
31
Streamers/streamer-ml-monl-chunkstream-static: Streamers/.git $(THIRDPARTYLIBS)
32
	IO=chunkstream 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; }
33

    
34
ChunkerPlayer/.git:
35
	git submodule update --init -- $(shell dirname $@)
36

    
37
ChunkerPlayer/chunker_player/chunker_player: ChunkerPlayer/.git
38
	cd ChunkerPlayer && ./build_ul.sh
39

    
40
prepare:
41
	git submodule update --init
42

    
43
clean:
44
	$(MAKE) -C $(THIRDPARTYLIBS) clean
45
	$(MAKE) -C Streamers clean