summaryrefslogtreecommitdiff
path: root/net/ssmping/patches/patch-aa
blob: 4054ba02148d7f3edff36973edcdc8ba303dd6a6 (plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
$NetBSD: patch-aa,v 1.2 2010/01/27 17:41:43 joerg Exp $

--- Makefile.orig	2006-06-04 10:16:04.000000000 +0200
+++ Makefile
@@ -2,21 +2,28 @@ PREFIX ?= /usr/local
 
 all: ssmping asmping ssmpingd mcfirst
 
-OBJ = ssmpngcl.o ssmpingc.o
+OBJ = ssmpngcl.o ssmpingc.o joinch.o joingrp.o
+
+ssmping: $(OBJ)
+	$(CC) $(CFLAGS) $(OBJ) -o ssmping ssmping.c
+
+asmping: $(OBJ)
+	$(CC) $(CFLAGS) $(OBJ) -o asmping asmping.c
 
-ssmping: $(OBJ) joinch.o
-asmping: $(OBJ) joingrp.o
-mcfirst: $(OBJ) joinch.o joingrp.o
 ssmpingd: $(OBJ)
+	$(CC) $(CFLAGS) $(OBJ) -o ssmpingd ssmpingd.c
+
+mcfirst: $(OBJ)
+	$(CC) $(CFLAGS) $(OBJ) -o mcfirst mcfirst.c
 
 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)/man/man1/ssmping.1
-	install -D asmping.1 $(DESTDIR)$(PREFIX)/man/man1/asmping.1
-	install -D mcfirst.1 $(DESTDIR)$(PREFIX)/man/man1/mcfirst.1
+	${BSD_INSTALL_PROGRAM} ssmping ${DESTDIR}$(PREFIX)/bin/ssmping
+	${BSD_INSTALL_PROGRAM} asmping ${DESTDIR}$(PREFIX)/bin/asmping
+	${BSD_INSTALL_PROGRAM} ssmpingd ${DESTDIR}$(PREFIX)/sbin/ssmpingd
+	${BSD_INSTALL_PROGRAM} mcfirst ${DESTDIR}$(PREFIX)/bin/mcfirst
+	${BSD_INSTALL_DATA} ssmping.1 ${DESTDIR}$(PREFIX)/man/man1/ssmping.1
+	${BSD_INSTALL_DATA} asmping.1 ${DESTDIR}$(PREFIX)/man/man1/asmping.1
+	${BSD_INSTALL_DATA} mcfirst.1 ${DESTDIR}$(PREFIX)/man/man1/mcfirst.1
 
 clean:
-	rm -f $(OBJ) joinch.o joingrp.o ssmping asmping ssmpingd mcfirst
+	rm -f $(OBJ) ssmping asmping ssmpingd mcfirst