diff options
Diffstat (limited to 'src/ortho/llvm-nodebug/Makefile')
-rw-r--r-- | src/ortho/llvm-nodebug/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/ortho/llvm-nodebug/Makefile b/src/ortho/llvm-nodebug/Makefile new file mode 100644 index 000000000..68aba29cf --- /dev/null +++ b/src/ortho/llvm-nodebug/Makefile @@ -0,0 +1,32 @@ +ortho_srcdir=.. +GNAT_FLAGS=-gnaty3befhkmr -gnata -gnatf -gnatwael -gnat05 +CXX=clang++ +LLVM_CONFIG=llvm-config +GNATMAKE=gnatmake +SED=sed +BE=llvm-nodebug + +all: $(ortho_exec) + +$(ortho_exec): $(ortho_srcdir)/llvm-nodebug/ortho_llvm.ads force llvm-cbindings.o + $(GNATMAKE) -o $@ -aI$(ortho_srcdir)/llvm-nodebug -aI$(ortho_srcdir) \ + $(GNAT_FLAGS) ortho_code_main -bargs -E \ + -largs llvm-cbindings.o --LINK=$(CXX) \ + `$(LLVM_CONFIG) --ldflags --libs --system-libs` $(LDFLAGS) + +llvm-cbindings.o: $(ortho_srcdir)/llvm-nodebug/llvm-cbindings.cpp + $(CXX) -c `$(LLVM_CONFIG) --cxxflags` -o $@ $< + +clean: + $(RM) -f *.o *.ali ortho_code_main + $(RM) b~*.ad? *~ + +distclean: clean + + +force: + +.PHONY: force all clean + +ORTHO_BASENAME=ortho_llvm +include $(ortho_srcdir)/Makefile.inc |