]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/dual-decode.git/blob - Makefile.in
Added flags for gstreamer interfaces.
[glsdk/dual-decode.git] / Makefile.in
1 #  Copyright (c) 2012-2013, Texas Instruments Incorporated
2 #
3 #  Redistribution and use in source and binary forms, with or without
4 #  modification, are permitted provided that the following conditions
5 #  are met:
6 #
7 #  *  Redistributions of source code must retain the above copyright
8 #     notice, this list of conditions and the following disclaimer.
9 #
10 #  *  Redistributions in binary form must reproduce the above copyright
11 #     notice, this list of conditions and the following disclaimer in the
12 #     documentation and/or other materials provided with the distribution.
13 #
14 #  *  Neither the name of Texas Instruments Incorporated nor the names of
15 #     its contributors may be used to endorse or promote products derived
16 #     from this software without specific prior written permission.
17 #
18 #  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 #  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
20 #  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 #  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22 #  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 #  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 #  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 #  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 #  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 #  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
28 #  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #
30 #  Contact information for paper mail:
31 #  Texas Instruments
32 #  Post Office Box 655303
33 #  Dallas, Texas 75265
34 #  Contact information:
35 #  http://www-k.ext.ti.com/sc/technical-support/product-information-centers.htm?
36 #  DCMP=TIHomeTracking&HQS=Other+OT+home_d_contact
37 #  ============================================================================
38 #
39 #
43 #
44 #  ====== Toplevel Makefile ======
45 #
46 #
47 # Standard Boilerplate definitions which get overwritten by configure
48 #
50 CC              = @CC@
51 VERSION         = @PACKAGE_VERSION@
52 PACKAGE_NAME    = @PACKAGE_NAME@
53 PACKAGE_TARNAME = @PACKAGE_TARNAME@
54 PACKAGE_DIST    = $(PACKAGE_TARNAME)-$(VERSION)
55 RM              = rm
56 CFLAGS          = @CFLAGS@
57 LDFLAGS         = @LDFLAGS@
58 LIBS            = @LIBS@
59 prefix          = @prefix@
60 exec_prefix     = @exec_prefix@
61 bindir          = @bindir@
62 libdir          = @libdir@
63 docdir          = @docdir@
64 datarootdir     = @datarootdir@
65 datadir         = @datadir@
66 DESTDIR         =
67 DOXYGEN         = doxygen
70 #
71 # ====== Flags ======
72 #
74 INC_DIR := include
76 PKG_CONFIG_CFLAGS  := `pkg-config --cflags gtk+-2.0 gstreamer-0.10 gstreamer-interfaces-0.10`
77 CFLAGS += -Wall -ansi -pedantic  -std=c99
78 CFLAGS += -I$(INC_DIR) -DGST_APP_DEBUG  $(PKG_CONFIG_CFLAGS)
80 PKG_CONFIG_LDFLAGS := `pkg-config --libs gtk+-2.0 gstreamer-0.10 gstreamer-interfaces-0.10`
81 LDFLAGS +=  $(PKG_CONFIG_LDFLAGS)
83 #
84 # ====== Support Verbose/Silent ======
85 #
87 VERBOSE ?= false
88 ifeq ($(VERBOSE), true)
89 Q :=
90 else
91 Q := @
92 endif
94 #
95 # ====== All targets ======
96 #
99 all: dual-decode
102 dual-decode: main.o gst-controller.o gui.o 
103         @echo LD $^
104         $(Q)$(CC) -g $^ -o $@ $(LDFLAGS)
107 %.o: src/%.c 
108         @echo CC $^
109         $(Q)$(CC) -c $< $(CFLAGS)
112 clean:
113         @echo CLEAN
114         $(Q)$(RM) -f *.o */*~ dual-decode
117 distclean: clean
118         @echo DISTCLEAN
119         $(Q)$(RM) -rf config.h config.status config.log configure \
120                 aclocal.m4 Makefile autom4te.cache
123 install:
124         install -d $(DESTDIR)$(bindir) $(DESTDIR)$(docdir)
125         install dual-decode $(DESTDIR)$(bindir)
128 doxygen:
129         $(Q)$(DOXYGEN)
132 dist:
133         @echo DIST
134         @echo MKDIR
135         $(Q)mkdir $(PACKAGE_DIST)
136         @echo CP
137         $(Q)for i in include src; do \
138                 cp -rf $$i $(PACKAGE_DIST); \
139         done
140         $(Q)for i in autogen.sh aclocal.m4 config.h.in Makefile.in configure; do \
141                 cp $$i $(PACKAGE_DIST); \
142         done
143         @echo TAR
144         $(Q)tar -c $(PACKAGE_DIST) -af $(PACKAGE_DIST).tar.gz
145         @echo RM
146         $(Q)rm -rf $(PACKAGE_DIST)
149 help:
150         @echo
151         @echo "all:        Build $(PACKAGE_NAME)"
152         @echo "clean:      Clean $(PACKAGE_NAME)"
153         @echo "doxygen:    Generate Documentation"
154         @echo "distclean:  Clean and delete autoconf generated files"
155         @echo "dist:       Regenerate the release tarball"
156         @echo "install:    Install $(PACKAGE_NAME)"
157         @echo