Statistics
| Branch: | Tag: | Revision:

streamers-build / Makefile @ 6164ac21

History | View | Annotate | Download (1.44 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
9

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

    
13
update:
14
	git pull
15
	git submodule update
16

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

    
20
Streamers/streamer-grapes: Streamers/.git $(THIRDPARTYLIBS)
21
	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
Streamers/streamer-ml-monl-grapes-static: Streamers/.git $(THIRDPARTYLIBS)
25
	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
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
prepare:
31
	git submodule update --init
32

    
33
clean:
34
	$(MAKE) -C $(THIRDPARTYLIBS) clean
35
	$(MAKE) -C Streamers clean