-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile.am
42 lines (37 loc) · 1.1 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
# Command line tool.
snzip_SOURCES = snzip.c \
snzip.h \
snzip-format.c \
framing-format.c \
framing2-format.c \
hadoop-snappy-format.c \
iwa-format.c \
snappy-java-format.c \
snappy-in-java-format.c \
comment-43-format.c \
crc32.c \
crc32.h
if SUPPORT_RAW_FORMAT
snzip_SOURCES += raw_format.cpp
endif
if HAVE_SSE4_2
snzip_SOURCES += crc32_sse4_2.c
endif
snzip_LDFLAGS = @LDFLAGS_SSE4_2@
CFLAGS_SSE4_2 = @CFLAGS_SSE4_2@
PROGS = snzip
bin_PROGRAMS = $(PROGS)
EXTRA_DIST = CMakeLists.txt cmake_config.h.in spec/snzip.spec win32/ya_getopt.c win32/ya_getopt.h
dist_doc_DATA = AUTHORS ChangeLog COPYING INSTALL NEWS README.md
dist-hook:
git log > $(distdir)/ChangeLog
install-exec-hook:
ln $(DESTDIR)$(bindir)/snzip$(EXEEXT) $(DESTDIR)$(bindir)/snunzip$(EXEEXT)
ln $(DESTDIR)$(bindir)/snzip$(EXEEXT) $(DESTDIR)$(bindir)/snzcat$(EXEEXT)
uninstall-hook:
rm -f $(DESTDIR)$(bindir)/snunzip$(EXEEXT)
rm -f $(DESTDIR)$(bindir)/snzcat$(EXEEXT)
# Use CFLAGS_SSE4_2 only for crc32_sse4_2.c.
# Otherwise, SSE4.2 instructions may be used elsewhere.
crc32_sse4_2.o: crc32_sse4_2.c crc32.h
$(COMPILE) $(CFLAGS_SSE4_2) -c $<