mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
fb0c0dc960
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
24 lines
832 B
Makefile
24 lines
832 B
Makefile
##===- 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 $*
|