# Makefile for symlinks

CC?=		cc
CFLAGS?=	-pipe -O
COPY?=		-c
STRIP?=		-s
BINOWN?=	root
BINGRP?=	wheel
BINMODE?=	555
MANOWN?=	root
MANGRP?=	wheel
MANMODE?=	444

INSTALL_PROGRAM?= \
	${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
INSTALL_MAN?= \
	${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}             

all: symlinks

symlinks: symlinks.c
	$(CC) $(CFLAGS) -o symlinks symlinks.c
 
install: all symlinks.8
	@ ${INSTALL_PROGRAM} symlinks $(PREFIX)/bin
	@ ${INSTALL_MAN} symlinks.8 $(PREFIX)/man/man8

clean:
	@ rm -f symlinks *.o core


syntax highlighted by Code2HTML, v. 0.9.1