45 lines
1.6 KiB
Text
45 lines
1.6 KiB
Text
$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
|