Reid Spencer | fb0c0dc | 2006-05-29 00:57:22 +0000 | [diff] [blame^] | 1 | ##===- tools/llvm-as/Makefile ------------------------------*- Makefile -*-===## |
| 2 | # |
| 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
| 5 | # This file was developed by the LLVM research group and is distributed under |
| 6 | # the University of Illinois Open Source License. See LICENSE.TXT for details. |
| 7 | # |
| 8 | ##===----------------------------------------------------------------------===## |
| 9 | LEVEL = ../.. |
| 10 | TOOLNAME = llvm2cpp |
| 11 | USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMCore \ |
| 12 | LLVMSupport.a LLVMbzip2 LLVMSystem.a |
| 13 | |
| 14 | include $(LEVEL)/Makefile.common |
| 15 | |
| 16 | tryit: all-local recurty.cpp globalvars.cpp |
| 17 | |
| 18 | %.cpp : %.ll |
| 19 | llvm2cpp $*.ll -f -o $*.cpp |
| 20 | gcc -I$(LLVM_SRC_ROOT)/include -I$(LLVM_OBJ_ROOT)/include -g \ |
| 21 | -D__STDC_LIMIT_MACROS -L$(LibDir) $(LibDir)/LLVMCore.o -lLLVMSupport \ |
| 22 | $(LibDir)/LLVMbzip2.o -lLLVMSystem -lstdc++ \ |
| 23 | $*.cpp -o $* |