Fix kernel version detection
[profile/ivi/OpenAVB.git] / examples / simple_talker / Makefile
1 OPT=-O2
2 CFLAGS=$(OPT) -Wall -W -Wno-parentheses
3
4 CC=gcc
5 INCFLAGS=-I../../lib/igb
6 LDLIBS=-ligb -lpci -lz -lrt -lm -pthread
7 LDFLAGS=-L../../lib/igb
8
9 all: simple_talker
10
11 simple_talker: simple_talker.o
12
13 simple_talker.o: simple_talker.c
14         gcc -c $(INCFLAGS) -I../../daemons/mrpd $(CFLAGS) simple_talker.c
15
16 %: %.o
17         $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
18
19 clean:
20         rm -f `find . -name "*~" -o -name "*.[oa]" -o -name "\#*\#" -o -name TAGS -o -name core -o -name "*.orig"` simple_talker
21