clean up Makefile

laumann
Sep 12, 2023, 7:43 PM
XV2V6J3LQ47LHTUTV6GYYEIG5HBSJTTT4LD6H3WNBQE3UU3TXGPAC

Dependencies

  • [2] 2TOQ5727 make: add debugging symbols
  • [3] CYS4NENL move zstdseek files to vendor/zstdseek
  • [4] UHHEEY5J Update README with build instructions using muon + samurai
  • [5] SADDDVGO makefile: add target to generate TAGS file
  • [6] U47EV6JQ makefile: ignore .pijul when generating TAGS
  • [7] EHVLRMEF change: add vertexeq, fix deleted lines duplication
  • [8] 3OHR6ZPH make: prettify output
  • [9] FB67XX5E add argument parsing setup
  • [10] YG4DZB3A add representation of hash, decode dependencies
  • [11] 2C2EF2GK move blake3 files to vendor/blake3
  • [12] B3XLVPNC Add ani.c and initial Makefile
  • [13] 3NA345CN Add zstd_seekable + many headers
  • [14] X36ICMJN Initial import for blake3
  • [15] N3PUHKQN change: fix scoping issue
  • [16] Y26WT3ZF change: decode message, description and timestamp
  • [17] VKLGQREY change: add base32 decode, initial deconstruction of hashed
  • [18] Q7TKZCJP Add initial support for reading the offsets from a (fixed) change
  • [19] ML5XMZEU Makefile: rearrange targets
  • [20] NZNIG2UL Fix lots of warnings, adjust build flags
  • [21] 55SITR55 change: decode replacements
  • [22] HERYCROR make: define _POSIX_C_SOURCE=200809L, -std=c99
  • [23] NETL2N53 Makefile: add check target

Change contents

  • edit in Makefile at line 7
    [6.571][6.0:8](),[6.8][2.0:53](),[2.53][6.58:82](),[6.58][6.58:82]()
    CC = cc
    CFLAGS = -Wall -g -D_POSIX_C_SOURCE=200809L -std=c99
    PKG_CONFIG = pkg-config
  • replacement in Makefile at line 9
    [5.12][6.78676:78779](),[6.94][6.78676:78779](),[6.78676][6.78676:78779](),[6.78779][6.606:607](),[6.606][6.606:607](),[6.607][6.53385:53399](),[6.53399][6.2004:2019](),[6.620][6.2004:2019](),[6.2019][6.3255:3272](),[6.3272][3.270:360](),[3.360][6.285701:285812](),[6.78838][6.285701:285812](),[6.285812][6.3725:3742](),[6.53469][6.3725:3742](),[6.3742][6.3465:3502](),[6.3502][6.2221:2236](),[6.2236][6.53469:53470](),[6.3502][6.53469:53470](),[6.3742][6.53469:53470](),[6.53469][6.53469:53470](),[6.53470][6.285813:286004]()
    ZSTD_LIB = $(shell ${PKG_CONFIG} --libs libzstd)
    XXHASH_LIB = $(shell ${PKG_CONFIG} --libs libxxhash)
    OBJS = ani.o
    OBJS += init.o
    OBJS += change.o
    OBJS += vendor/zstdseek/zstdseek_compress.o
    OBJS += vendor/zstdseek/zstdseek_decompress.o
    OBJS += vendor/blake3/blake3.o
    OBJS += vendor/blake3/blake3_dispatch.o
    OBJS += vendor/blake3/blake3_portable.o
    OBJS += base32.o
    OBJS += bincode.o
    OBJS += scaffold.o
    OBJS += hash.o
    ASM = vendor/blake3/blake3_avx2_x86-64_unix.S
    ASM += vendor/blake3/blake3_avx512_x86-64_unix.S
    ASM += vendor/blake3/blake3_sse2_x86-64_unix.S
    ASM += vendor/blake3/blake3_sse41_x86-64_unix.S
    [5.12]
    [6.0]
    ETAGS = etags
  • replacement in Makefile at line 12
    [6.8][4.270:286]()
    @samu -C build
    [6.8]
    [4.286]
    @ninja -C build
  • replacement in Makefile at line 16
    [6.23][4.313:338]()
    @samu -C build -t clean
    [6.23]
    [6.40]
    @ninja -C build -t clean
  • edit in Makefile at line 22
    [6.128][6.620:634](),[6.2019][6.620:634](),[6.3272][6.620:634](),[6.53605][6.620:634](),[6.78838][6.620:634](),[6.286004][6.620:634](),[6.620][6.620:634](),[6.634][6.3503:3527](),[6.3527][6.53606:53682](),[6.118][6.53606:53682]()
    ani: $(OBJS)
    @printf " LD\t%s\n" $@
    @$(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(OBJS) $(ASM) $(ZSTD_LIB) $(XXHASH_LIB)
  • replacement in Makefile at line 36
    [5.176][5.176:204](),[6.82][6.677:700](),[5.204][6.677:700](),[6.677][6.677:700](),[6.700][6.286005:286061]()
    | xargs etags -a -o TAGS
    .SUFFIXES: .c .o
    .c.o:
    @printf " CC\t%s\n" $@
    @$(CC) $(CFLAGS) -o $*.o -c $<
    [5.176]
    [6.765]
    | xargs $(ETAGS) -a -o TAGS