#Makefile for xstat

CFLAGS=-O3 -Wall
LDFLAGS=
CC=gcc
DESTDIR ?= /usr/local

all: pidof

install:
	install -s -o root -g wheel -m 755 pidof ${DESTDIR}/bin
	install -o root -g wheel -m 644 pidof.1 ${DESTDIR}/share/man/man1

uninstall:
	/bin/rm ${DESTDIR}/bin/pidof
	/bin/rm ${DESTDIR}/share/man/man1/pidof.1
	
clean:
	/bin/rm pidof

pidof:
	${CC} ${CFLAGS} ${LDFLAGS} pidof.c -o pidof
