You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hexview/Makefile

18 lines
386 B

4 years ago
SRC:=src/*.cpp
INCLUDE:=include/
BUILD:=build
FEATURES?=-DFIXED_ROW_SIZE=24
CFLAGS:= $(FEATURES) -Wall -pedantic -O3 -march=native --std=gnu++20 -fgraphite -flto
LFLAGS:=-O3 -flto -lfmt
4 years ago
DESTDIR?=/usr/local/bin
4 years ago
hexview:
g++ $(SRC) $(CFLAGS) -I$(INCLUDE) -o $(BUILD)/$@ $(LFLAGS)
strip $(BUILD)/$@
clean:
rm -f $(BUILD)/*
4 years ago
install: hexview
cp -f $(BUILD)/hexview $(DESTDIR)/hexview