summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-09-22 13:04:12 -0700
committerJulian Blake Kongslie2022-09-22 13:04:12 -0700
commit2bd8f7c5a4a455d4447f111cc5fed90af76bf280 (patch)
tree24b0282c7aa916d9c5d9249815cd96b165d8aa1b /Makefile
parentInitial commit. (diff)
downloadprocmodel-2bd8f7c5a4a455d4447f111cc5fed90af76bf280.tar.xz
Support comments in tests
Diffstat (limited to '')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 184f7c0..f470f1b 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,8 @@ DEBUG := -g
9CXX := g++ 9CXX := g++
10CXXFLAGS := $(WARNINGS) $(OPTIMIZE) $(DEBUG) 10CXXFLAGS := $(WARNINGS) $(OPTIMIZE) $(DEBUG)
11 11
12SED := sed
13
12XXD := xxd 14XXD := xxd
13 15
14override CXXFLAGS += -std=c++20 16override CXXFLAGS += -std=c++20
@@ -47,4 +49,4 @@ $(BUILD)/procmodel: $(OBJECTS)
47 49
48$(BUILD)/%.bin: %.hex 50$(BUILD)/%.bin: %.hex
49 @mkdir -p $(dir $@) 51 @mkdir -p $(dir $@)
50 $(XXD) -r -p $< $@ 52 $(SED) -e "s/\\s*#.*//" $< | $(XXD) -r -p > $@