[dvblast-devel] [PATCH 01/17] examples: Add "make local" for direct build against parent biTStream.

Georgi Chorbadzhiyski gf at unixsol.org
Fri Sep 9 23:28:23 CEST 2011


This patch adds "make local" target in examples/Makefile. Using this
target examples will be build using biTStream in their parent directory
(not the system wide install). This target simplifies biTSream development
and testing.
---
 examples/Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/examples/Makefile b/examples/Makefile
index 0965553..84d2c6c 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,6 +1,7 @@
 # $Id$
 
 CFLAGS = -Wall -O2 -g
+CFLAGS_LOCAL = -Wall -O2 -g -I. -I../..
 LDFLAGS = 
 OBJ = dvb_print_si dvb_ecmg dvb_ecmg_test mpeg_print_pcr rtp_check_seqnum
 
@@ -9,5 +10,8 @@ all: $(OBJ)
 %: %.c
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
 
+local: CFLAGS = $(CFLAGS_LOCAL)
+local: all
+
 clean:
 	-rm $(OBJ)
-- 
1.7.5.1



More information about the dvblast-devel mailing list