summaryrefslogtreecommitdiff
path: root/tools/llvm2cpp/Makefile
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-05-29 00:57:22 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-05-29 00:57:22 +0000
commitfb0c0dc9604ffba751bdaf272a7ba8cbd29f5860 (patch)
tree0b2aeef2d20af282b285658bffe4a269797baf90 /tools/llvm2cpp/Makefile
parentbd82277cbbd93f8704a6bf52c4842c5e71fb675f (diff)
downloadllvm-fb0c0dc9604ffba751bdaf272a7ba8cbd29f5860.tar.gz
llvm-fb0c0dc9604ffba751bdaf272a7ba8cbd29f5860.tar.bz2
llvm-fb0c0dc9604ffba751bdaf272a7ba8cbd29f5860.tar.xz
Initial Commit of llvm2cpp
This is a safekeeping commit. The program is not finished. It currently handles modules, types, global variables and function declarations. Blocks and instructions remain to be done. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28528 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm2cpp/Makefile')
-rw-r--r--tools/llvm2cpp/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/llvm2cpp/Makefile b/tools/llvm2cpp/Makefile
new file mode 100644
index 0000000000..44a5b6fc41
--- /dev/null
+++ b/tools/llvm2cpp/Makefile
@@ -0,0 +1,23 @@
+##===- tools/llvm-as/Makefile ------------------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file was developed by the LLVM research group and is distributed under
+# the University of Illinois Open Source License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+LEVEL = ../..
+TOOLNAME = llvm2cpp
+USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMCore \
+ LLVMSupport.a LLVMbzip2 LLVMSystem.a
+
+include $(LEVEL)/Makefile.common
+
+tryit: all-local recurty.cpp globalvars.cpp
+
+%.cpp : %.ll
+ llvm2cpp $*.ll -f -o $*.cpp
+ gcc -I$(LLVM_SRC_ROOT)/include -I$(LLVM_OBJ_ROOT)/include -g \
+ -D__STDC_LIMIT_MACROS -L$(LibDir) $(LibDir)/LLVMCore.o -lLLVMSupport \
+ $(LibDir)/LLVMbzip2.o -lLLVMSystem -lstdc++ \
+ $*.cpp -o $*