2022-12-19 14:37:51 +00:00
|
|
|
.DEFAULT_GOAL := all
|
|
|
|
|
|
|
|
CXX=clang++
|
|
|
|
CXXFLAGS=-g -std=c++17 -Wall -pedantic -DOIL_AOT_COMPILATION=1
|
|
|
|
|
|
|
|
.PHONY: oilgen
|
|
|
|
|
|
|
|
INC=-I../../include
|
|
|
|
|
|
|
|
OilVectorOfStrings.o: OilVectorOfStrings.cpp
|
|
|
|
${CXX} ${CXXFLAGS} ${INC} OilVectorOfStrings.cpp -c -o OilVectorOfStrings.o
|
|
|
|
|
|
|
|
oilgen:
|
|
|
|
rm -f oilgen
|
2023-04-17 19:13:59 +01:00
|
|
|
(cd ../../ && make oid)
|
2022-12-19 14:37:51 +00:00
|
|
|
ln -s ../../build/oilgen oilgen
|
|
|
|
|
2023-03-07 17:45:00 +00:00
|
|
|
OilVectorOfStrings: oilgen OilVectorOfStrings.o
|
|
|
|
${CXX} ${CXXFLAGS} OilVectorOfStrings.o $$(./oilgen --exit-code -o JitCompiled.o -c ../../build/sample.oid.toml -d OilVectorOfStrings.o) -o OilVectorOfStrings
|
2022-12-19 14:37:51 +00:00
|
|
|
|
|
|
|
all: OilVectorOfStrings
|
|
|
|
|
|
|
|
clean:
|
2023-03-07 17:45:00 +00:00
|
|
|
rm -f oilgen OilVectorOfStrings{,.o,.o.dwarf} JitCompiled.*.o jit.cpp
|
2022-12-19 14:37:51 +00:00
|
|
|
|