summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'starts/meaning-vm/makefile')
-rw-r--r--starts/meaning-vm/makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/starts/meaning-vm/makefile b/starts/meaning-vm/makefile
index 5833e57..243ab85 100644
--- a/starts/meaning-vm/makefile
+++ b/starts/meaning-vm/makefile
@@ -16,10 +16,13 @@ habit-starts/rhythm: habit-starts/rhythm.o liblevel2.a
%.o: %.ii
$(CXX) $(CXXFLAGS) -c $^ -o $@
%.ii: %.cpp
- $(CXX) $(CPPFLAGS) $(CXXFLAGS) -E $^ -o $@
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -E $< -o $@
.INTERMEDIATE: $(patsubst %.cpp,%.ii,$(wildcard */*.cpp) $(wildcard *.cpp))
-liblevel%.a: level-%/*.hpp
+level-0/%.ii: $(wildcard level-0/*.hpp)
+level-1/%.ii: $(wildcard level-0/*.hpp) $(wildcard level-1/*.hpp)
+level-2/%.ii: $(wildcard level-0/*.hpp) $(wildcard level-1/*.hpp) $(wildcard level-2/*.hpp)
+
%.a:
ar ru $@ $^
ranlib $@