summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/makefile
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2019-12-09 06:51:41 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2019-12-09 06:51:41 -0800
commite6f2b95fb543b535b1914bd4954e240dbd724275 (patch)
treedcd081c1098489bc5c2172e5e535abb56094e763 /starts/meaning-vm/makefile
parent8ceeb5f83f22ed3db06fc02bb23710ccc1dbbb90 (diff)
downloadstandingwithresilience-e6f2b95fb543b535b1914bd4954e240dbd724275.tar.gz
standingwithresilience-e6f2b95fb543b535b1914bd4954e240dbd724275.zip
positional argument sugar for habits
Diffstat (limited to 'starts/meaning-vm/makefile')
-rw-r--r--starts/meaning-vm/makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/starts/meaning-vm/makefile b/starts/meaning-vm/makefile
index fbb8a57..bd0d2bd 100644
--- a/starts/meaning-vm/makefile
+++ b/starts/meaning-vm/makefile
@@ -1,4 +1,4 @@
-CXXFLAGS=-Wall -Werror -std=c++17 -fno-operator-names -ggdb -O0
+CXXFLAGS=-Wall -Werror -std=gnu++17 -fno-operator-names -ggdb -O0
LINK.o=$(LINK.cc)
all: level0 level1 habit-starts/rhythm
@@ -11,10 +11,16 @@ liblevel2.a: $(patsubst %.cpp,%.o,$(wildcard level-0/*.cpp)) $(patsubst %.cpp,%.
habit-starts/rhythm: habit-starts/rhythm.o liblevel2.a
+%.o: %.ii
+ $(CXX) $(CXXFLAGS) -c $^ -o $@
+%.ii: %.cpp
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -E $^ -o $@
+.INTERMEDIATE: $(patsubst %.cpp,%.ii,$(wildcard */*.cpp *.cpp))
+
liblevel%.a: level-%/*.hpp
%.a:
ar ru $@ $^
ranlib $@
clean:
- -rm *.o level? *.a */*.o
+ -rm *.ii *.o level? *.a */*.o */*.ii