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