blob: ba49977ec0e18b2973e88533e7a91b7d822c206d (
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.1.1.1 2007/10/11 19:35:26 is 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
+ install -m 755 ssmping $(PREFIX)/bin/ssmping
+ install -m 755 asmping $(PREFIX)/bin/asmping
+ install -m 755 ssmpingd $(PREFIX)/sbin/ssmpingd
+ install -m 755 mcfirst $(PREFIX)/bin/mcfirst
+ install -m 644 ssmping.1 $(PREFIX)/man/man1/ssmping.1
+ install -m 644 asmping.1 $(PREFIX)/man/man1/asmping.1
+ install -m 644 mcfirst.1 $(PREFIX)/man/man1/mcfirst.1
clean:
- rm -f $(OBJ) joinch.o joingrp.o ssmping asmping ssmpingd mcfirst
+ rm -f $(OBJ) ssmping asmping ssmpingd mcfirst
|