add netsimpcap, a network simulation device
[olsrd.git] / contrib / netsimpcap / Makefile
1 SRC +=  $(wildcard ./src/*.c)
2
3 OBJS = $(SRC:.c=.o)
4
5 CC = gcc
6 CFLAGS = -c -g -Wall -Werror -I./src
7 LFLAGS = -g -Wall 
8 BUILDLIBS = -L/usr/lib -lpcap -Wl
9
10 .c.o:
11         ${CC} ${CFLAGS} -o $@ $^
12
13 netsimpcap:     ${OBJS}
14         ${CC} -o ./bin/$@ ${LFLAGS} ${BUILDLIBS} ${OBJS}
15
16 clean:
17         rm -f ${OBJS} ./bin/netsimpcap
18
19 all: netsimpcap