commit 90939b5c745c8cb6e0e39ed01c9102f358b59297
parent 1a81425cdf3a9e6ad99d7340b62677b854f98f5c
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sat, 23 Apr 2022 12:05:05 +0200
fetch submodules and compile cngf-pf from root makefile
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -4,7 +4,13 @@ REPO = cngf-pf
FIGDIRS != find . -maxdepth 1 -type d -name 'fig-*' | sed 's/\.\///'
FIGURES = $(FIGDIRS:=.pdf)
-default: $(FIGURES)
+default: ${REPO}/cngf-pf $(FIGURES)
+
+${REPO}/cngf-pf: ${REPO}/cngf-pf.c
+ CFLAGS="-march=native -O3 -pipe" make -C ${REPO}
+
+${REPO}/cngf-pf.c:
+ git submodule update --init
fig-effective_stress.pdf: $(REPO)/$(REPO)
(cd $(@:.pdf=) && make)