freebsd-ports/net/ssmping/files/patch-makefile
Martin Wilke 0686f49cef ssmping is a tool for checking whether a host can receive SSM from
another. If a host runst ssmpingd, users on other hosts can check
that they receive from this host by running the ssmping tool.
asmping is similar to ssmping, but checks for ASM rather than SSM.

WWW: http://www.venaas.no/multicast/ssmping/

PR:		ports/102322
Submitted by:	dikshie <dikshie@lapi.itb.ac.id>
Approved by:	krion (mentor)
2006-08-25 19:02:32 +00:00

32 lines
873 B
Text

--- Makefile Sun Jun 4 17:16:04 2006
+++ Makefile-bsd Sun Jun 4 17:16:04 2006
@@ -2,12 +2,19 @@
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
@@ -19,4 +26,4 @@
install -D 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