blob: 44a5b6fc41744c82727cafc859311fc4e17a4402 [file] [log] [blame]
Reid Spencerfb0c0dc2006-05-29 00:57:22 +00001##===- 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##===----------------------------------------------------------------------===##
9LEVEL = ../..
10TOOLNAME = llvm2cpp
11USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMCore \
12 LLVMSupport.a LLVMbzip2 LLVMSystem.a
13
14include $(LEVEL)/Makefile.common
15
16tryit: 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 $*