-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
36 lines (31 loc) · 1.02 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
EXTRA_DIST = README.md
bin_PROGRAMS = xpar
noinst_HEADERS = platform.h crc32c.h jmode.h smode.h common.h yarg.h
xpar_SOURCES = platform.c xpar.c crc32c.c jmode.c smode.c
if XPAR_X86_64
xpar_SOURCES += xpar-x86_64.asm
SUFFIXES = .asm
.asm.o:
$(NASM) $(NAFLAGS) -g -o $@ $<
endif
if XPAR_AARCH64
xpar_SOURCES += xpar-aarch64.S
xpar_CCASFLAGS = -march=armv8-a+crypto+crc
endif
dist_man_MANS = xpar.1
# Developer convenience targets
.PHONY: update-ChangeLog
update-ChangeLog:
contrib/gitlog-to-changelog > ChangeLog
.PHONY: self-check
self-check:
./xpar -Jef xpar && ./xpar -Jdf xpar.xpa xpar.org \
&& cmp xpar xpar.org && rm xpar.org xpar.xpa
./xpar -Jef -i 2 xpar && ./xpar -Jdf xpar.xpa xpar.org \
&& cmp xpar xpar.org && rm xpar.org xpar.xpa
./xpar -Sef --dshards=4 --pshards=2 xpar \
&& ./xpar -Sdf xpar.org xpar.xpa.0* \
&& cmp xpar xpar.org && rm xpar.org xpar.xpa.0*
./xpar -Sef --dshards=4 --pshards=2 xpar && rm -f xpar.xpa.000 \
&& ./xpar -Sdf xpar.org xpar.xpa.0* \
&& cmp xpar xpar.org && rm xpar.org xpar.xpa.0*