summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-10-15 15:01:25 -0700
committerJulian Blake Kongslie2022-10-15 15:01:25 -0700
commitbcf2314f15d68d7a0b94445f99962342b9d4130d (patch)
tree89302b2669e6141ebfc86afc4bd9e19eac0c80bf /Makefile
parentStop cycle after accepting restart in fetch. (diff)
downloadprocmodel-main.tar.xz
Switch to external nanosim dependency.HEADmain
Diffstat (limited to '')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f470f1b..2ffb7e0 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ XXD := xxd
15 15
16override CXXFLAGS += -std=c++20 16override CXXFLAGS += -std=c++20
17 17
18override COMPILE_FLAGS := -MMD -MP -I. 18override COMPILE_FLAGS := -MMD -MP -I. -Inanosim
19override LINK_FLAGS := 19override LINK_FLAGS :=
20 20
21ifneq "$(strip $(PACKAGES))" "" 21ifneq "$(strip $(PACKAGES))" ""
@@ -30,9 +30,16 @@ clean:
30 rm -rf $(BUILD) 30 rm -rf $(BUILD)
31.PHONY: clean 31.PHONY: clean
32 32
33.SECONDARY:
33.SUFFIXES: 34.SUFFIXES:
34 35
35override SOURCES := $(shell find -\( -name build -prune -\) -o -\( -name \*.cpp -print -\)) 36.have_submodules:
37 git submodule update --init --recursive
38 @touch $@
39
40-include .have_submodules
41
42override SOURCES := $(shell find * -\( -name build -prune -\) -o -\( -name \*.cpp -print -\))
36 43
37override OBJECTS := $(addprefix $(BUILD)/, $(addsuffix .o, $(basename $(SOURCES)))) 44override OBJECTS := $(addprefix $(BUILD)/, $(addsuffix .o, $(basename $(SOURCES))))
38override DEPENDS := $(addprefix $(BUILD)/, $(addsuffix .d, $(basename $(SOURCES)))) 45override DEPENDS := $(addprefix $(BUILD)/, $(addsuffix .d, $(basename $(SOURCES))))