summaryrefslogtreecommitdiff
path: root/gstreamer_ti/ti_build/Makefile
blob: 860062016f2fb7d4f5bcc59c3b2d0c126b986f08 (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
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Makefile
#
# Copyright (C) 2008-2010 Texas Instruments Incorporated - http://www.ti.com/
#
# This program is free software; you can redistribute it and/or modify 
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation version 2.1 of the License.
#
# This program is distributed #as is# WITHOUT ANY WARRANTY of any kind,
# whether express or implied; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.

#------------------------------------------------------------------------------
# Include common build settings.
#------------------------------------------------------------------------------
include ../Makefile.common

#------------------------------------------------------------------------------
# Check if we need to enable C6Accel elements
#------------------------------------------------------------------------------
ifeq ($(ENABLE_C6ACCEL), true)
 EXTRA_CONFIGURE_OPTS="--enable-c6accel"
endif

#------------------------------------------------------------------------------
# Check if we need to enable tidisplaysink2 element
#------------------------------------------------------------------------------
ifeq ($(ENABLE_TIDISPLAYSINK2), true)
 EXTRA_CONFIGURE_OPTS +="--enable-tidisplaysink2"
endif

#------------------------------------------------------------------------------
# TI_PLUGINS
#     list of subdirectories containing TI plugins
#------------------------------------------------------------------------------
TI_PLUGINS = ticodecplugin

#------------------------------------------------------------------------------
# Build targets
#------------------------------------------------------------------------------
.PHONY: $(TI_PLUGINS) default help
default: help

all: $(TI_PLUGINS)

$(TI_PLUGINS): 
	@echo Building $@
	$(CMD_PREFIX) cd $@; ./autogen.sh --noconfigure
	$(CMD_PREFIX) cd $@; ./configure $(CONFIGURE_VERBOSE) $(CC_CONFIGURE_OPTS) $(EXTRA_CONFIGURE_OPTS)
	$(CMD_PREFIX) $(MAKE) $(MAKE_VERBOSE) -C $@ clean
	$(CMD_PREFIX) $(MAKE) $(MAKE_VERBOSE) -C $@ $(BUILD_INSTALL)

install:

clean:
	for dir in $(TI_PLUGINS); do \
	    if [ -r $${dir}/Makefile ] ; then \
	        cd $${dir}; $(MAKE) distclean; \
	    fi ; \
	done

#------------------------------------------------------------------------------
# help:  build target for help screen
#------------------------------------------------------------------------------
.PHONY: help
help:
	@echo
	@echo "Make usage for building TI plugins:"
	@echo
	@echo "    Build only:"
	@echo "        make all"
	@echo "    Build and install:"
	@echo "        make all install"
	@echo