summaryrefslogtreecommitdiff
path: root/lib/avtp_pipeline/avtp_avdecc.mk
blob: 1331daf0a2784f2833d1217d0a0cc1274c6b0564 (plain)
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
AVB_FEATURE_AVDECC ?= 1
PLATFORM_TOOLCHAIN ?= generic

.PHONY: all clean

all: build_avdecc/Makefile
	$(MAKE) -s -C build_avdecc install
	mkdir -p build/bin
	cp build_avdecc/bin/* build/bin/.

doc: build_avdecc/Makefile
	$(MAKE) -s -C build_avdecc doc
	@echo "\n\nTo display documentation use:\n\n" \
	      "\txdg-open $(abspath build_avdecc/documents/api_docs/index.html)\n"

clean:
	$(RM) -r build_avdecc

build_avdecc/Makefile:
	mkdir -p build_avdecc && \
	cd build_avdecc && \
	cmake -DCMAKE_BUILD_TYPE=Release \
	      -DCMAKE_TOOLCHAIN_FILE=../platform/Linux/$(PLATFORM_TOOLCHAIN).cmake \
	      -DAVB_FEATURE_AVDECC=$(AVB_FEATURE_AVDECC) \
	      ..