summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/makefile
blob: dba9eac4ceb716d2cc2e529a1158b7bbf4dbf3e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CXXFLAGS=-Wall -Werror -std=c++17 -fno-operator-names -ggdb -O0
LINK.o=$(LINK.cc)

all: level0 level1 habit-starts/rhythm
level0: level0.o liblevel0.a
liblevel0.a: $(patsubst %.cpp,%.o,$(wildcard level-0/*.cpp))
level1: level1.o liblevel1.a
liblevel1.a: $(patsubst %.cpp,%.o,$(wildcard level-0/*.cpp)) $(patsubst %.cpp,%.o,$(wildcard level-1/*.cpp))

habit-starts/rhythm: habit-starts/rhythm.o liblevel1.a

liblevel%.a: level-%/*.hpp
%.a:
	ar ru $@ $^
	ranlib $@

clean:
	-rm *.o level? *.a */*.o