File: Makefile

package info (click to toggle)
binstats 1.05-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 76 kB
  • ctags: 20
  • sloc: sh: 444; ansic: 186; makefile: 43
file content (27 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (3)
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
#          -*- 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/local
# If you want to install derefsymlink in some place other than
# /usr/local/bin then make sure PATH is set accordingly in binstats
DESTBIN= $(PREFIX)/bin
DESTMAN= $(PREFIX)/man/man1

derefsymlink: derefsymlink.o
	$(CC) -o $@ $(CFLAGS) $(LDFLAGS) derefsymlink.o

install:: derefsymlink
	install -m 755 derefsymlink $(DESTBIN)
	install -m 755 binstats $(DESTBIN)
	install -m 644 binstats.1 derefsymlink.1 $(DESTMAN)

clean:
	rm -f derefsymlink derefsymlink.o