summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-07-12 18:23:01 -0700
committerJulian Blake Kongslie2022-07-12 18:23:01 -0700
commitd876f6f12b7719a5f477a6ccabb943a32be05755 (patch)
tree3b1a00ae3fc4ef6e5922a4b6d1cddb6ed20cf737 /Makefile
parentStack storage for uarch stages. (diff)
downloadissim-main.tar.xz
Include diff and diffstat from git.HEADmain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 1 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 6a9baab..cb8b824 100644
--- a/Makefile
+++ b/Makefile
@@ -14,19 +14,6 @@ CXXFLAGS := -Wall -Werror -std=c++20 -fPIC -iquote . ${PKG_FLAGS} ${OPTIMIZE} ${
14 14
15.DEFAULT_GOAL := all 15.DEFAULT_GOAL := all
16 16
17VERSION := $(shell git describe --always --dirty --long --tags 2> /dev/null)
18ifndef VERSION
19VERSION := unknown
20endif
21$(info Version ${VERSION})
22
23define GITTAGCPP =
24#include "git-tag.h"
25
26const char *GIT_TAG = "$(subst ",\",${VERSION})";
27endef
28export GITTAGCPP
29
30ifneq ($(shell which ${IWYU}),) 17ifneq ($(shell which ${IWYU}),)
31iwyu = ${CHRONIC} ${IWYU} -Xiwyu --error -Xiwyu --mapping_file=tools/iwyu.imp -Xiwyu --no_fwd_decls ${CXXFLAGS} $(1) 18iwyu = ${CHRONIC} ${IWYU} -Xiwyu --error -Xiwyu --mapping_file=tools/iwyu.imp -Xiwyu --no_fwd_decls ${CXXFLAGS} $(1)
32else 19else
@@ -97,8 +84,6 @@ endif
97MAINOBJS := $(patsubst %.cpp,build/%.o,$(wildcard *.cpp)) 84MAINOBJS := $(patsubst %.cpp,build/%.o,$(wildcard *.cpp))
98MAINOBJS += build/git-tag.o 85MAINOBJS += build/git-tag.o
99 86
100$(info )
101
102all: ${IWYU_CPPS} issim issim-static 87all: ${IWYU_CPPS} issim issim-static
103 88
104issim: build/issim-dynamic 89issim: build/issim-dynamic
@@ -123,7 +108,7 @@ clean:
123 108
124build/git-tag.cpp: 109build/git-tag.cpp:
125 @mkdir -p $(dir $@) 110 @mkdir -p $(dir $@)
126 @echo "$$GITTAGCPP" > $@ 111 @tools/mkgit.rb > $@
127.PHONY: build/git-tag.cpp 112.PHONY: build/git-tag.cpp
128 113
129build/%.o: %.cpp 114build/%.o: %.cpp