diff options
author | Jean-Baptiste Maillet <jean-baptiste.maillet@parrot.com> | 2014-11-20 15:23:03 +0100 |
---|---|---|
committer | Jean-Baptiste Maillet <jean-baptiste.maillet@parrot.com> | 2014-11-21 10:20:19 +0100 |
commit | e161e739f32c4856279bf0eb9aae70af9ce69ae3 (patch) | |
tree | 0ee8129d128135c21bf63816a477204e2920b40e /examples/live_stream | |
parent | a0d00b25b635fe257633ad9e5b8d7dc8cf64519f (diff) | |
download | Open-AVB-e161e739f32c4856279bf0eb9aae70af9ce69ae3.tar.gz |
Examples makefiles: harmonization and cleaning.
Remove some unneeded linker flags, add some missing headers dependencies,
same optimization and debug options for all.
Diffstat (limited to 'examples/live_stream')
-rw-r--r-- | examples/live_stream/Makefile | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/examples/live_stream/Makefile b/examples/live_stream/Makefile index 708bd4b2..8847299a 100644 --- a/examples/live_stream/Makefile +++ b/examples/live_stream/Makefile @@ -1,33 +1,34 @@ +CC=gcc +OPT=-O2 -g CFLAGS=$(OPT) -Wall -Wextra -Wno-parentheses -EXTRA_FLAGS=-I ../../lib/igb/ -I../../daemons/mrpd -I../common -EXTRA_FLAGS+=-L ../../lib/igb/ -ligb -lpci -lrt -lpthread -INCFLAGS=../common/avb.c +INCFLAGS=-I ../../lib/igb/ -I../../daemons/mrpd -I../common +LDLIBS=-ligb -lpci -lrt -lpthread +LDFLAGS=-L ../../lib/igb/ -all:talker \ - listener +all: talker listener talker: talker.o ../common/avb.o ../common/talker_mrp_client.o talker.o: talker.c - gcc -c $(INCFLAGS) talker.c $(CFLAGS) $(EXTRA_FLAGS) + $(CC) $(CFLAGS) $(INCFLAGS) $(EXTRA_FLAGS) -c talker.c -../common/talker_mrp_client.o: +../common/talker_mrp_client.o: ../common/talker_mrp_client.c ../common/talker_mrp_client.h make -C ../common/ talker_mrp_client.o listener: listener.o ../common/avb.o ../common/listener_mrp_client.o listener.o: listener.c - gcc -c $(INCFLAGS) listener.c $(CFLAGS) $(EXTRA_FLAGS) + $(CC) $(CFLAGS) $(INCFLAGS) $(EXTRA_FLAGS) -c listener.c -../common/listener_mrp_client.o: +../common/listener_mrp_client.o: ../common/listener_mrp_client.c ../common/listener_mrp_client.h make -C ../common/ listener_mrp_client.o -../common/avb.o: +../common/avb.o: ../common/avb.c ../common/avb.h make -C ../common/ avb.o %: %.o $(CC) $(LDFLAGS) $^ $(LDLIBS) $(EXTRA_FLAGS) -o $@ clean: - rm -rf *.o *~ *.rej *.orig - rm -rf talker listener + $(RM) talker listener + $(RM) *.o *~ *.rej *.orig |