forked from ireader/media-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (51 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
ARCHBITS ?= # 32/64 bits
ifeq ($(shell uname -m), x86_64)
ARCHBITS = 64
else ifeq ($(shell getconf LONG_BIT), 64)
ARCHBITS = 64
else ifeq ($(shell arch), x86_64)
ARCHBITS = 64
endif
ifdef PLATFORM
CROSS:=$(PLATFORM)-
else
OSID := $(shell awk -F'=' '/^ID=/ {print $$2}' /etc/os-release | tr -d '"')
OSVERSIONID := $(shell awk -F'=' '/^VERSION_ID=/ {print $$2"-"}' /etc/os-release | tr -d '"')
CROSS:=
PLATFORM:=${OSID}$(OSVERSIONID)linux$(ARCHBITS)
endif
ifeq ($(RELEASE),1)
BUILD:=release
else
BUILD:=debug
endif
all:
$(MAKE) -C libdash
$(MAKE) -C libflv
$(MAKE) -C libhls
$(MAKE) -C libmkv
$(MAKE) -C libmov
$(MAKE) -C libmpeg
$(MAKE) -C librtmp
$(MAKE) -C librtp
$(MAKE) -C librtsp
$(MAKE) -C libsip
clean:
$(MAKE) -C libdash clean
$(MAKE) -C libflv clean
$(MAKE) -C libhls clean
$(MAKE) -C libmkv clean
$(MAKE) -C libmov clean
$(MAKE) -C libmpeg clean
$(MAKE) -C librtmp clean
$(MAKE) -C librtp clean
$(MAKE) -C librtsp clean
$(MAKE) -C libsip clean
$(MAKE) -C test clean
.PHONY : test
test:
$(MAKE) -C ../avcodec
$(MAKE) -C ../sdk
$(MAKE) -C test
@rm libaio.so
ln -sf ../sdk/libaio/$(BUILD).$(PLATFORM)/libaio.so . && ./test/$(BUILD).$(PLATFORM)/test