--- 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