2012-05-28 14:49:29 +00:00
|
|
|
#
|
|
|
|
# This file is a part of Pcompress, a chunked parallel multi-
|
|
|
|
# algorithm lossless compression and decompression program.
|
|
|
|
#
|
2013-03-07 14:56:48 +00:00
|
|
|
# Copyright (C) 2012-2013 Moinak Ghosh. All rights reserved.
|
2012-05-28 14:49:29 +00:00
|
|
|
# Use is subject to license terms.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
2012-07-07 16:48:29 +00:00
|
|
|
# version 3 of the License, or (at your option) any later version.
|
2012-05-28 14:49:29 +00:00
|
|
|
#
|
|
|
|
# This program 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
|
|
|
|
# Lesser General Public License for more details.
|
|
|
|
#
|
2013-03-07 14:56:48 +00:00
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this program.
|
|
|
|
# If not, see <http://www.gnu.org/licenses/>.
|
2012-05-28 14:49:29 +00:00
|
|
|
#
|
2013-03-07 14:56:48 +00:00
|
|
|
# moinakg@belenix.org, http://moinakg.wordpress.com/
|
2012-05-28 14:49:29 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
PROG= pcompress
|
2014-04-26 17:35:14 +00:00
|
|
|
SO_SUFFIX=@SO_SUFFIX@
|
|
|
|
LIB=libpcompress.$(SO_SUFFIX)
|
2013-06-02 15:24:33 +00:00
|
|
|
LINKLIB=pcompress
|
2014-04-26 17:35:14 +00:00
|
|
|
GCC=@GCC@
|
|
|
|
GPP=@GPP@
|
2013-06-02 15:24:33 +00:00
|
|
|
LIBVER=1
|
|
|
|
MAINSRCS = utils/utils.c allocator.c lzma_compress.c ppmd_compress.c \
|
2012-12-16 17:47:04 +00:00
|
|
|
adaptive_compress.c lzfx_compress.c lz4_compress.c none_compress.c \
|
2013-11-10 17:39:42 +00:00
|
|
|
utils/xxhash_base.c utils/heap.c utils/cpuid.c pcompress.c
|
2013-05-25 12:04:38 +00:00
|
|
|
MAINHDRS = allocator.h pcompress.h utils/utils.h utils/xxhash.h utils/heap.h \
|
2013-11-24 14:15:58 +00:00
|
|
|
utils/cpuid.h utils/xxhash.h archive/pc_archive.h filters/dispack/dis.hpp
|
2012-05-28 14:49:29 +00:00
|
|
|
MAINOBJS = $(MAINSRCS:.c=.o)
|
|
|
|
|
2013-06-02 15:24:33 +00:00
|
|
|
PROGSRCS = main.c
|
|
|
|
PROGHDRS = pcompress.h utils/utils.h
|
|
|
|
PROGOBJS = $(PROGSRCS:.c=.o)
|
|
|
|
|
2013-03-04 16:26:07 +00:00
|
|
|
XSALSA20_STREAM_C = crypto/xsalsa20/stream.c
|
|
|
|
XSALSA20_STREAM_ASM = crypto/xsalsa20/stream.s
|
|
|
|
XSALSA20_DEBUG = -DSALSA20_DEBUG
|
|
|
|
|
2012-12-16 17:47:04 +00:00
|
|
|
CRYPTO_SRCS = crypto/aes/crypto_aes.c crypto/scrypt/crypto_scrypt-nosse.c \
|
2013-01-27 18:17:55 +00:00
|
|
|
crypto/scrypt/sha256.c crypto/scrypt/crypto_aesctr.c crypto/crypto_utils.c \
|
2013-03-04 16:26:07 +00:00
|
|
|
crypto/sha2_utils.c crypto/sha3_utils.c crypto/xsalsa20/xsalsa20_xor.c \
|
|
|
|
crypto/xsalsa20/hsalsa_core.c @XSALSA20_STREAM_C@
|
2012-12-16 17:47:04 +00:00
|
|
|
CRYPTO_HDRS = crypto/crypto_utils.h crypto/scrypt/crypto_scrypt.h \
|
|
|
|
crypto/scrypt/sha256.h crypto/scrypt/crypto_aesctr.h crypto/aes/crypto_aes.h \
|
2013-03-04 16:26:07 +00:00
|
|
|
crypto/sha2_utils.h crypto/sha3_utils.h crypto/xsalsa20/crypto_core_hsalsa20.h \
|
|
|
|
crypto/xsalsa20/crypto_stream_salsa20.h crypto/xsalsa20/crypto_xsalsa20.h \
|
|
|
|
$(MAINHDRS)
|
|
|
|
CRYPTO_ASM_SRCS = crypto/aes/vpaes-x86_64.s crypto/aes/aesni-x86_64.s @XSALSA20_STREAM_ASM@
|
|
|
|
CRYPTO_ASM_OBJS = $(CRYPTO_ASM_SRCS:.s=.o)
|
|
|
|
CRYPTO_ASM_HDRS = crypto/aes/crypto_aes.h crypto/xsalsa20/crypto_stream_salsa20.h
|
2013-02-24 14:35:16 +00:00
|
|
|
CRYPTO_COMPAT_SRCS = crypto/old/sha2_utils_old.c crypto/old/sha3_utils_old.c
|
|
|
|
CRYPTO_COMPAT_HDRS = crypto/old/sha2_utils_old.h crypto/old/sha3_utils_old.h
|
2012-12-16 17:47:04 +00:00
|
|
|
CRYPTO_OBJS = $(CRYPTO_SRCS:.c=.o)
|
2013-02-24 14:35:16 +00:00
|
|
|
CRYPTO_COMPAT_OBJS = $(CRYPTO_COMPAT_SRCS:.c=.o)
|
2012-12-16 17:47:04 +00:00
|
|
|
CRYPTO_CPPFLAGS=-I@OPENSSL_INCDIR@
|
|
|
|
|
2013-01-24 18:40:12 +00:00
|
|
|
XXHASH_SRCS = utils/xxhash.c
|
|
|
|
XXHASH_SSE4_SRCS = utils/xxhash_sse4.c
|
|
|
|
XXHASH_SSE2_SRCS = utils/xxhash_sse2.c
|
|
|
|
XXHASH_OBJS = utils/xxhash_sse4.o utils/xxhash_sse2.o
|
|
|
|
XXHASH_HDRS = utils/xxhash.h
|
|
|
|
|
2013-01-26 10:09:10 +00:00
|
|
|
BLAKE2b_SSE2 = crypto/blake2/blake2b_sse2.c
|
|
|
|
BLAKE2b_SSE3 = crypto/blake2/blake2b_ssse3.c
|
|
|
|
BLAKE2b_SSE4 = crypto/blake2/blake2b_sse41.c
|
|
|
|
BLAKE2b_AVX = crypto/blake2/blake2b_avx.c
|
|
|
|
BLAKE2bp_SSE2 = crypto/blake2/blake2bp_sse2.c
|
|
|
|
BLAKE2bp_SSE3 = crypto/blake2/blake2bp_ssse3.c
|
|
|
|
BLAKE2bp_SSE4 = crypto/blake2/blake2bp_sse41.c
|
|
|
|
BLAKE2bp_AVX = crypto/blake2/blake2bp_avx.c
|
|
|
|
BLAKE2_BASE_SRCS = crypto/blake2/blake2b.c crypto/blake2/blake2bp.c
|
|
|
|
BLAKE2_HDRS = crypto/blake2/blake2.h crypto/blake2/blake2-impl.h crypto/blake2/blake2-config.h \
|
|
|
|
crypto/blake2/blake2-kat.h crypto/blake2/blake2b-round.h crypto/blake2/blake2b-load-sse2.h \
|
|
|
|
crypto/blake2/blake2b-load-sse41.h
|
|
|
|
BLAKE2_SRCS = $(BLAKE2b_SSE2) $(BLAKE2b_SSE3) $(BLAKE2b_SSE4) $(BLAKE2b_AVX) \
|
|
|
|
$(BLAKE2bp_SSE2) $(BLAKE2bp_SSE3) $(BLAKE2bp_SSE4) $(BLAKE2bp_AVX)
|
|
|
|
BLAKE2_OBJS = $(BLAKE2_SRCS:.c=.o)
|
|
|
|
|
2012-12-16 17:47:04 +00:00
|
|
|
ZLIB_SRCS = zlib_compress.c
|
|
|
|
ZLIB_HDRS = $(MAINHDRS)
|
|
|
|
ZLIB_OBJS = $(ZLIB_SRCS:.c=.o)
|
|
|
|
ZLIB_CPPFLAGS = @LIBZ_INC@
|
|
|
|
|
|
|
|
BZLIB_SRCS = bzip2_compress.c
|
|
|
|
BZLIB_HDRS = $(MAINHDRS)
|
|
|
|
BZLIB_OBJS = $(BZLIB_SRCS:.c=.o)
|
|
|
|
BZLIB_CPPFLAGS = @LIBBZ2_INC@
|
|
|
|
|
2013-04-09 16:53:51 +00:00
|
|
|
RABINSRCS = rabin/rabin_dedup.c rabin/global/index.c rabin/global/dedupe_config.c
|
2013-05-03 16:36:55 +00:00
|
|
|
RABINHDRS = rabin/rabin_dedup.h utils/utils.h rabin/global/index.h rabin/global/dedupe_config.h lzma/lzma_crc.h utils/qsort.h
|
2012-06-21 14:57:05 +00:00
|
|
|
RABINOBJS = $(RABINSRCS:.c=.o)
|
|
|
|
|
2012-07-19 16:11:07 +00:00
|
|
|
BSDIFFSRCS = bsdiff/bsdiff.c bsdiff/bspatch.c bsdiff/rle_encoder.c
|
2012-09-02 15:10:32 +00:00
|
|
|
BSDIFFHDRS = bsdiff/bscommon.h utils/utils.h allocator.h
|
2012-07-19 16:11:07 +00:00
|
|
|
BSDIFFOBJS = $(BSDIFFSRCS:.c=.o)
|
|
|
|
|
2012-08-18 04:50:52 +00:00
|
|
|
LZMASRCS = lzma/LzmaEnc.c lzma/LzFind.c lzma/LzmaDec.c lzma/Threads.c lzma/LzFindMt.c
|
2012-06-21 14:57:05 +00:00
|
|
|
LZMAHDRS = lzma/CpuArch.h lzma/LzFind.h lzma/LzmaEnc.h lzma/Types.h \
|
2012-09-02 15:10:32 +00:00
|
|
|
lzma/LzHash.h lzma/LzmaDec.h utils/utils.h lzma/LzFindMt.h lzma/Threads.h lzma/windows.h \
|
2012-08-18 04:50:52 +00:00
|
|
|
lzma/Common/MyWindows.h lzma/Common/MyGuidDef.h lzma/basetyps.h
|
2012-05-28 14:49:29 +00:00
|
|
|
LZMAOBJS = $(LZMASRCS:.c=.o)
|
|
|
|
|
2012-07-22 18:45:08 +00:00
|
|
|
LZFXSRCS = lzfx/lzfx.c
|
|
|
|
LZFXHDRS = lzfx/lzfx.h
|
|
|
|
LZFXOBJS = $(LZFXSRCS:.c=.o)
|
|
|
|
|
2012-07-25 15:37:36 +00:00
|
|
|
LZ4SRCS = lz4/lz4.c lz4/lz4hc.c
|
|
|
|
LZ4HDRS = lz4/lz4.h lz4/lz4hc.h
|
|
|
|
LZ4OBJS = $(LZ4SRCS:.c=.o)
|
|
|
|
|
2012-05-28 14:49:29 +00:00
|
|
|
PPMDSRCS = lzma/Ppmd8.c lzma/Ppmd8Enc.c lzma/Ppmd8Dec.c
|
|
|
|
PPMDHDRS = lzma/Ppmd.h lzma/Ppmd8.h
|
|
|
|
PPMDOBJS = $(PPMDSRCS:.c=.o)
|
|
|
|
|
2012-11-22 18:30:39 +00:00
|
|
|
CRCSRCS = lzma/crc64_fast.c lzma/crc64_table.c lzma/crc32_fast.c lzma/crc32_table.c
|
|
|
|
CRCHDRS = lzma/crc64_table_le.h lzma/crc64_table_be.h lzma/crc_macros.h \
|
2013-05-03 16:36:55 +00:00
|
|
|
lzma/crc32_table_le.h lzma/crc32_table_be.h lzma/lzma_crc.h
|
2012-05-28 14:49:29 +00:00
|
|
|
CRCOBJS = $(CRCSRCS:.c=.o)
|
|
|
|
|
2013-11-10 17:39:42 +00:00
|
|
|
LZPSRCS = filters/lzp/lzp.c
|
|
|
|
LZPHDRS = filters/lzp/lzp.h
|
2012-08-23 17:28:44 +00:00
|
|
|
LZPOBJS = $(LZPSRCS:.c=.o)
|
|
|
|
|
2013-11-10 17:39:42 +00:00
|
|
|
DELTA2SRCS = filters/delta2/delta2.c
|
|
|
|
DELTA2HDRS = filters/delta2/delta2.h
|
2012-12-04 18:39:47 +00:00
|
|
|
DELTA2OBJS = $(DELTA2SRCS:.c=.o)
|
|
|
|
|
2013-11-10 17:39:42 +00:00
|
|
|
ARCHIVESRCS = archive/pc_archive.c archive/pc_arc_filter.c utils/phash/phash.c \
|
|
|
|
utils/phash/lookupa.c utils/phash/recycle.c
|
|
|
|
ARCHIVEHDRS = pcompress.h utils/utils.h archive/pc_archive.h utils/phash/standard.h \
|
2013-11-28 17:12:51 +00:00
|
|
|
utils/phash/lookupa.h utils/phash/recycle.h utils/phash/phash.h archive/pc_arc_filter.h \
|
|
|
|
utils/phash/extensions.h
|
2013-11-10 17:39:42 +00:00
|
|
|
ARCHIVEOBJS = $(ARCHIVESRCS:.c=.o)
|
|
|
|
|
|
|
|
PJPGSRCS = filters/packjpg/aricoder.cpp filters/packjpg/bitops.cpp filters/packjpg/packjpg.cpp \
|
|
|
|
archive/pjpg_helper.cpp
|
|
|
|
PJPGHDRS = filters/packjpg/aricoder.h filters/packjpg/bitops.h filters/packjpg/dct8x8.h \
|
|
|
|
filters/packjpg/packjpglib.h filters/packjpg/pjpgtbl.h
|
|
|
|
PJPGOBJS = $(PJPGSRCS:.cpp=.o)
|
|
|
|
|
2014-09-11 13:04:43 +00:00
|
|
|
PPNMSRCS = filters/packpnm/packpnm.cpp archive/ppnm_helper.cpp
|
|
|
|
PPNMHDRS = filters/packjpg/aricoder.h filters/packjpg/bitops.h filters/packpnm/ppnmbitlen.h \
|
|
|
|
filters/packpnm/packpnmlib.h filters/packpnm/ppnmtbl.h
|
|
|
|
PPNMOBJS = $(PPNMSRCS:.cpp=.o)
|
|
|
|
|
2014-09-14 18:26:38 +00:00
|
|
|
WAVPKSRCS = archive/wavpack_helper.c
|
|
|
|
WAVPKOBJS = $(WAVPKSRCS:.c=.o)
|
|
|
|
|
2013-11-24 14:15:58 +00:00
|
|
|
DISPACKSRCS = filters/dispack/dis.cpp
|
|
|
|
DISPACKHDRS = filters/dispack/dis.hpp filters/dispack/types.hpp
|
|
|
|
DISPACKOBJS = $(DISPACKSRCS:.cpp=.o)
|
|
|
|
|
2012-09-01 09:10:15 +00:00
|
|
|
SKEIN_BLOCK_C = crypto/skein/skein_block.c
|
|
|
|
SKEIN_BLOCK_ASM = crypto/skein/skein_block_x64.s
|
|
|
|
SKEIN_BLOCK_SRC = @SKEIN_BLOCK@
|
|
|
|
SKEIN_BLOCK_OBJ = crypto/skein/skein_block.o
|
|
|
|
SKEINSRCS = crypto/skein/SHA3api_ref.c crypto/skein/skein.c crypto/skein/skein_debug.c
|
2012-08-31 17:06:06 +00:00
|
|
|
SKEINHDRS = crypto/skein/brg_endian.h crypto/skein/SHA3api_ref.h \
|
|
|
|
crypto/skein/skein.h crypto/skein/skein_port.h crypto/skein/brg_types.h \
|
|
|
|
crypto/skein/skein_debug.h crypto/skein/skein_iv.h
|
|
|
|
SKEINOBJS = $(SKEINSRCS:.c=.o)
|
|
|
|
|
2013-01-25 17:25:55 +00:00
|
|
|
SHA2_SRCS = crypto/sha2/sha512.c
|
|
|
|
SHA2_HDRS = crypto/sha2/sha512.h
|
|
|
|
SHA2ASM_SRCS = crypto/sha2/intel/sha512_avx.asm crypto/sha2/intel/sha512_sse4.asm
|
|
|
|
SHA2ASM_OBJS = $(SHA2ASM_SRCS:.asm=.o)
|
|
|
|
SHA2_OBJS = $(SHA2_SRCS:.c=.o)
|
2012-10-06 15:21:23 +00:00
|
|
|
|
2014-04-30 17:16:24 +00:00
|
|
|
YASM = @YASM@
|
2014-05-04 08:02:11 +00:00
|
|
|
YASM_GAS = @YASM_GAS@
|
2012-08-27 16:21:55 +00:00
|
|
|
LIBBSCWRAP = libbsc_compress.c
|
|
|
|
LIBBSCWRAPOBJ = libbsc_compress.o
|
|
|
|
LIBBSCDIR = @LIBBSCDIR@
|
|
|
|
LIBBSCLFLAGS = -L$(LIBBSCDIR) -lbsc
|
|
|
|
LIBBSCLIB = @LIBBSCLIB@
|
|
|
|
LIBBSCGEN_OPT = -fopenmp
|
|
|
|
LIBBSCCPPFLAGS = -I$(LIBBSCDIR)/libbsc -DENABLE_PC_LIBBSC
|
|
|
|
|
2013-11-10 17:39:42 +00:00
|
|
|
TRANSP_SRCS = filters/transpose/transpose.c
|
|
|
|
TRANSP_HDRS = filters/transpose/transpose.h
|
2012-12-12 18:30:47 +00:00
|
|
|
TRANSP_OBJS = $(TRANSP_SRCS:.c=.o)
|
|
|
|
|
2012-12-08 08:49:01 +00:00
|
|
|
KECCAK_SRC_COMMON = crypto/keccak/genKAT.c crypto/keccak/KeccakDuplex.c \
|
|
|
|
crypto/keccak/KeccakNISTInterface.c crypto/keccak/KeccakSponge.c
|
|
|
|
KECCAK_SRC_OPT64 = $(KECCAK_SRC_COMMON) crypto/keccak/KeccakF-1600-opt64.c
|
|
|
|
KECCAK_SRC_OPT64_ASM1 = $(KECCAK_SRC_COMMON) crypto/keccak/KeccakF-1600-x86-64-asm.c
|
|
|
|
KECCAK_SRC_OPT64_ASM2 = crypto/keccak/KeccakF-1600-x86-64-gas.s
|
2014-05-04 06:24:33 +00:00
|
|
|
KECCAK_SRC_OPT64_ASM3 = crypto/keccak/KeccakF-1600-x86-64-gas_yasm.s
|
|
|
|
KECCAK_OBJS_OPT64_ASM2 = $(KECCAK_SRC_OPT64_ASM2:.s=.o)
|
|
|
|
KECCAK_OBJS_OPT64_ASM3 = $(KECCAK_SRC_OPT64_ASM3:.s=.o)
|
2012-12-08 08:49:01 +00:00
|
|
|
|
|
|
|
KECCAK_HDRS_COMMON = crypto/keccak/KeccakDuplex.h crypto/keccak/KeccakNISTInterface.h \
|
|
|
|
crypto/keccak/KeccakSponge.h crypto/keccak/KeccakF-1600-interface.h
|
|
|
|
KECCAK_HDRS_OPT = $(KECCAK_HDRS_COMMON) \
|
|
|
|
crypto/keccak/brg_endian.h crypto/keccak/KeccakF-1600-unrolling.macros
|
|
|
|
KECCAK_HDRS_OPT64 = $(KECCAK_HDRS_OPT) crypto/keccak/KeccakF-1600-opt64-settings.h \
|
|
|
|
crypto/keccak/KeccakF-1600-64.macros crypto/keccak/KeccakF-1600-simd64.macros \
|
|
|
|
crypto/keccak/KeccakF-1600-simd128.macros
|
|
|
|
KECCAK_HDRS_OPT64_ASM = $(KECCAK_HDRS_OPT64)
|
|
|
|
|
|
|
|
KECCAK_SRCS = @KECCAK_SRCS@
|
|
|
|
KECCAK_SRCS_ASM = @KECCAK_SRCS_ASM@
|
|
|
|
KECCAK_HDRS = @KECCAK_HDRS@
|
|
|
|
KECCAK_OBJS = $(KECCAK_SRCS:.c=.o)
|
|
|
|
KECCAK_OBJS_ASM = $(KECCAK_SRCS_ASM:.s=.o)
|
|
|
|
|
2014-05-04 06:24:33 +00:00
|
|
|
CRYPTO_ASM_COMPILE1 = $(COMPILE) $(GEN_OPT) $(CRYPTO_CPPFLAGS) $(CPPFLAGS)
|
2014-05-04 08:02:11 +00:00
|
|
|
CRYPTO_ASM_COMPILE2 = $(YASM_GAS)
|
2014-05-04 06:24:33 +00:00
|
|
|
CRYPTO_ASM_COMPILE = @CRYPTO_ASM_COMPILE@
|
|
|
|
|
2013-11-10 17:39:42 +00:00
|
|
|
BAKFILES = *~ lzma/*~ lzfx/*~ lz4/*~ rabin/*~ bsdiff/*~ filters/lzp/*~ utils/*~ crypto/sha2/*~ \
|
2012-12-05 16:33:09 +00:00
|
|
|
crypto/sha2/intel/*~ crypto/aes/*~ crypto/scrypt/*~ crypto/*~ rabin/global/*~ \
|
2013-10-20 18:24:27 +00:00
|
|
|
delta2/*~ crypto/keccak/*~ transpose/*~ crypto/skein/*~ crypto/keccak/*.o \
|
2013-11-10 17:39:42 +00:00
|
|
|
archive/*~ filters/delta2/*~ filters/packjpg/*~ filters/transpose/*~
|
2012-05-28 14:49:29 +00:00
|
|
|
|
|
|
|
RM = rm -f
|
2012-11-08 16:52:37 +00:00
|
|
|
RM_RF = rm -rf
|
2013-11-10 17:39:42 +00:00
|
|
|
BASE_CPPFLAGS = -I. -I./lzma -I./lzfx -I./lz4 -I./rabin -I./bsdiff -DNODEFAULT_PROPS \
|
2012-08-23 17:28:44 +00:00
|
|
|
-DFILE_OFFSET_BITS=64 -D_REENTRANT -D__USE_SSE_INTRIN__ -D_LZMA_PROB32 \
|
2013-11-10 17:39:42 +00:00
|
|
|
-I./filters/lzp @LIBBSCCPPFLAGS@ -I./crypto/skein -I./utils -I./crypto/sha2 \
|
2013-02-21 17:37:07 +00:00
|
|
|
-I./crypto/scrypt -I./crypto/aes -I./crypto @KEYLEN@ -I./rabin/global \
|
2013-11-10 17:39:42 +00:00
|
|
|
-I./crypto/keccak -I./filters/transpose -I./crypto/blake2 $(EXTRA_CPPFLAGS) \
|
|
|
|
-I./crypto/xsalsa20 -I./archive -pedantic -Wall -I./filters -fno-strict-aliasing \
|
|
|
|
-Wno-unused-but-set-variable -Wno-enum-compare \
|
2014-09-11 13:04:43 +00:00
|
|
|
@COMPAT_CPPFLAGS@ @XSALSA20_DEBUG@ -I@LIBARCHIVE_DIR@/libarchive -I./filters/packjpg \
|
2014-09-14 18:26:38 +00:00
|
|
|
-I./filters/packpnm @ENABLE_WAVPACK@
|
2014-07-24 16:50:30 +00:00
|
|
|
COMMON_CPPFLAGS = $(BASE_CPPFLAGS) -std=gnu99
|
2013-11-10 17:39:42 +00:00
|
|
|
COMMON_CPPFLAGS_cpp = $(BASE_CPPFLAGS)
|
2012-08-26 08:39:24 +00:00
|
|
|
COMMON_VEC_FLAGS = -ftree-vectorize
|
|
|
|
COMMON_LOOP_OPTFLAGS = $(VEC_FLAGS) -floop-interchange -floop-block
|
2014-05-04 08:02:11 +00:00
|
|
|
RPATH=@RPATH@
|
|
|
|
DTAGS=@DTAGS@
|
2014-09-11 13:04:43 +00:00
|
|
|
LDLIBS = -ldl -liconv -L./buildtmp -Wl,$(RPATH)@LIBBZ2_DIR@ -lbz2 -L./buildtmp -Wl,$(RPATH)@LIBZ_DIR@ -lz -lm @LIBBSCLFLAGS@ \
|
|
|
|
-L./buildtmp -Wl,$(RPATH)@OPENSSL_LIBDIR@ -lcrypto @LRT@ -L@LIBARCHIVE_DIR@/.libs -larchive $(EXTRA_LDFLAGS) \
|
2014-09-14 18:26:38 +00:00
|
|
|
-Wl,$(RPATH)/usr/lib$(DTAGS) -Wl,$(RPATH)/usr/lib64$(DTAGS) @WAVPACK_LIBSPEC@
|
2012-08-23 17:28:44 +00:00
|
|
|
OBJS = $(MAINOBJS) $(LZMAOBJS) $(PPMDOBJS) $(LZFXOBJS) $(LZ4OBJS) $(CRCOBJS) \
|
2012-12-04 18:39:47 +00:00
|
|
|
$(RABINOBJS) $(BSDIFFOBJS) $(LZPOBJS) $(DELTA2OBJS) @LIBBSCWRAPOBJ@ $(SKEINOBJS) \
|
2013-01-25 17:25:55 +00:00
|
|
|
$(SKEIN_BLOCK_OBJ) @SHA2ASM_OBJS@ @SHA2_OBJS@ $(KECCAK_OBJS) $(KECCAK_OBJS_ASM) \
|
2013-02-24 14:35:16 +00:00
|
|
|
$(TRANSP_OBJS) $(CRYPTO_OBJS) $(ZLIB_OBJS) $(BZLIB_OBJS) $(XXHASH_OBJS) $(BLAKE2_OBJS) \
|
2014-09-14 18:26:38 +00:00
|
|
|
@CRYPTO_COMPAT_OBJS@ $(CRYPTO_ASM_OBJS) $(ARCHIVEOBJS) $(PJPGOBJS) $(DISPACKOBJS) $(PPNMOBJS) \
|
|
|
|
$(WAVPKOBJS)
|
2012-05-28 14:49:29 +00:00
|
|
|
|
2014-04-26 17:35:14 +00:00
|
|
|
DEBUG_LINK = $(GPP) -pthread @LIBBSCGEN_OPT@ @EXTRA_OPT_FLAGS@ -fopenmp -fPIC
|
2014-05-04 16:33:40 +00:00
|
|
|
DEBUG_COMPILE = $(GCC) -g -c @EXTRA_OPT_FLAGS@ -fPIC @USE_CLANG_AS@
|
|
|
|
DEBUG_COMPILE_cpp = $(GPP) -g -c @EXTRA_OPT_FLAGS@ -fPIC @USE_CLANG_AS@
|
2014-09-14 18:26:38 +00:00
|
|
|
DEBUG_VEC_FLAGS =
|
|
|
|
DEBUG_LOOP_OPTFLAGS =
|
2013-01-26 10:09:10 +00:00
|
|
|
DEBUG_GEN_OPT = -O -fno-omit-frame-pointer @LIBBSCGEN_OPT@ -fopenmp
|
2012-08-26 08:39:24 +00:00
|
|
|
DEBUG_CPPFLAGS = $(COMMON_CPPFLAGS)
|
2014-09-14 18:26:38 +00:00
|
|
|
DEBUG_FPTR_FLAG =
|
2012-08-26 08:39:24 +00:00
|
|
|
|
2014-04-26 17:35:14 +00:00
|
|
|
RELEASE_LINK = $(GPP) -pthread @LIBBSCGEN_OPT@ @EXTRA_OPT_FLAGS@ -fopenmp -fPIC
|
2014-05-04 16:33:40 +00:00
|
|
|
RELEASE_COMPILE = $(GCC) -c @EXTRA_OPT_FLAGS@ -fPIC -fvisibility=hidden @USE_CLANG_AS@
|
|
|
|
RELEASE_COMPILE_cpp = $(GPP) -c @EXTRA_OPT_FLAGS@ -fPIC -fvisibility=hidden @USE_CLANG_AS@
|
2012-08-26 08:39:24 +00:00
|
|
|
RELEASE_VEC_FLAGS = $(COMMON_VEC_FLAGS)
|
|
|
|
RELEASE_LOOP_OPTFLAGS = $(COMMON_LOOP_OPTFLAGS)
|
|
|
|
RELEASE_CPPFLAGS = $(COMMON_CPPFLAGS) -DNDEBUG
|
2013-01-26 10:09:10 +00:00
|
|
|
RELEASE_GEN_OPT = -O3 @LIBBSCGEN_OPT@ -fopenmp
|
2012-12-08 08:49:01 +00:00
|
|
|
RELEASE_FPTR_FLAG = -fomit-frame-pointer
|
2012-08-26 08:39:24 +00:00
|
|
|
|
|
|
|
NO_SLAB_CPPFLAGS = -DDEBUG_NO_SLAB
|
|
|
|
DEBUG_STATS_CPPFLAGS = -DDEBUG_STATS
|
|
|
|
|
2013-06-02 15:24:33 +00:00
|
|
|
LINK.PROG = @LINK@
|
|
|
|
LINK.LIB = @LINK@ -shared
|
2012-08-26 08:39:24 +00:00
|
|
|
COMPILE = @COMPILE@
|
|
|
|
COMPILE_cpp = @COMPILE_cpp@
|
|
|
|
VEC_FLAGS = @VEC_FLAGS@
|
|
|
|
LOOP_OPTFLAGS = @LOOP_OPTFLAGS@
|
|
|
|
CPPFLAGS = @CPPFLAGS@ @NO_SLAB_CPPFLAGS@ @DEBUG_STATS_CPPFLAGS@
|
2013-01-24 18:40:12 +00:00
|
|
|
GEN_OPT = @GEN_OPT@ @SSE_OPT_FLAGS@
|
|
|
|
BASE_OPT = @GEN_OPT@
|
2012-08-26 08:39:24 +00:00
|
|
|
PREFIX=@PREFIX@
|
2014-05-04 08:02:11 +00:00
|
|
|
AVX_OPT_FLAG = -mavx @USE_CLANG_AS@
|
|
|
|
SSE4_OPT_FLAG = -msse4.2 @USE_CLANG_AS@
|
|
|
|
SSE3_OPT_FLAG = -mssse3 @USE_CLANG_AS@
|
|
|
|
SSE2_OPT_FLAG = -msse2 @USE_CLANG_AS@
|
2012-05-28 14:49:29 +00:00
|
|
|
|
2012-12-08 08:49:01 +00:00
|
|
|
SKEIN_FLAGS = $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) @FPTR_FLAG@
|
2013-01-25 17:25:55 +00:00
|
|
|
SHA2_FLAGS = $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) @FPTR_FLAG@
|
2012-12-08 08:49:01 +00:00
|
|
|
KECCAK_FLAGS = $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) @FPTR_FLAG@
|
|
|
|
|
2012-05-28 14:49:29 +00:00
|
|
|
all: $(PROG)
|
|
|
|
|
2012-06-21 14:57:05 +00:00
|
|
|
$(LZMAOBJS): $(LZMASRCS) $(LZMAHDRS)
|
2012-08-08 17:10:58 +00:00
|
|
|
$(COMPILE) $(GEN_OPT) $(CPPFLAGS) $(@:.o=.c) -o $@
|
2012-05-28 14:49:29 +00:00
|
|
|
|
2012-06-21 14:57:05 +00:00
|
|
|
$(CRCOBJS): $(CRCSRCS) $(CRCHDRS)
|
2012-08-08 17:10:58 +00:00
|
|
|
$(COMPILE) $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
2012-05-28 14:49:29 +00:00
|
|
|
|
|
|
|
$(PPMDOBJS): $(PPMDSRCS) $(PPMDHDRS)
|
2012-08-08 17:10:58 +00:00
|
|
|
$(COMPILE) $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
2012-05-28 14:49:29 +00:00
|
|
|
|
2012-06-21 14:57:05 +00:00
|
|
|
$(RABINOBJS): $(RABINSRCS) $(RABINHDRS)
|
2012-12-27 17:36:48 +00:00
|
|
|
$(COMPILE) $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
2012-06-21 14:57:05 +00:00
|
|
|
|
2012-07-19 16:11:07 +00:00
|
|
|
$(BSDIFFOBJS): $(BSDIFFSRCS) $(BSDIFFHDRS)
|
2012-08-08 17:10:58 +00:00
|
|
|
$(COMPILE) $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
2012-07-19 16:11:07 +00:00
|
|
|
|
2012-07-22 18:45:08 +00:00
|
|
|
$(LZFXOBJS): $(LZFXSRCS) $(LZFXHDRS)
|
2012-08-08 17:10:58 +00:00
|
|
|
$(COMPILE) $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
2012-07-25 15:37:36 +00:00
|
|
|
|
|
|
|
$(LZ4OBJS): $(LZ4SRCS) $(LZ4HDRS)
|
2012-08-08 17:10:58 +00:00
|
|
|
$(COMPILE) $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
2012-07-22 18:45:08 +00:00
|
|
|
|
2012-08-23 17:28:44 +00:00
|
|
|
$(LZPOBJS): $(LZPSRCS) $(LZPHDRS)
|
|
|
|
$(COMPILE) $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
|
|
|
|
2012-12-04 18:39:47 +00:00
|
|
|
$(DELTA2OBJS): $(DELTA2SRCS) $(DELTA2HDRS)
|
|
|
|
$(COMPILE) $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
|
|
|
|
2013-11-10 17:39:42 +00:00
|
|
|
$(ARCHIVEOBJS): $(ARCHIVESRCS) $(ARCHIVEHDRS)
|
|
|
|
$(COMPILE) $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
|
|
|
|
|
|
|
$(PJPGOBJS): $(PJPGSRCS) $(PJPGHDRS)
|
2014-05-09 17:23:47 +00:00
|
|
|
$(COMPILE_cpp) $(COMMON_VEC_FLAGS) @SSE_OPT_FLAGS@ @USE_CLANG_AS@ -O2 -fsched-spec-load \
|
2013-11-10 17:39:42 +00:00
|
|
|
$(VEC_FLAGS) -DBUILD_LIB $(COMMON_CPPFLAGS_cpp) $(@:.o=.cpp) -o $@
|
|
|
|
|
2014-09-11 13:04:43 +00:00
|
|
|
$(PPNMOBJS): $(PPNMSRCS) $(PPNMHDRS)
|
|
|
|
$(COMPILE_cpp) $(COMMON_VEC_FLAGS) @SSE_OPT_FLAGS@ @USE_CLANG_AS@ -O2 -fsched-spec-load \
|
|
|
|
$(VEC_FLAGS) -DBUILD_LIB $(COMMON_CPPFLAGS_cpp) $(@:.o=.cpp) -o $@
|
|
|
|
|
2014-09-14 18:26:38 +00:00
|
|
|
$(WAVPKOBJS): $(WAVPKSRCS)
|
|
|
|
[ "x@ENABLE_WAVPACK@" != "x" ] && (cd @WAVPACK_DIR@; make)
|
|
|
|
if [ "x@ENABLE_WAVPACK@" != "x" ]; then \
|
|
|
|
$(COMPILE) $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) -I@WAVPACK_DIR@/include $(@:.o=.c) -o $@; \
|
|
|
|
else \
|
|
|
|
$(COMPILE) $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@; \
|
|
|
|
fi
|
|
|
|
|
2013-11-24 14:15:58 +00:00
|
|
|
$(DISPACKOBJS): $(DISPACKSRCS) $(DISPACKHDRS)
|
2014-05-09 17:23:47 +00:00
|
|
|
$(COMPILE_cpp) $(COMMON_VEC_FLAGS) @DEBUG_STATS_CPPFLAGS@ @SSE_OPT_FLAGS@ @USE_CLANG_AS@ -O2 -fsched-spec-load \
|
2013-11-26 16:13:17 +00:00
|
|
|
-Wno-variadic-macros $(VEC_FLAGS) $(COMMON_CPPFLAGS_cpp) $(@:.o=.cpp) -o $@
|
2013-11-24 14:15:58 +00:00
|
|
|
|
2012-09-01 09:10:15 +00:00
|
|
|
$(SKEIN_BLOCK_OBJ): $(SKEIN_BLOCK_SRC)
|
2012-12-08 08:49:01 +00:00
|
|
|
$(COMPILE) $(SKEIN_FLAGS) $(SKEIN_BLOCK_SRC) -o $@
|
2012-09-01 09:10:15 +00:00
|
|
|
|
2012-08-31 17:06:06 +00:00
|
|
|
$(SKEINOBJS): $(SKEINSRCS) $(SKEINHDRS)
|
2012-12-08 08:49:01 +00:00
|
|
|
$(COMPILE) $(SKEIN_FLAGS) $(@:.o=.c) -o $@
|
2012-08-31 17:06:06 +00:00
|
|
|
|
2013-01-25 17:25:55 +00:00
|
|
|
$(SHA2_OBJS): $(SHA2_SRCS) $(SHA2_HDRS)
|
|
|
|
$(COMPILE) $(SHA2_FLAGS) $(@:.o=.c) -o $@
|
2012-10-06 15:21:23 +00:00
|
|
|
|
2013-01-25 17:25:55 +00:00
|
|
|
$(SHA2ASM_OBJS): $(SHA2ASM_SRCS)
|
2012-10-06 15:21:23 +00:00
|
|
|
$(YASM) -o $@ $(@:.o=.asm)
|
|
|
|
|
2012-12-08 08:49:01 +00:00
|
|
|
$(KECCAK_OBJS): $(KECCAK_SRCS) $(KECCAK_HDRS)
|
|
|
|
$(COMPILE) $(KECCAK_FLAGS) $(@:.o=.c) -o $@
|
|
|
|
|
2014-05-04 06:24:33 +00:00
|
|
|
$(KECCAK_OBJS_OPT64_ASM2): $(KECCAK_SRC_OPT64_ASM2)
|
2012-12-08 08:49:01 +00:00
|
|
|
$(COMPILE) $(KECCAK_FLAGS) $(@:.o=.s) -o $@
|
|
|
|
|
2014-05-04 06:24:33 +00:00
|
|
|
$(KECCAK_OBJS_OPT64_ASM3): $(KECCAK_SRC_OPT64_ASM3)
|
2014-05-04 08:02:11 +00:00
|
|
|
$(YASM_GAS) $(@:.o=.s) -o $@
|
2014-05-04 06:24:33 +00:00
|
|
|
|
|
|
|
$(KECCAK_OBJS_ASM): $(KECCAK_SRCS_ASM) $(KECCAK_HDRS)
|
|
|
|
|
2013-11-30 16:43:33 +00:00
|
|
|
$(LIBBSCWRAPOBJ): $(LIBBSCWRAP)
|
2012-08-27 16:21:55 +00:00
|
|
|
$(COMPILE) $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
|
|
|
|
2012-12-12 18:30:47 +00:00
|
|
|
$(TRANSP_OBJS): $(TRANSP_SRCS) $(TRANSP_HDRS)
|
|
|
|
$(COMPILE) $(GEN_OPT) $(VEC_FLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
|
|
|
|
2013-02-24 18:22:34 +00:00
|
|
|
$(CRYPTO_OBJS): $(CRYPTO_SRCS) $(CRYPTO_HDRS) $(CRYPTO_ASM_OBJS)
|
2012-12-16 17:47:04 +00:00
|
|
|
$(COMPILE) $(GEN_OPT) $(CRYPTO_CPPFLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
|
|
|
|
2013-02-24 18:22:34 +00:00
|
|
|
$(CRYPTO_ASM_OBJS): $(CRYPTO_ASM_SRCS) $(CRYPTO_ASM_HDRS)
|
2014-05-04 06:24:33 +00:00
|
|
|
$(CRYPTO_ASM_COMPILE) -o $@ $(@:.o=.s)
|
2013-02-24 18:22:34 +00:00
|
|
|
|
2013-02-24 14:35:16 +00:00
|
|
|
$(CRYPTO_COMPAT_OBJS): $(CRYPTO_COMPAT_SRCS) $(CRYPTO_COMPAT_HDRS)
|
|
|
|
$(COMPILE) $(GEN_OPT) $(CRYPTO_CPPFLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
|
|
|
|
2012-12-16 17:47:04 +00:00
|
|
|
$(ZLIB_OBJS): $(ZLIB_SRCS) $(ZLIB_HDRS)
|
|
|
|
$(COMPILE) $(GEN_OPT) $(ZLIB_CPPFLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
|
|
|
|
|
|
|
$(BZLIB_OBJS): $(BZLIB_SRCS) $(BZLIB_HDRS)
|
|
|
|
$(COMPILE) $(GEN_OPT) $(BZLIB_CPPFLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
|
|
|
|
2013-01-24 18:40:12 +00:00
|
|
|
$(XXHASH_OBJS): $(XXHASH_SSE4_SRCS) $(XXHASH_SSE2_SRCS) $(XXHASH_HDRS) $(XXHASH_SRCS)
|
|
|
|
$(COMPILE) $(BASE_OPT) $(SSE4_OPT_FLAG) $(CPPFLAGS) $(XXHASH_SSE4_SRCS) -o $(XXHASH_SSE4_SRCS:.c=.o)
|
|
|
|
$(COMPILE) $(BASE_OPT) $(SSE2_OPT_FLAG) $(CPPFLAGS) $(XXHASH_SSE2_SRCS) -o $(XXHASH_SSE2_SRCS:.c=.o)
|
|
|
|
|
2013-01-26 10:09:10 +00:00
|
|
|
$(BLAKE2_OBJS): $(BLAKE2_SRCS) $(BLAKE2_BASE_SRCS) $(BLAKE2_HDRS)
|
|
|
|
$(COMPILE) $(BASE_OPT) $(SSE2_OPT_FLAG) $(CPPFLAGS) $(BLAKE2b_SSE2) -o $(BLAKE2b_SSE2:.c=.o)
|
|
|
|
$(COMPILE) $(BASE_OPT) $(SSE3_OPT_FLAG) $(CPPFLAGS) $(BLAKE2b_SSE3) -o $(BLAKE2b_SSE3:.c=.o)
|
|
|
|
$(COMPILE) $(BASE_OPT) $(SSE4_OPT_FLAG) $(CPPFLAGS) $(BLAKE2b_SSE4) -o $(BLAKE2b_SSE4:.c=.o)
|
|
|
|
$(COMPILE) $(BASE_OPT) $(AVX_OPT_FLAG) $(CPPFLAGS) $(BLAKE2b_AVX) -o $(BLAKE2b_AVX:.c=.o)
|
|
|
|
$(COMPILE) $(BASE_OPT) $(SSE2_OPT_FLAG) $(CPPFLAGS) $(BLAKE2bp_SSE2) -o $(BLAKE2bp_SSE2:.c=.o)
|
|
|
|
$(COMPILE) $(BASE_OPT) $(SSE3_OPT_FLAG) $(CPPFLAGS) $(BLAKE2bp_SSE3) -o $(BLAKE2bp_SSE3:.c=.o)
|
|
|
|
$(COMPILE) $(BASE_OPT) $(SSE4_OPT_FLAG) $(CPPFLAGS) $(BLAKE2bp_SSE4) -o $(BLAKE2bp_SSE4:.c=.o)
|
|
|
|
$(COMPILE) $(BASE_OPT) $(AVX_OPT_FLAG) $(CPPFLAGS) $(BLAKE2bp_AVX) -o $(BLAKE2bp_AVX:.c=.o)
|
|
|
|
|
2012-06-21 14:57:05 +00:00
|
|
|
$(MAINOBJS): $(MAINSRCS) $(MAINHDRS)
|
2012-08-08 17:10:58 +00:00
|
|
|
$(COMPILE) $(GEN_OPT) $(LOOP_OPTFLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
2012-05-28 14:49:29 +00:00
|
|
|
|
2013-06-02 15:24:33 +00:00
|
|
|
$(PROGOBJS): $(PROGSRCS) $(PROGHDRS)
|
|
|
|
$(COMPILE) $(GEN_OPT) $(LOOP_OPTFLAGS) $(CPPFLAGS) $(@:.o=.c) -o $@
|
|
|
|
|
2014-09-11 13:04:43 +00:00
|
|
|
Libarchive:
|
|
|
|
(cd @LIBARCHIVE_DIR@; make)
|
|
|
|
|
2013-11-30 16:43:33 +00:00
|
|
|
$(LIBBSCLIB):
|
2014-05-09 17:28:51 +00:00
|
|
|
(cd $(LIBBSCDIR); make CC=$(GPP) OPTFLAGS="-O3 @SSE_OPT_FLAGS@ @USE_CLANG_AS@")
|
2013-11-30 16:43:33 +00:00
|
|
|
|
2014-09-11 13:04:43 +00:00
|
|
|
$(LIB): Libarchive $(OBJS) $(LIBBSCLIB)
|
2014-05-04 08:02:11 +00:00
|
|
|
$(LINK.LIB) -Wl,-soname$(LIB).$(LIBVER) -o $(LIB).$(LIBVER) $(OBJS) $(LDLIBS)
|
2013-06-02 15:24:33 +00:00
|
|
|
ln -sf $(LIB).$(LIBVER) $(LIB)
|
|
|
|
|
2013-11-30 16:43:33 +00:00
|
|
|
./buildtmp/$(PROG):
|
2013-10-02 15:15:33 +00:00
|
|
|
mkdir -p buildtmp
|
2013-11-30 16:43:33 +00:00
|
|
|
$(LINK.PROG) -o $@ $(PROGOBJS) $(LDLIBS) -L. -l$(LINKLIB)
|
|
|
|
|
2014-09-11 13:04:43 +00:00
|
|
|
$(PROG): $(LIB) $(PROGOBJS) ./buildtmp/$(PROG)
|
2013-08-07 16:33:52 +00:00
|
|
|
cat utils/pcompress.sh | sed "s#<PC_PATH>#`pwd`#" > pcompress
|
|
|
|
chmod +x pcompress
|
2012-05-28 14:49:29 +00:00
|
|
|
|
2012-11-08 16:52:37 +00:00
|
|
|
test: all
|
2012-12-17 15:29:27 +00:00
|
|
|
(cd test; ulimit -c unlimited; sh ./run_test.sh $(TESTSUITE) ) 2>&1 | tee test.log
|
2012-11-08 16:52:37 +00:00
|
|
|
|
2012-05-28 14:49:29 +00:00
|
|
|
clean:
|
2014-05-04 14:25:01 +00:00
|
|
|
$(RM) buildtmp/$(PROG) $(OBJS) $(PROGOBJS) $(BAKFILES) $(LIB) $(LIB).$(LIBVER)
|
2012-11-08 16:52:37 +00:00
|
|
|
$(RM) test.log
|
|
|
|
$(RM_RF) test/datafiles
|
2014-09-11 13:04:43 +00:00
|
|
|
(cd @LIBARCHIVE_DIR@; make clean)
|
2014-09-14 18:26:38 +00:00
|
|
|
[ "x@ENABLE_WAVPACK@" != "x" ] && (cd @WAVPACK_DIR@; make clean)
|
|
|
|
exit 0
|
2012-05-28 14:49:29 +00:00
|
|
|
|
2012-08-26 08:39:24 +00:00
|
|
|
distclean: clean
|
|
|
|
$(RM) Makefile
|
2013-11-30 16:43:33 +00:00
|
|
|
(cd $(LIBBSCDIR); make clean)
|
2014-05-24 18:22:30 +00:00
|
|
|
$(RM_RF) buildtmp
|
2014-09-11 13:04:43 +00:00
|
|
|
(cd @LIBARCHIVE_DIR@; make distclean; rm -rf Makefile.orig tar test test_utils cpio libarchive/test)
|
2014-09-14 18:26:38 +00:00
|
|
|
[ "x@ENABLE_WAVPACK@" != "x" ] && (cd @WAVPACK_DIR@; make distclean)
|
|
|
|
exit 0
|
2012-08-26 08:39:24 +00:00
|
|
|
|
|
|
|
install: $(PROG)
|
2012-12-16 17:47:04 +00:00
|
|
|
@mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
|
|
@chmod 0755 $(DESTDIR)$(PREFIX)/bin
|
2013-08-07 16:33:52 +00:00
|
|
|
@cp buildtmp/$(PROG) $(DESTDIR)$(PREFIX)/bin
|
2012-12-16 17:47:04 +00:00
|
|
|
@chmod 0555 $(DESTDIR)$(PREFIX)/bin/$(PROG)
|
2013-06-02 15:24:33 +00:00
|
|
|
|
|
|
|
@mkdir -p $(DESTDIR)$(PREFIX)/lib
|
|
|
|
@chmod 0755 $(DESTDIR)$(PREFIX)/lib
|
|
|
|
@cp $(LIB).$(LIBVER) $(DESTDIR)$(PREFIX)/lib
|
|
|
|
@chmod 0555 $(DESTDIR)$(PREFIX)/lib/$(LIB).$(LIBVER)
|
|
|
|
@ln -sf $(LIB).$(LIBVER) $(DESTDIR)$(PREFIX)/lib/$(LIB)
|
|
|
|
|
2012-12-16 17:47:04 +00:00
|
|
|
@mkdir -p $(DESTDIR)$(PREFIX)/share/doc/$(PROG)
|
2013-06-02 15:24:33 +00:00
|
|
|
@chmod 0755 $(DESTDIR)$(PREFIX)/share $(DESTDIR)$(PREFIX)/share/doc $(DESTDIR)$(PREFIX)/share/doc/$(PROG)
|
2012-12-16 17:47:04 +00:00
|
|
|
@cp README.md $(DESTDIR)$(PREFIX)/share/doc/$(PROG)/README
|
|
|
|
@chmod 0444 $(DESTDIR)$(PREFIX)/share/doc/$(PROG)/README
|
2012-08-26 08:39:24 +00:00
|
|
|
|
|
|
|
|