File: Makefile

package info (click to toggle)
ipv6pref 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 128 kB
  • ctags: 11
  • sloc: ansic: 58; sh: 48; makefile: 17
file content (19 lines) | stat: -rw-r--r-- 329 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
LIBRARY=ipv6pref.so
MANPAGE=ipv6pref.1

VERSION:=$(shell cat version.inc)

all: $(LIBRARY) $(MANPAGE)

$(LIBRARY): ipv6pref.c
	$(CC) $(CPPFLAGS) $(CFLAGS) $< $(LDFLAGS) -ldl -fPIC -shared -o $@

%.1: %.pod
	pod2man \
		--center="ipv6pref" \
		--section=1 \
		--release="$(VERSION)" \
		$< > $@

clean:
	-rm $(LIBRARY) $(MANPAGE)