brep -> gg
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
# brep - minimal grep-like utility built on POSIX mmap() + SIMD + threads
|
||||
# gg - Grokkin' Grep: a minimal, fast, portable grep-like file finder.
|
||||
#
|
||||
# Build: make
|
||||
# Clean: make clean
|
||||
# Install: make install PREFIX=/usr/local
|
||||
|
||||
CC ?= gcc
|
||||
CFLAGS ?= -O2 -std=c11 -Wall -Wextra
|
||||
CFLAGS ?= -O2 -s -std=c11 -Wall -Wextra
|
||||
CPPFLAGS += -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE
|
||||
LDFLAGS ?=
|
||||
LDLIBS += -lpthread
|
||||
# Enable AVX2 for the SIMD matcher (needs a 2008+ Intel/AMD CPU).
|
||||
# Drop -mavx2 if targeting older hardware; the matcher still compiles.
|
||||
# The matcher uses POSIX memmem(), which glibc accelerates with SIMD on
|
||||
# whatever CPU you run on. -mavx2 is harmless but unnecessary; drop it for
|
||||
# maximum portability (e.g. make MARCH="").
|
||||
MARCH ?= -mavx2
|
||||
|
||||
BINARY := brep
|
||||
SRC := brep.c
|
||||
BINARY := gg
|
||||
SRC := gg.c
|
||||
PREFIX ?= /usr/local
|
||||
BINDIR := $(PREFIX)/bin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user