summaryrefslogtreecommitdiff
path: root/intellect-framework-from-internet/starts/meaning-vm/makefile
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2020-01-10 14:55:19 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2020-01-10 14:55:19 -0800
commitc8bb547bea279af2bb48c13260f98aa8add07131 (patch)
tree7f64265d514dc50427d2e5d8a70e09a46927dfbd /intellect-framework-from-internet/starts/meaning-vm/makefile
parent5601d1f3324c30651ad3f264ac2d6e7f12ea8b34 (diff)
downloadstandingwithresilience-c8bb547bea279af2bb48c13260f98aa8add07131.tar.gz
standingwithresilience-c8bb547bea279af2bb48c13260f98aa8add07131.zip
move intellect-framework-from-internet into folder
Diffstat (limited to 'intellect-framework-from-internet/starts/meaning-vm/makefile')
-rw-r--r--intellect-framework-from-internet/starts/meaning-vm/makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/intellect-framework-from-internet/starts/meaning-vm/makefile b/intellect-framework-from-internet/starts/meaning-vm/makefile
new file mode 100644
index 0000000..143a9b3
--- /dev/null
+++ b/intellect-framework-from-internet/starts/meaning-vm/makefile
@@ -0,0 +1,31 @@
+# Please support Karl working on this intelligence framework. The framework needs to be quality, so that the rest may function.
+
+CXXFLAGS=-pedantic -Wall -Werror -Wno-error=deprecated-declarations -Wno-gnu-zero-variadic-macro-arguments -std=gnu++17 -fno-operator-names -ggdb -O0
+LINK.o=$(LINK.cc)
+
+all: level0 level1 habit-starts/rhythm level2
+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))
+level2: level2.o liblevel2.a
+liblevel2.a: $(patsubst %.cpp,%.o,$(wildcard level-0/*.cpp)) $(patsubst %.cpp,%.o,$(wildcard level-1/*.cpp)) $(patsubst %.cpp,%.o,$(wildcard level-2/*.cpp))
+
+habit-starts/rhythm: habit-starts/rhythm.o liblevel2.a
+
+%.o: %.ii %.cpp
+ $(CXX) $(CXXFLAGS) -c $*.ii -o $*.o
+%.d: %.cpp
+ @$(CXX) $(CPPFLAGS) $(CXXFLAGS) -MM -MF $*.d -MT "$*.ii $*.o $*.d" -E $*.cpp
+%.ii: %.cpp
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -E $*.cpp -o $*.ii
+.INTERMEDIATE: $(patsubst %.cpp,%.ii,$(wildcard */*.cpp) $(wildcard *.cpp))
+
+-include $(patsubst %.cpp,%.d,$(wildcard level-0/*.cpp) $(wildcard level-1/*.cpp) $(wildcard level-2/*.cpp) $(wildcard level*.cpp))
+
+%.a:
+ ar cr $@ $^
+ ranlib $@
+
+clean:
+ -rm *.ii *.o level? *.a */*.o */*.ii *.d */*.d