File: Makefile

package info (click to toggle)
ssmping 0.9.1-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 216 kB
  • sloc: ansic: 1,692; makefile: 91
file content (23 lines) | stat: -rw-r--r-- 788 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PREFIX ?= /usr/

all: ssmping asmping ssmpingd mcfirst

OBJ = ssmpngcl.o ssmpingc.o

ssmping: $(OBJ) joinch.o
asmping: $(OBJ) joingrp.o
mcfirst: $(OBJ) joinch.o joingrp.o
ssmpingd: $(OBJ)

install: ssmping asmping ssmpingd mcfirst
	install -D ssmping $(DESTDIR)$(PREFIX)/bin/ssmping
	install -D asmping $(DESTDIR)$(PREFIX)/bin/asmping
	install -D ssmpingd $(DESTDIR)$(PREFIX)/bin/ssmpingd
	install -D mcfirst $(DESTDIR)$(PREFIX)/bin/mcfirst
	install -D ssmping.1 $(DESTDIR)$(PREFIX)/share/man/man1/ssmping.1
	cd  $(DESTDIR)$(PREFIX)/share/man/man1/ && ln -s ssmping.1 ssmpingd.1
	install -D asmping.1 $(DESTDIR)$(PREFIX)/share/man/man1/asmping.1
	install -D mcfirst.1 $(DESTDIR)$(PREFIX)/share/man/man1/mcfirst.1

clean:
	-rm -f $(OBJ) joinch.o joingrp.o ssmping asmping ssmpingd mcfirst