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