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.
18 lines
392 B
18 lines
392 B
SRC:=src/*.cpp
|
|
INCLUDE:=include/
|
|
BUILD:=build
|
|
FEATURES?=-DFIXED_ROW_SIZE=24
|
|
CXXFLAGS+= $(FEATURES) -Wall -pedantic -O3 -march=native --std=gnu++20 -fgraphite -flto
|
|
LDFLAGS+=-O3 -flto -lfmt
|
|
bindir?=/usr/local/bin
|
|
|
|
hexview:
|
|
g++ $(SRC) $(CXXFLAGS) -I$(INCLUDE) -o $(BUILD)/$@ $(LDFLAGS)
|
|
strip $(BUILD)/$@
|
|
|
|
clean:
|
|
rm -f $(BUILD)/*
|
|
|
|
install:
|
|
cp -f $(BUILD)/hexview $(DESTDIR)$(bindir)/hexview
|