forked from Netgate/netmap-fwd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 885 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
OUT=netmap-fwd
OBJS=arp.o cleanup.o cli.o config.o ether.o event.o icmp.o if.o inet.o
OBJS+=ip.o net.o netmap.o netmap-fwd.o radix.o util.o
INCLUDES=arp.h cleanup.h cli.h config.h counters.h ether.h event.h icmp.h
INCLUDES+=if.h inet.h ip.h net.h netmap.h radix.h util.h
LDFLAGS=-L/usr/local/lib -levent -lutil -lucl
CCFLAGS=-O2 -fPIC -g -Wall -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings
CCFLAGS=-O2 -fPIC -g -Wall -Wshadow -Wcast-qual -Wwrite-strings
CCFLAGS+=-Wredundant-decls -Wnested-externs -Winline -I/usr/local/include
all: $(OUT)
$(OUT): $(OBJS) $(INCLUDES)
$(CC) $(CCFLAGS) -o $(OUT) $(OBJS) $(LDFLAGS)
.c.o: $(INCLUDES)
$(CC) $(CCFLAGS) -c $<
clean:
rm -f *.o *.core tags $(OUT)
install: $(OUT)
install -m 0755 netmap-fwd $(PREFIX)/usr/local/sbin
install -b -m 0644 netmap-fwd.conf $(PREFIX)/usr/local/etc
svn-propset:
svn propset svn:keywords "Id" *c *h