From bc8ea7b6b0b06afb5a0e118e9a04abffcd4a0e47 Mon Sep 17 00:00:00 2001 From: Flan's server Date: Mon, 12 Oct 2020 07:16:10 +0000 Subject: [PATCH] update makefile --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index cfb3618..470e90c 100644 --- a/Makefile +++ b/Makefile @@ -2,16 +2,16 @@ 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 -DESTDIR?=/usr/local/bin +CXXFLAGS+= $(FEATURES) -Wall -pedantic -O3 -march=native --std=gnu++20 -fgraphite -flto +LDFLAGS+=-O3 -flto -lfmt +bindir?=/usr/local/bin hexview: - g++ $(SRC) $(CFLAGS) -I$(INCLUDE) -o $(BUILD)/$@ $(LFLAGS) + g++ $(SRC) $(CXXFLAGS) -I$(INCLUDE) -o $(BUILD)/$@ $(LDFLAGS) strip $(BUILD)/$@ clean: rm -f $(BUILD)/* install: - cp -f $(BUILD)/hexview $(DESTDIR)/hexview + cp -f $(BUILD)/hexview $(DESTDIR)$(bindir)/hexview