summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorWalter Goossens <walter.goossens@axon.tv>2015-06-06 23:47:47 +0200
committerWalter Goossens <walter.goossens@axon.tv>2015-06-06 23:47:47 +0200
commit1edc4c80eb7fe3a8415b88b65c102c560a8161af (patch)
treec66100cd1c66730233f5d601d15b37833b68d5aa /examples
parent6beef434891a3b9ef658fa820fe136ca915015a6 (diff)
downloadOpen-AVB-1edc4c80eb7fe3a8415b88b65c102c560a8161af.tar.gz
examples-jack: Allow overriding compiler command
Signed-off-by: Walter Goossens <walter.goossens@axon.tv>
Diffstat (limited to 'examples')
-rw-r--r--examples/jackd-listener/Makefile2
-rw-r--r--examples/jackd-talker/Makefile4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/jackd-listener/Makefile b/examples/jackd-listener/Makefile
index cad88433..a9004923 100644
--- a/examples/jackd-listener/Makefile
+++ b/examples/jackd-listener/Makefile
@@ -1,4 +1,4 @@
-CC = gcc
+CC ?= gcc
OPT = -O2 -g
CFLAGS = $(OPT) -Wall -Wextra -Wno-parentheses -std=gnu99
INCFLAGS = -I../../daemons/mrpd -I../common -I../../daemons/common
diff --git a/examples/jackd-talker/Makefile b/examples/jackd-talker/Makefile
index e5afc329..815235f0 100644
--- a/examples/jackd-talker/Makefile
+++ b/examples/jackd-talker/Makefile
@@ -1,4 +1,4 @@
-CC = gcc
+CC ?= gcc
OPT = -O2 -g
CFLAGS = $(OPT) -Wall -Wextra -Wno-parentheses -std=gnu99
INCFLAGS = -I../../lib/igb -I../../daemons/mrpd -I../common -I../../daemons/common
@@ -13,7 +13,7 @@ jack.o: jack.c jack.h defines.h
$(CC) $(CFLAGS) -c jack.c
jackd_talker.o: jackd_talker.c defines.h jack.h
- gcc -c $(INCFLAGS) -I../../daemons/mrpd $(CFLAGS) jackd_talker.c
+ $(CC) -c $(INCFLAGS) -I../../daemons/mrpd $(CFLAGS) jackd_talker.c
../common/talker_mrp_client.o:
make -C ../common/ talker_mrp_client.o