1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
# -*- sh -*-
# Makefile for derefsymlink compilation and installation
#
# Edit the following to suit your system and type "make install"
CC= gcc
CFLAGS= -Wall -O6
LDFLAGS= -s
# This sets the prefix for the executable and manual page directories
# during installation
PREFIX= /usr/
# If you want to install derefsymlink in some place other than
# /usr/local/bin then make sure PATH is set accordingly in binstats
DESTBIN= $(DESTDIR)/$(PREFIX)/bin
DESTMAN= $(DESTDIR)/$(PREFIX)/share/man/man1
derefsymlink: derefsymlink.o
$(CC) -o $@ $(CFLAGS) $(LDFLAGS) derefsymlink.o
install:: binstats
install -m 755 binstats $(DESTBIN)
install-man: binstats.1
install -m 644 binstats.1 $(DESTMAN)
install-all: install install-man
clean:
rm -f derefsymlink derefsymlink.o
|