diff options
author | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-09 06:51:41 -0800 |
---|---|---|
committer | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-09 06:51:41 -0800 |
commit | e6f2b95fb543b535b1914bd4954e240dbd724275 (patch) | |
tree | dcd081c1098489bc5c2172e5e535abb56094e763 /starts/meaning-vm/makefile | |
parent | 8ceeb5f83f22ed3db06fc02bb23710ccc1dbbb90 (diff) | |
download | standingwithresilience-e6f2b95fb543b535b1914bd4954e240dbd724275.tar.gz standingwithresilience-e6f2b95fb543b535b1914bd4954e240dbd724275.zip |
positional argument sugar for habits
Diffstat (limited to 'starts/meaning-vm/makefile')
-rw-r--r-- | starts/meaning-vm/makefile | 10 |
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 |