aboutsummaryrefslogtreecommitdiffstats
path: root/src/ortho/llvm-nodebug/Makefile
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-04-04 04:48:26 +0200
committerTristan Gingold <tgingold@free.fr>2017-04-04 04:48:26 +0200
commit7eb4e6f322074102bc1b038fdf8c5bea1beb88ff (patch)
tree40963e921bab96ed52eed45ced00ac450e07b15c /src/ortho/llvm-nodebug/Makefile
parent6da8a417b9118f3b26eb64a41a87d3a5b82721a3 (diff)
downloadghdl-7eb4e6f322074102bc1b038fdf8c5bea1beb88ff.tar.gz
ghdl-7eb4e6f322074102bc1b038fdf8c5bea1beb88ff.tar.bz2
ghdl-7eb4e6f322074102bc1b038fdf8c5bea1beb88ff.zip
Simplify build for llvm-nodebug.
Diffstat (limited to 'src/ortho/llvm-nodebug/Makefile')
-rw-r--r--src/ortho/llvm-nodebug/Makefile10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/ortho/llvm-nodebug/Makefile b/src/ortho/llvm-nodebug/Makefile
index 21374f46f..8cb7a9b6b 100644
--- a/src/ortho/llvm-nodebug/Makefile
+++ b/src/ortho/llvm-nodebug/Makefile
@@ -8,7 +8,7 @@ BE=llvm-nodebug
all: $(ortho_exec)
-$(ortho_exec): $(ortho_srcdir)/llvm-nodebug/ortho_llvm.ads force llvm-cbindings.o ortho_code_main.adb
+$(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) \
@@ -17,14 +17,6 @@ $(ortho_exec): $(ortho_srcdir)/llvm-nodebug/ortho_llvm.ads force llvm-cbindings.
llvm-cbindings.o: $(ortho_srcdir)/llvm-nodebug/llvm-cbindings.cpp
$(CXX) -c `$(LLVM_CONFIG) --cxxflags` -o $@ $<
-ortho_code_main.adb:
- echo "with Ortho_Code_Main$(llvm_be_ver);" > ortho_code_main.tmp
- echo "procedure Ortho_Code_Main is" >> ortho_code_main.tmp
- echo "begin" >> ortho_code_main.tmp
- echo " Ortho_Code_Main$(llvm_be_ver);" >> ortho_code_main.tmp
- echo "end Ortho_Code_Main;" >> ortho_code_main.tmp
- mv ortho_code_main.tmp $@
-
clean:
$(RM) -f *.o *.ali ortho_code_main
$(RM) b~*.ad? *~