File: Makefile

package info (click to toggle)
rarpd 0.981107-9
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 276 kB
  • ctags: 358
  • sloc: ansic: 4,358; sh: 45; makefile: 39
file content (22 lines) | stat: -rw-r--r-- 408 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
CC ?= gcc
CFLAGS ?= -O2 -Wall -g $(DEFINES)

OBJ=rarpd.o #ethernet.o

PREFIX ?= /usr/local
MANPREFIX ?= $(PREFIX)/share/man

all: rarpd

rarpd: $(OBJ)

clean:
	rm -f $(OBJ) rarpd

install:
	install -d $(DESTDIR)$(PREFIX)/sbin
	install -m 0755 rarpd $(DESTDIR)$(PREFIX)/sbin/
	if [ -r rarpd.8 ]; then \
		install -d $(DESTDIR)$(MANPREFIX)/man8; \
		install -m 0644 rarpd.8 $(DESTDIR)$(MANPREFIX)/man8/; \
	fi