File: Makefile-solaris9

package info (click to toggle)
ssmping 0.9.1-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 216 kB
  • sloc: ansic: 1,692; makefile: 91
file content (22 lines) | stat: -rw-r--r-- 649 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PREFIX ?= /usr/local
CFLAGS ?= -D_POSIX_C_SOURCE -D__EXTENSIONS__ -D_XPG4_2
LDFLAGS ?= -lsocket  -lnsl 

all: asmping ssmpingd mcfirst

OBJ = ssmpngcl.o ssmpingc.o

ssmping: $(OBJ) joinch.o
asmping: $(OBJ) joingrp.o
ssmpingd: $(OBJ)
mcfirst: $(OBJ) joinch.o joingrp.o

install: asmping ssmpingd mcfirst
	install -D asmping $(DESTDIR)$(PREFIX)/bin/asmping
	install -D ssmpingd $(DESTDIR)$(PREFIX)/bin/ssmpingd
	install -D mcfirst $(DESTDIR)$(PREFIX)/bin/mcfirst
	install -D asmping.1 $(DESTDIR)$(PREFIX)/man/man1/asmping.1
	install -D mcfirst.1 $(DESTDIR)$(PREFIX)/man/man1/mcfirst.1

clean:
	rm -f $(OBJ) joinch.o joingrp.o asmping ssmpingd mcfirst