Statistics
| Branch: | Tag: | Revision:

streamers-build / Makefile @ 60658846

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

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

    
12
update:
13
	git pull
14
	git submodule update
15

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

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

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

    
26
clean:
27
	$(MAKE) -C $(THIRDPARTYLIBS) clean
28
	$(MAKE) -C Streamers clean