-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
264 lines (239 loc) · 6.58 KB
/
Makefile.am
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
## Process this file with automake to produce Makefile.in
AM_CFLAGS = -Wall -Os
AM_LDFLAGS = -lpthread
AM_CXXFLAGS = -Wall -Os
bin_PROGRAMS = mksquashfs2
mksquashfs2_SOURCES = \
global.h \
mksquashfs.h \
read_fs.h \
squashfs_fs.h \
sort.h \
pseudo.h \
squashfs_compat.h \
squashfs_swap.h \
mycompress2.h \
mksquashfs.c \
mycompress2.cc \
read_fs.c \
sort.c \
swap.c \
pseudo.c \
redef.cc \
file.cc \
data.cc \
siglock.cc \
compress.cc \
getopt.c \
snprintf.c \
pngex.cc \
lib/fz.c \
lib/error.c \
lib/snstring.c \
lib/png.c \
lib/mng.c \
7z/7zdeflate.cc \
7z/7zlzma.cc \
7z/AriBitCoder.cc \
7z/CRC.cc \
7z/DeflateDecoder.cc \
7z/DeflateEncoder.cc \
7z/HuffmanEncoder.cc \
7z/IInOutStreams.cc \
7z/InByte.cc \
7z/LSBFDecoder.cc \
7z/LSBFEncoder.cc \
7z/LZMA.cc \
7z/LZMADecoder.cc \
7z/LZMAEncoder.cc \
7z/LenCoder.cc \
7z/LiteralCoder.cc \
7z/OutByte.cc \
7z/WindowIn.cc \
7z/WindowOut.cc
EXTRA_DIST = \
README AUTHORS HISTORY INSTALL COPYING \
doc/advdef.d doc/advzip.d doc/advpng.d doc/advmng.d doc/history.d doc/readme.d doc/authors.d doc/install.d \
doc/advdef.1 doc/advzip.1 doc/advpng.1 doc/advmng.1 doc/history.1 doc/readme.1 doc/authors.1 doc/install.1 \
doc/advdef.txt doc/advzip.txt doc/advpng.txt doc/advmng.txt doc/history.txt doc/readme.txt doc/authors.txt doc/install.txt \
doc/advdef.html doc/advzip.html doc/advpng.html doc/advmng.html doc/history.html doc/readme.html doc/authors.html doc/install.html \
autogen.sh noautomake.sh \
7z/README \
test/test.lst \
test/mappy.png \
test/mappy.mng \
test/basn2c08.png \
test/basn3p01.png \
test/basn3p02.png \
test/basn3p04.png \
test/basn3p08.png \
test/basn6a08.png \
test/basn6a04.png
noinst_HEADERS = \
global.h \
snprintf.c \
pngex.h \
mngex.h \
scroll.h \
compress.h \
file.h \
data.h \
zip.h \
except.h \
siglock.h \
portable.h \
lib/png.h \
lib/mng.h \
lib/fz.h \
lib/endianrw.h \
lib/error.h \
lib/snstring.h \
lib/extra.h \
7z/7z.h \
7z/AriBitCoder.h \
7z/AriConst.h \
7z/AriPrice.h \
7z/BinTree.h \
7z/BinTree2.h \
7z/BinTree2Main.h \
7z/BinTree3.h \
7z/BinTree3Main.h \
7z/BinTree3Z.h \
7z/BinTree3ZMain.h \
7z/BinTree4.h \
7z/BinTree4Main.h \
7z/BinTree4b.h \
7z/BinTree4bMain.h \
7z/BinTreeMF.h \
7z/BinTreeMFMain.h \
7z/BinTreeMain.h \
7z/BitTreeCoder.h \
7z/CRC.h \
7z/Const.h \
7z/DeflateDecoder.h \
7z/DeflateEncoder.h \
7z/HuffmanDecoder.h \
7z/HuffmanEncoder.h \
7z/IInOutStreams.h \
7z/InByte.h \
7z/LSBFDecoder.h \
7z/LSBFEncoder.h \
7z/LZMA.h \
7z/LZMADecoder.h \
7z/LZMAEncoder.h \
7z/LenCoder.h \
7z/LiteralCoder.h \
7z/OutByte.h \
7z/Portable.h \
7z/RCDefs.h \
7z/RangeCoder.h \
7z/WindowIn.h \
7z/WindowOut.h
man_MANS = doc/advdef.1 doc/advzip.1 doc/advpng.1 doc/advmng.1
clean-local:
rm -f check.lst check.zip mappy.mng mappy.png
rm -f basn2c08.png basn3p01.png basn3p02.png basn3p04.png basn3p08.png basn6a08.png basn6a04.png
rm -f advdef.exe advzip.exe advpng.exe advmng.exe
rm -f mappy*.png
maintainer-clean-local:
rm -f README AUTHORS HISTORY INSTALL doc/copying.txt
rm -f doc/*.hh
# Docs
%.1 : %.d
advd2 man < $(srcdir)/$< > $@
%.txt : %.d
advd2 txt < $(srcdir)/$< | todos > $@
%.html : %.d
advd2 html < $(srcdir)/$< > $@
%.hh : %.d
advd2 frame < $(srcdir)/$< > $@
# Archives
README: doc/readme.txt
cat $< | fromdos > $@
AUTHORS: doc/authors.txt
cat $< | fromdos > $@
INSTALL: doc/install.txt
cat $< | fromdos > $@
HISTORY: doc/history.txt
cat $< | fromdos > $@
doc/copying.txt: COPYING
cat $< | todos > $@
check-local: advzip test/test.lst
@./advzip -a -1 check.zip $(srcdir)/COPYING
@./advzip -L check.zip > check.lst
@./advzip -t -p check.zip
@./advzip -a -2 check.zip $(srcdir)/COPYING
@./advzip -L check.zip >> check.lst
@./advzip -t -p check.zip
@./advzip -a -3 check.zip $(srcdir)/COPYING
@./advzip -L check.zip >> check.lst
@./advzip -t -p check.zip
@./advzip -a -4 check.zip $(srcdir)/COPYING
@./advzip -L check.zip >> check.lst
@./advzip -t -p check.zip
@./advzip -a -1 -N check.zip $(srcdir)/COPYING
@./advzip -L check.zip >> check.lst
@./advzip -t -p check.zip
@./advzip -a -2 -N check.zip $(srcdir)/COPYING
@./advzip -L check.zip >> check.lst
@./advzip -t -p check.zip
@./advzip -a -3 -N check.zip $(srcdir)/COPYING
@./advzip -L check.zip >> check.lst
@./advzip -t -p check.zip
@./advzip -a -4 -N check.zip $(srcdir)/COPYING
@./advzip -L check.zip >> check.lst
@./advzip -t -p check.zip
@cp $(srcdir)/test/mappy.mng .
@./advmng -v -z -1 -f -S 8 mappy.mng
@./advmng -L mappy.mng >> check.lst
@./advmng -v -x -1 mappy.mng
@./advmng -v -a 30 -1 -S 8 mappy.mng mappy-*.png
@./advmng -L mappy.mng >> check.lst
@./advmng -v -a 30 -n -1 -S 8 mappy.mng mappy-*.png
@./advmng -L mappy.mng >> check.lst
@./advmng -v -a 30 -n -r -1 -S 8 mappy.mng mappy-*.png
@./advmng -L mappy.mng >> check.lst
@cp $(srcdir)/test/mappy.png .
@./advpng -f -z mappy.png
@./advpng -L mappy.png >> check.lst
@cp $(srcdir)/test/basn2c08.png $(srcdir)/test/basn3p01.png $(srcdir)/test/basn3p02.png $(srcdir)/test/basn3p04.png $(srcdir)/test/basn3p08.png $(srcdir)/test/basn6a08.png $(srcdir)/test/basn6a04.png .
@./advpng -f -z basn2c08.png basn3p01.png basn3p02.png basn3p04.png basn3p08.png basn6a08.png basn6a04.png
@./advpng -L basn2c08.png basn3p01.png basn3p02.png basn3p04.png basn3p08.png basn6a08.png basn6a04.png >> check.lst
@cmp check.lst $(srcdir)/test/test.lst
@echo Success!
DISTDOS_ROOT = \
doc/readme.txt doc/authors.txt doc/history.txt doc/copying.txt \
advdef.exe advzip.exe advpng.exe advmng.exe
DISTDOS_DOC = \
doc/advdef.txt doc/advzip.txt doc/advpng.txt doc/advmng.txt \
doc/readme.txt doc/authors.txt doc/history.txt \
doc/advdef.html doc/advzip.html doc/advpng.html doc/advmng.html \
doc/readme.html doc/authors.html doc/history.html
distdos: $(DISTDOS_ROOT) $(DISTDOS_DOC)
i586-pc-msdosdjgpp-strip advdef.exe
i586-pc-msdosdjgpp-strip advzip.exe
i586-pc-msdosdjgpp-strip advpng.exe
i586-pc-msdosdjgpp-strip advmng.exe
rm -f $(PACKAGE)-$(VERSION)-dos-pentium.zip
mkdir tmp
cp $(DISTDOS_ROOT) tmp
mkdir tmp/doc
cp $(DISTDOS_DOC) tmp/doc
cd tmp && zip -r ../$(PACKAGE)-$(VERSION)-dos-pentium.zip *
rm -r tmp
distwindows: $(DISTDOS_ROOT) $(DISTDOS_DOC)
i386-mingw32msvc-strip advdef.exe
i386-mingw32msvc-strip advzip.exe
i386-mingw32msvc-strip advpng.exe
i386-mingw32msvc-strip advmng.exe
rm -f $(PACKAGE)-$(VERSION)-windows-pentium.zip
mkdir tmp
cp $(DISTDOS_ROOT) tmp
mkdir tmp/doc
cp support/zlib.dll tmp
cp $(DISTDOS_DOC) tmp/doc
cd tmp && zip -r ../$(PACKAGE)-$(VERSION)-windows-pentium.zip *
rm -r tmp
DISTWEB = \
doc/advdef.hh doc/advzip.hh doc/advpng.hh doc/advmng.hh doc/history.hh
web: $(DISTWEB)