File: Makefile

package info (click to toggle)
parprouted 0.70-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 160 kB
  • ctags: 83
  • sloc: ansic: 703; makefile: 54
file content (31 lines) | stat: -rw-r--r-- 650 bytes parent folder | download | duplicates (2)
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
30
31
EXTRA_CFLAGS = 

PREFIX = $(DESTDIR)/usr

#CC = gcc

CFLAGS = -g -O2 -Wall $(EXTRA_CFLAGS)
# For ARM:
# CFLAGS =  -Wall $(EXTRA_CFLAGS)
OBJS = parprouted.o arp.o

LIBS = -lpthread

all: parprouted

install: all
	install parprouted $(PREFIX)/sbin
	install parprouted.8 $(PREFIX)/share/man/man8

clean:
	rm -f $(OBJS) parprouted core

parprouted:	${OBJS}
	${CC} -g -o parprouted ${OBJS} ${CFLAGS} ${LDFLAGS} ${LIBS}

parprouted.8:	parprouted.pod
	pod2man --section=8 --center="Proxy ARP Bridging Daemon" parprouted.pod --release "parprouted" --date "`date '+%B %Y'`" > parprouted.8

parprouted.o : parprouted.c parprouted.h

arp.o : arp.c parprouted.h