update makefile

master v1.0.1
Avril 4 years ago
parent 68e59ae37d
commit 61e017f665
Signed by: flanchan
GPG Key ID: 284488987C31F630

2
.gitignore vendored

@ -1,4 +1,4 @@
*~
build/
test*
obj/
hexview

@ -1,8 +1,12 @@
SRC=$(wildcard src/*.cpp)
INCLUDE =include
CXXFLAGS = -Wall -pedantic --std=gnu++20 $(addprefix -I,$(INCLUDE))
CXXFLAGS+= -flto -felide-constructors -fgraphite -O3
LDFLAGS = -lfmt -O3 -flto
_HX_FEAT?= -DFIXED_ROW_SIZE=24
CXXFLAGS?= -pipe -O3 -march=native
CXXFLAGS+= -flto -felide-constructors -fgraphite
CXXFLAGS+= -Wall -pedantic --std=gnu++20 $(addprefix -I,$(INCLUDE))
LDFLAGS?= -O3 -flto
LDFLAGS+= -lfmt
PROJ = hexview
@ -15,7 +19,7 @@ dirs:
@mkdir -p obj/src
obj/%.o: %.cpp
$(CXX) -c $< $(CXXFLAGS) -o $@ $(LDFLAGS)
$(CXX) -c $< $(_HX_FEAT) $(CXXFLAGS) -o $@ $(LDFLAGS)
$(PROJ): $(OBJ)
$(CXX) $^ $(CXXFLAGS) -o $@ $(LDFLAGS)

@ -25,7 +25,7 @@ const static constexpr char ascii_map[256] = {
#endif
#ifdef FIXED_ROW_SIZE
constexpr int ROW_SZ = FIXED_ROW_SIZE;
constexpr const int ROW_SZ = FIXED_ROW_SIZE;
#endif
namespace hv {

Loading…
Cancel
Save