File: Makefile

package info (click to toggle)
binstats 1.08-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 196 kB
  • sloc: sh: 1,019; ansic: 186; makefile: 51
file content (30 lines) | stat: -rw-r--r-- 778 bytes parent folder | download
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