File: Makefile

package info (click to toggle)
rzip 2.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, squeeze, wheezy
  • size: 320 kB
  • ctags: 249
  • sloc: ansic: 1,888; sh: 575; makefile: 86
file content (54 lines) | stat: -rw-r--r-- 1,125 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Generated automatically from Makefile.in by configure.
# Makefile for rzip. This is processed by configure to produce the final
# Makefile

prefix=/usr
exec_prefix=${prefix}
INSTALL_BIN=$(exec_prefix)/bin
INSTALL_MAN=$(prefix)/share/man

LIBS=-lbz2 
CC=gcc
CFLAGS=-Wall -g -O3

INSTALLCMD=/usr/bin/install -c

srcdir=.
SHELL=/bin/sh


.SUFFIXES:
.SUFFIXES: .c .o

OBJS= rzip.o runzip.o main.o stream.o util.o crc32.o

# note that the -I. is needed to handle config.h when using VPATH
.c.o:
	$(CC) -I. -I$(srcdir) $(CFLAGS) -c $< -o $@

all: rzip

man: rzip.1 

install: all
	-mkdir -p ${INSTALL_BIN}
	${INSTALLCMD} -m 755 rzip ${INSTALL_BIN}
	ln ${INSTALL_BIN}/rzip ${INSTALL_BIN}/runzip
	-mkdir -p ${INSTALL_MAN}/man1
	${INSTALLCMD} -m 644 $(srcdir)/rzip.1 ${INSTALL_MAN}/man1/
	ln ${INSTALL_MAN}/man1/rzip.1 ${INSTALL_MAN}/man1/runzip.1

rzip: $(OBJS)
	$(CC) $(CFLAGS) -o rzip $(OBJS) $(LIBS)

rzip.1: rzip.yo
	yodl2man -o rzip.1 rzip.yo

web/rzip-man.html: rzip.yo
	mkdir -p man
	yodl2html -o web/rzip-man.html rzip.yo

docs: rzip.1 web/rzip-man.html

clean:
	rm -f *~ $(OBJS) rzip config.cache config.log config.status