File: Makefile.in

package info (click to toggle)
lrzip 0.45-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,004 kB
  • ctags: 1,541
  • sloc: ansic: 8,237; sh: 3,092; cpp: 1,340; makefile: 195; asm: 166
file content (130 lines) | stat: -rw-r--r-- 3,608 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Makefile for
# lrzip. This is processed by configure to produce the final
# Makefile
# See README.Assembler for notes about ASM module.

prefix=@prefix@
exec_prefix=@exec_prefix@
datarootdir=@datarootdir@
#ASM_OBJ=@ASM_OBJ@
ASM_OBJ=7zCrc.o
PACKAGE_TARNAME=@PACKAGE_TARNAME@
INSTALL_BIN=$(exec_prefix)/bin
INSTALL_MAN1=@mandir@/man1
INSTALL_MAN5=@mandir@/man5
INSTALL_DOC=@docdir@
INSTALL_DOC_LZMA=@docdir@/lzma
LIBS=@LIBS@
LDFLAGS=@LDFLAGS@
CC=@CC@
CXX=@CXX@
CFLAGS=@CFLAGS@ -I. -I$(srcdir) -Wall -W -c
CXXFLAGS=@CXXFLAGS@ -I. -I$(srcdir) -Wall -W -c
LZMA_CFLAGS=-I@top_srcdir@/lzma/C -DCOMPRESS_MF_MT -D_REENTRANT

INSTALLCMD=@INSTALL@
LN_S=@LN_S@
RM=rm -f
ASM=@ASM@

VPATH=@srcdir@
srcdir=@srcdir@
SHELL=/bin/sh

.SUFFIXES:
.SUFFIXES: .c .o

OBJS= main.o rzip.o runzip.o stream.o util.o \
  7zCrc.o \
  zpipe.o \
  Threads.o \
  LzFind.o \
  LzFindMt.o \
  LzmaDec.o \
  LzmaEnc.o \
  LzmaLib.o

DOCFILES= AUTHORS BUGS ChangeLog COPYING README README-NOT-BACKWARD-COMPATIBLE \
	  TODO WHATS-NEW \
	  doc/README.Assembler doc/README.benchmarks \
	  doc/README.lzo_compresses.test.txt \
	  doc/magic.header.txt doc/lrzip.conf.example
DOCFILES_LZMA= lzma/7zC.txt lzma/7zFormat.txt lzma/Methods.txt \
	  lzma/history.txt lzma/lzma.txt lzma/README lzma/README-Alloc

MAN1FILES= man/lrzip.1 man/lrunzip.1 man/lrztar.1
MAN5FILES= man/lrzip.conf.5

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

all: lrzip make-man man doc

make-man:
	$(MAKE) -C man

.PHONY: make-man

7zCrcT8.o: @top_srcdir@/lzma/C/7zCrcT8.c
	$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/7zCrcT8.c

7zCrcT8U.o: @top_srcdir@/lzma/ASM/x86/7zCrcT8U.s
	$(ASM) -o 7zCrcT8U.o @top_srcdir@/lzma/ASM/x86/7zCrcT8U.s

7zCrcT8U_64.o: @top_srcdir@/lzma/ASM/x86_64/7zCrcT8U_64.s
	$(ASM) -o 7zCrcT8U_64.o @top_srcdir@/lzma/ASM/x86_64/7zCrcT8U_64.s

7zCrc.o: @top_srcdir@/lzma/C/7zCrc.c
	$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/7zCrc.c

LzmaLib.o: @top_srcdir@/lzma/C/LzmaLib.c
	$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/LzmaLib.c

LzmaDec.o:  @top_srcdir@/lzma/C/LzmaDec.c
	$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/LzmaDec.c

LzmaEnc.o: @top_srcdir@/lzma/C/LzmaEnc.c
	$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/LzmaEnc.c

Threads.o: @top_srcdir@/lzma/C/Threads.c
	$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/Threads.c

LzFind.o: @top_srcdir@/lzma/C/LzFind.c
	$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/LzFind.c

LzFindMt.o: @top_srcdir@/lzma/C/LzFindMt.c
	$(CC) $(CFLAGS) $(LZMA_CFLAGS) @top_srcdir@/lzma/C/LzFindMt.c

zpipe.o: zpipe.cpp
	$(CXX) $(CXXFLAGS) -DNDEBUG zpipe.cpp

install: all
	mkdir -p $(DESTDIR)${INSTALL_BIN}
	${INSTALLCMD} -m 755 lrzip $(DESTDIR)${INSTALL_BIN}
	( cd $(DESTDIR)${INSTALL_BIN} && ${LN_S} -f lrzip lrunzip )
	${INSTALLCMD} -m 755 lrztar $(DESTDIR)${INSTALL_BIN}
	mkdir -p $(DESTDIR)${INSTALL_MAN1}
	${INSTALLCMD} -m 644 $(MAN1FILES) $(DESTDIR)${INSTALL_MAN1}
	mkdir -p $(DESTDIR)${INSTALL_MAN5}
	${INSTALLCMD} -m 644 $(MAN5FILES) $(DESTDIR)${INSTALL_MAN5}
	mkdir -p $(DESTDIR)${INSTALL_DOC}
	${INSTALLCMD} -m 644 $(DOCFILES) $(DESTDIR)${INSTALL_DOC}
	mkdir -p $(DESTDIR)${INSTALL_DOC_LZMA}
	${INSTALLCMD} -m 644 $(DOCFILES_LZMA) $(DESTDIR)${INSTALL_DOC_LZMA}

lrzip: $(OBJS)
	$(CXX) $(LDFLAGS) -o lrzip $(OBJS) $(LIBS)

static: $(OBJS)
	$(CXX) $(LDFLAGS) -static -o lrzip $(OBJS) $(LIBS)

clean:
	-${RM} *~ $(OBJS) lrzip config.cache config.log config.status *.o \
	man/lrunzip.1 man/lrztar.1

distclean: clean
	-rm -rf autom4te.cache config.h Makefile

maintainer-clean: distclean
	-rm -f configure