diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-06-07 09:32:59 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-06-09 18:31:58 +0200 |
commit | aa0bd54a1de29d5e9795b7b8c249d0c7fde827a8 (patch) | |
tree | 364601610fc14c49043cbe7b5e105298e53ce843 /src/ortho/llvm6/Makefile | |
parent | dcc6dc4eccea56104bbea43e4407ce8b82dbdab2 (diff) | |
download | ghdl-aa0bd54a1de29d5e9795b7b8c249d0c7fde827a8.tar.gz ghdl-aa0bd54a1de29d5e9795b7b8c249d0c7fde827a8.tar.bz2 ghdl-aa0bd54a1de29d5e9795b7b8c249d0c7fde827a8.zip |
LLVM backend with debug info (in C/C++)
Diffstat (limited to 'src/ortho/llvm6/Makefile')
-rw-r--r-- | src/ortho/llvm6/Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/ortho/llvm6/Makefile b/src/ortho/llvm6/Makefile new file mode 100644 index 000000000..31f25c9fa --- /dev/null +++ b/src/ortho/llvm6/Makefile @@ -0,0 +1,34 @@ +ortho_srcdir=.. +GNATFLAGS=-gnaty3befhkmr -gnata -gnatf -gnatwael +CXX=clang++ +LLVM_CONFIG=llvm-config +GNATMAKE=gnatmake +SED=sed +BE=llvm6 + +LLVM_LDFLAGS=$(LLVM_CONFIG) --ldflags --libs --system-libs + +all: $(ortho_exec) + +$(ortho_exec): $(ortho_srcdir)/llvm6/ortho_llvm.ads force llvm-cbindings.o + $(GNATMAKE) -o $@ -aI$(ortho_srcdir)/llvm6 -aI$(ortho_srcdir) \ + $(GNATFLAGS) ortho_code_main -bargs -E \ + -largs llvm-cbindings.o --LINK=$(CXX) \ + $(LDFLAGS) `$(LLVM_LDFLAGS)` + +llvm-cbindings.o: $(ortho_srcdir)/llvm6/llvm-cbindings.cpp + $(CXX) -c `$(LLVM_CONFIG) --cxxflags` $(CFLAGS) -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 |