-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (19 loc) · 734 Bytes
/
Makefile
File metadata and controls
29 lines (19 loc) · 734 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
EXTRA_CFLAGS =
PREFIX = $(DESTDIR)/usr
CFLAGS = -g -O2 -Wall -Wextra $(EXTRA_CFLAGS)
CXXFLAGS = -g -O2 -std=c++20 -Wall -Wextra $(EXTRA_CFLAGS)
# For ARM:
# CFLAGS = -Wall $(EXTRA_CFLAGS)
OBJS = src/parprouted.o src/arp.o src/fs.o src/context.o src/main.o
LIBS = -lpthread
all: parprouted parprouted.8
install: all
install parprouted $(PREFIX)/sbin
install parprouted.8 $(PREFIX)/share/man/man8
clean:
rm -f $(OBJS) parprouted core parprouted.8
parprouted: ${OBJS}
${CXX} -g -o parprouted ${OBJS} ${CXXFLAGS} ${LDFLAGS} ${LIBS}
parprouted.8: parprouted.pod
pod2man --section=8 --center="Proxy ARP Bridging Daemon" parprouted.pod --release "parprouted" --date "`date '+%B %Y'`" > parprouted.8
%.o : %.cpp parprouted.h