-
Notifications
You must be signed in to change notification settings - Fork 75
/
Makefile.am
181 lines (157 loc) · 5.59 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
## This file is part of par2cmdline (a PAR 2.0 compatible file verification and
## repair tool). See http://parchive.sourceforge.net for details of PAR 2.0.
##
## Copyright (c) 2003 Peter Brian Clements
## Copyright (c) 2019 Michael D. Nahas
##
## par2cmdline is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## par2cmdline is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
AUTOMAKE_OPTIONS = subdir-objects
.DELETE_ON_ERROR:
noinst_LIBRARIES = libpar2.a
libpar2_a_SOURCES = src/crc.cpp src/crc.h \
src/creatorpacket.cpp src/creatorpacket.h \
src/criticalpacket.cpp src/criticalpacket.h \
src/datablock.cpp src/datablock.h \
src/descriptionpacket.cpp src/descriptionpacket.h \
src/diskfile.cpp src/diskfile.h \
src/filechecksummer.cpp src/filechecksummer.h \
src/galois.cpp src/galois.h \
src/letype.h \
src/mainpacket.cpp src/mainpacket.h \
src/md5.cpp src/md5.h \
src/par1fileformat.cpp src/par1fileformat.h \
src/par1repairer.cpp src/par1repairer.h \
src/par1repairersourcefile.cpp src/par1repairersourcefile.h \
src/par2creator.cpp src/par2creator.h \
src/par2creatorsourcefile.cpp src/par2creatorsourcefile.h \
src/par2fileformat.cpp src/par2fileformat.h \
src/par2repairer.cpp src/par2repairer.h \
src/par2repairersourcefile.cpp src/par2repairersourcefile.h \
src/recoverypacket.cpp src/recoverypacket.h \
src/reedsolomon.cpp src/reedsolomon.h \
src/verificationhashtable.cpp src/verificationhashtable.h \
src/verificationpacket.cpp src/verificationpacket.h \
src/libpar2.cpp src/libpar2.h src/libpar2internal.h
bin_PROGRAMS = par2
man_MANS = man/par2.1
par2_SOURCES = src/par2cmdline.cpp \
src/commandline.cpp src/commandline.h
par2_LDADD = libpar2.a
LDADD = -lstdc++
AM_CXXFLAGS = -Wall -std=c++11 $(OPENMP_CXXFLAGS)
EXTRA_DIST = PORTING ROADMAP \
man/par2.1 \
automake.sh \
tests/flatdata.tar.gz \
tests/flatdata-par1files.tar.gz \
tests/flatdata-par2files.tar.gz \
tests/subdirdata.tar.gz \
tests/subdirdata-par2files-unix.tar.gz \
tests/subdirdata-par2files-win.tar.gz \
tests/smallsubdirdata.tar.gz \
tests/smallsubdirdata-par2files.tar.gz \
tests/100blocks.tar.gz \
tests/readbeyondeof.tar.gz \
tests/par2-0.6.8-crash.tar.gz \
tests/bug44.tar.gz \
tests/test1 \
tests/test2 \
tests/test3 \
tests/test4 \
tests/test5 \
tests/test5rk \
tests/test6 \
tests/test7 \
tests/test8 \
tests/test9 \
tests/test10 \
tests/test11 \
tests/test12 \
tests/test13 \
tests/test14 \
tests/test15 \
tests/test16 \
tests/test17 \
tests/test18 \
tests/test19 \
tests/test20 \
tests/test21 \
tests/test22 \
tests/test23 \
tests/test24 \
tests/test25 \
tests/test26 \
tests/test27 \
tests/test28 \
tests/unit_tests
# Programs that need to be compiled for the test suite.
# These are the unit tests.
check_PROGRAMS = tests/letype_test tests/crc_test tests/md5_test tests/diskfile_test tests/libpar2_test tests/commandline_test tests/descriptionpacket_test tests/criticalpacket_test tests/reedsolomon_test tests/galois_test
tests_letype_test_SOURCES = src/letype_test.cpp src/letype.h
tests_crc_test_SOURCES = src/crc_test.cpp src/crc.cpp src/crc.h
tests_md5_test_SOURCES = src/md5_test.cpp src/md5.cpp src/md5.h
tests_diskfile_test_SOURCES = src/diskfile_test.cpp src/diskfile.cpp src/diskfile.h
tests_libpar2_test_SOURCES = src/libpar2_test.cpp src/libpar2.h
tests_libpar2_test_LDADD = libpar2.a
tests_commandline_test_SOURCES = src/commandline_test.cpp src/commandline.cpp src/commandline.h
tests_commandline_test_LDADD = libpar2.a
tests_descriptionpacket_test_SOURCES = src/descriptionpacket_test.cpp src/descriptionpacket.cpp src/descriptionpacket.h
tests_descriptionpacket_test_LDADD = libpar2.a
tests_criticalpacket_test_SOURCES = src/criticalpacket_test.cpp src/criticalpacket.cpp src/criticalpacket.h
tests_criticalpacket_test_LDADD = libpar2.a
tests_reedsolomon_test_SOURCES = src/reedsolomon_test.cpp src/reedsolomon.cpp src/reedsolomon.h
tests_galois_test_SOURCES = src/galois_test.cpp src/galois.cpp src/galois.h
# List of all tests.
# tests/test* are integration tests that use the binary.
# $(check_PROGRAMS) is the list of compiled unit tests.
TESTS = tests/test1 \
tests/test2 \
tests/test3 \
tests/test4 \
tests/test5 \
tests/test5rk \
tests/test6 \
tests/test7 \
tests/test8 \
tests/test9 \
tests/test10 \
tests/test11 \
tests/test12 \
tests/test13 \
tests/test14 \
tests/test15 \
tests/test16 \
tests/test17 \
tests/test18 \
tests/test19 \
tests/test20 \
tests/test21 \
tests/test22 \
tests/test23 \
tests/test24 \
tests/test25 \
tests/test26 \
tests/test27 \
tests/test28 \
tests/unit_tests
install-exec-hook :
cd $(DESTDIR)$(bindir)/ && \
ln -sf par2$(EXEEXT) par2create$(EXEEXT) && \
ln -sf par2$(EXEEXT) par2verify$(EXEEXT) && \
ln -sf par2$(EXEEXT) par2repair$(EXEEXT)
uninstall-hook :
rm -f $(DESTDIR)$(bindir)/par2create$(EXEEXT)
rm -f $(DESTDIR)$(bindir)/par2verify$(EXEEXT)
rm -f $(DESTDIR)$(bindir)/par2repair$(EXEEXT)