From 81f76b324e0b22731d06ed34641032de983428b1 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 10 Oct 2004 22:20:40 +0000 Subject: [PATCH] Initial version of automake Makefile.am file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16893 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CBackend/Makefile.am | 15 +++++ lib/Target/Makefile.am | 23 +++++++ lib/Target/PowerPC/Makefile.am | 41 ++++++++++++ lib/Target/Skeleton/Makefile.am | 31 ++++++++++ lib/Target/SparcV9/LiveVar/Makefile.am | 22 +++++++ lib/Target/SparcV9/Makefile.am | 62 +++++++++++++++++++ lib/Target/SparcV9/RegAlloc/Makefile.am | 24 +++++++ lib/Target/X86/Makefile.am | 36 +++++++++++ lib/Transforms/Hello/Makefile.am | 15 +++++ lib/Transforms/IPO/Makefile.am | 35 +++++++++++ lib/Transforms/Instrumentation/Makefile.am | 27 ++++++++ .../Instrumentation/ProfilePaths/Makefile.am | 26 ++++++++ lib/Transforms/Makefile.am | 21 +++++++ lib/Transforms/Scalar/Makefile.am | 50 +++++++++++++++ lib/Transforms/Utils/Makefile.am | 32 ++++++++++ lib/VMCore/Makefile.am | 37 +++++++++++ 16 files changed, 497 insertions(+) create mode 100644 lib/Target/CBackend/Makefile.am create mode 100644 lib/Target/Makefile.am create mode 100644 lib/Target/PowerPC/Makefile.am create mode 100644 lib/Target/Skeleton/Makefile.am create mode 100644 lib/Target/SparcV9/LiveVar/Makefile.am create mode 100644 lib/Target/SparcV9/Makefile.am create mode 100644 lib/Target/SparcV9/RegAlloc/Makefile.am create mode 100644 lib/Target/X86/Makefile.am create mode 100644 lib/Transforms/Hello/Makefile.am create mode 100644 lib/Transforms/IPO/Makefile.am create mode 100644 lib/Transforms/Instrumentation/Makefile.am create mode 100644 lib/Transforms/Instrumentation/ProfilePaths/Makefile.am create mode 100644 lib/Transforms/Makefile.am create mode 100644 lib/Transforms/Scalar/Makefile.am create mode 100644 lib/Transforms/Utils/Makefile.am create mode 100644 lib/VMCore/Makefile.am diff --git a/lib/Target/CBackend/Makefile.am b/lib/Target/CBackend/Makefile.am new file mode 100644 index 00000000000..217b1cdd6dd --- /dev/null +++ b/lib/Target/CBackend/Makefile.am @@ -0,0 +1,15 @@ +#===-- lib/Target/CBackend/Makefile.am ---------------------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +libexec_PROGRAMS = LLVMCWriter.o + +LLVMCWriter_o_SOURCES = Writer.cpp +LIBS= diff --git a/lib/Target/Makefile.am b/lib/Target/Makefile.am new file mode 100644 index 00000000000..62422471a61 --- /dev/null +++ b/lib/Target/Makefile.am @@ -0,0 +1,23 @@ +#===-- lib/Target/Makefile.am ------------------------------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +SUBDIRS = X86 CBackend PowerPC SparcV9 Skeleton + +lib_LIBRARIES = libLLVMTarget.a + +libLLVMTarget_a_SOURCES = \ + MRegisterInfo.cpp \ + TargetData.cpp \ + TargetFrameInfo.cpp \ + TargetInstrInfo.cpp \ + TargetMachine.cpp \ + TargetMachineRegistry.cpp \ + TargetSchedInfo.cpp diff --git a/lib/Target/PowerPC/Makefile.am b/lib/Target/PowerPC/Makefile.am new file mode 100644 index 00000000000..aa97dfbfbc3 --- /dev/null +++ b/lib/Target/PowerPC/Makefile.am @@ -0,0 +1,41 @@ +#===-- lib/Target/PowerPC/Makefile.am ----------------------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +libexec_PROGRAMS = LLVMPowerPC.o + +BUILT_SOURCES = \ + PowerPCGenInstrNames.inc \ + PowerPCGenRegisterNames.inc \ + PowerPCGenCodeEmitter.inc \ + PowerPCGenAsmWriter.inc \ + PPC32GenRegisterInfo.h.inc \ + PPC32GenRegisterInfo.inc \ + PPC32GenInstrInfo.inc \ + PPC64GenRegisterInfo.h.inc \ + PPC64GenRegisterInfo.inc \ + PPC64GenInstrInfo.inc + +LLVMPowerPC_o_SOURCES = \ + PowerPCAsmPrinter.cpp \ + PowerPCBranchSelector.cpp \ + PowerPCTargetMachine.cpp \ + PPC32CodeEmitter.cpp \ + PPC32InstrInfo.cpp \ + PPC32ISelSimple.cpp \ + PPC32RegisterInfo.cpp \ + PPC64CodeEmitter.cpp \ + PPC64InstrInfo.cpp \ + PPC64ISelSimple.cpp \ + PPC64RegisterInfo.cpp + +LIBS= + +$(BUILT_SOURCES) : $(LLVM_TDFILES) $(TBLGEN) diff --git a/lib/Target/Skeleton/Makefile.am b/lib/Target/Skeleton/Makefile.am new file mode 100644 index 00000000000..e9d9d5ab309 --- /dev/null +++ b/lib/Target/Skeleton/Makefile.am @@ -0,0 +1,31 @@ +#===-- lib/Target/Skeleton/Makefile.am ---------------------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + + +include $(top_srcdir)/Makefile.rules.am + +libexec_PROGRAMS = LLVMSkeleton.o + +BUILT_SOURCES = \ + SkeletonGenRegisterInfo.h.inc \ + SkeletonGenRegisterNames.inc \ + SkeletonGenRegisterInfo.inc \ + SkeletonGenInstrNames.inc \ + SkeletonGenInstrInfo.inc + +LLVMSkeleton_o_SOURCES = \ + SkeletonInstrInfo.cpp \ + SkeletonJITInfo.cpp \ + SkeletonRegisterInfo.cpp \ + SkeletonTargetMachine.cpp \ + $(BUILT_SOURCES) + +LIBS= + +$(BUILT_SOURCES) : $(TDFILES) $(TBLGEN) diff --git a/lib/Target/SparcV9/LiveVar/Makefile.am b/lib/Target/SparcV9/LiveVar/Makefile.am new file mode 100644 index 00000000000..b79d3d73ff7 --- /dev/null +++ b/lib/Target/SparcV9/LiveVar/Makefile.am @@ -0,0 +1,22 @@ +#===-- lib/Target/SparcV9/LiveVar/Makefile.am --------------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +lib_LIBRARIES = libLLVMSparcV9LiveVar.a +libexec_PROGRAMS = LLVMSparcV9LiveVar.o + +MYSOURCES = \ + BBLiveVar.cpp \ + FunctionLiveVarInfo.cpp \ + ValueSet.cpp + +libLLVMSparcV9LiveVar_a_SOURCES = $(MYSOURCES) +LLVMSparcV9LiveVar_o_SOURCES = $(MYSOURCES) +LIBS= diff --git a/lib/Target/SparcV9/Makefile.am b/lib/Target/SparcV9/Makefile.am new file mode 100644 index 00000000000..0fd9a069836 --- /dev/null +++ b/lib/Target/SparcV9/Makefile.am @@ -0,0 +1,62 @@ +#===-- lib/Target/SparcV9/Makefile.am ----------------------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +SUBDIRS = LiveVar RegAlloc + +libexec_PROGRAMS = LLVMSparcV9.o + +BUILT_SOURCES = \ + SparcV9CodeEmitter.inc \ + SparcV9.burm.cpp + +LLVMSparcV9_o_SOURCES = \ + EmitBytecodeToAssembly.cpp \ + InternalGlobalMapper.cpp \ + MachineCodeForInstruction.cpp \ + MachineFunctionInfo.cpp \ + MappingInfo.cpp \ + SparcV9AsmPrinter.cpp \ + SparcV9BurgISel.cpp \ + SparcV9CodeEmitter.cpp \ + SparcV9FrameInfo.cpp \ + SparcV9PeepholeOpts.cpp \ + SparcV9PreSelection.cpp \ + SparcV9PrologEpilogInserter.cpp \ + SparcV9RegClassInfo.cpp \ + SparcV9RegInfo.cpp \ + SparcV9RegisterInfo.cpp \ + SparcV9SchedInfo.cpp \ + SparcV9StackSlots.cpp \ + SparcV9TargetMachine.cpp \ + SparcV9TmpInstr.cpp \ + $(BUILT_SOURCES) + +LIBS= + +SparcV9.burg.in1 : SparcV9.burg.in + $(CXX) -E $(AM_CPPFLAGS) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/Ydefine/#define/' > $@ + +SparcV9.burm : SparcV9.burg.in1 + $(CXX) -E -I$(AM_CPPFLAGS) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/^Xinclude/#include/' | $(SED) 's/^Xdefine/#define/' > $@ + +SparcV9.burm.cpp: SparcV9.burm + @echo "Burging `basename $<`" + $(RunBurg) $< -o $@ + +SparcV9CodeEmitter.inc: SparcV9.td $(TABLEGEN_FILES) $(TBLGEN) + @echo "Tblgen'ing `basename $<`" + $(TBLGEN) -I $(srcdir) $< -gen-emitter -o $@ + +TABLEGEN_FILES := $(notdir $(wildcard $(SourceDir)/*.td)) + +clean:: + $(VERB) $(RM) -f SparcV9CodeEmitter.inc SparcV9.burg.in1 SparcV9.burm SparcV9.burm.cpp + diff --git a/lib/Target/SparcV9/RegAlloc/Makefile.am b/lib/Target/SparcV9/RegAlloc/Makefile.am new file mode 100644 index 00000000000..f181d1569b3 --- /dev/null +++ b/lib/Target/SparcV9/RegAlloc/Makefile.am @@ -0,0 +1,24 @@ +#===-- lib/Target/SparcV9/RegAlloc/Makefile.am -------------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +lib_LIBRARIES = libLLVMSparcV9RegAlloc.a +libexec_PROGRAMS = LLVMSparcV9RegAlloc.o + +MYSOURCES = \ + IGNode.cpp \ + InterferenceGraph.cpp \ + LiveRangeInfo.cpp \ + PhyRegAlloc.cpp \ + RegClass.cpp + +libLLVMSparcV9RegAlloc_a_SOURCES = $(MYSOURCES) +LLVMSparcV9RegAlloc_o_SOURCES = $(MYSOURCES) +LIBS= diff --git a/lib/Target/X86/Makefile.am b/lib/Target/X86/Makefile.am new file mode 100644 index 00000000000..8fa7bd995b6 --- /dev/null +++ b/lib/Target/X86/Makefile.am @@ -0,0 +1,36 @@ +#===-- lib/Target/X86/Makefile.am --------------------------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +libexec_PROGRAMS = LLVMX86.o + +BUILT_SOURCES = \ + X86GenRegisterInfo.h.inc \ + X86GenRegisterNames.inc \ + X86GenRegisterInfo.inc \ + X86GenInstrNames.inc \ + X86GenInstrInfo.inc \ + X86GenATTAsmWriter.inc \ + X86GenIntelAsmWriter.inc + +LLVMX86_o_SOURCES = \ + X86AsmPrinter.cpp \ + X86CodeEmitter.cpp \ + X86FloatingPoint.cpp \ + X86InstrInfo.cpp \ + X86ISelPattern.cpp \ + X86ISelSimple.cpp \ + X86PeepholeOpt.cpp \ + X86RegisterInfo.cpp \ + X86TargetMachine.cpp + +LIBS= + +$(BUILT_SOURCES) : $(LLVM_TDFILES) $(TBLGEN) diff --git a/lib/Transforms/Hello/Makefile.am b/lib/Transforms/Hello/Makefile.am new file mode 100644 index 00000000000..75fa34f896f --- /dev/null +++ b/lib/Transforms/Hello/Makefile.am @@ -0,0 +1,15 @@ +#===-- lib/Transforms/Hello/Makefile.am --------------------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +libexec_PROGRAMS = LLVMHello.o + +LLVMHello_o_SOURCES = Hello.cpp +LIBS= diff --git a/lib/Transforms/IPO/Makefile.am b/lib/Transforms/IPO/Makefile.am new file mode 100644 index 00000000000..c10360ff928 --- /dev/null +++ b/lib/Transforms/IPO/Makefile.am @@ -0,0 +1,35 @@ +#===-- lib/Transforms/IPO/Makefile.am ----------------------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +lib_LIBRARIES = libLLVMIPO.a +libexec_PROGRAMS = LLVMIPO.o + +MYSOURCES= \ + ArgumentPromotion.cpp \ + ConstantMerge.cpp \ + DeadArgumentElimination.cpp \ + DeadTypeElimination.cpp \ + ExtractFunction.cpp \ + FunctionResolution.cpp \ + GlobalDCE.cpp \ + GlobalOpt.cpp \ + Inliner.cpp \ + InlineSimple.cpp \ + Internalize.cpp \ + IPConstantPropagation.cpp \ + LoopExtractor.cpp \ + LowerSetJmp.cpp \ + PruneEH.cpp \ + RaiseAllocations.cpp + +libLLVMIPO_a_SOURCES = $(MYSOURCES) +LLVMIPO_o_SOURCES = $(MYSOURCES) +LIBS= diff --git a/lib/Transforms/Instrumentation/Makefile.am b/lib/Transforms/Instrumentation/Makefile.am new file mode 100644 index 00000000000..4e716557ad0 --- /dev/null +++ b/lib/Transforms/Instrumentation/Makefile.am @@ -0,0 +1,27 @@ +#===-- lib/Transforms/Instrumentation/Makefile.am ----------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +SUBDIRS = ProfilePaths + +lib_LIBRARIES = libLLVMInstrument.a +libexec_PROGRAMS = LLVMInstrument.o + +MYSOURCES = \ + BlockProfiling.cpp \ + EdgeProfiling.cpp \ + EmitFunctions.cpp \ + ProfilingUtils.cpp \ + TraceBasicBlocks.cpp \ + TraceValues.cpp + +libLLVMInstrument_a_SOURCES = $(MYSOURCES) +LLVMInstrument_o_SOURCES = $(MYSOURCES) +LIBS= diff --git a/lib/Transforms/Instrumentation/ProfilePaths/Makefile.am b/lib/Transforms/Instrumentation/ProfilePaths/Makefile.am new file mode 100644 index 00000000000..62874a0641f --- /dev/null +++ b/lib/Transforms/Instrumentation/ProfilePaths/Makefile.am @@ -0,0 +1,26 @@ +#===- lib/Transforms/Instrumentation/ProfilePaths/Makefile.am -*- Makefile -*--# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +lib_LIBRARIES = libLLVMProfilePaths.a +libexec_PROGRAMS = LLVMProfilePaths.o + +MYSOURCES= \ + CombineBranch.cpp \ + EdgeCode.cpp \ + GraphAuxiliary.cpp \ + Graph.cpp \ + InstLoops.cpp \ + ProfilePaths.cpp \ + RetracePath.cpp + +libLLVMProfilePaths_a_SOURCES = $(MYSOURCES) +LLVMProfilePaths_o_SOURCES = $(MYSOURCES) +LIBS= diff --git a/lib/Transforms/Makefile.am b/lib/Transforms/Makefile.am new file mode 100644 index 00000000000..cf6ac8089a6 --- /dev/null +++ b/lib/Transforms/Makefile.am @@ -0,0 +1,21 @@ +#===-- lib/Transforms/Makefile.am --------------------------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +SUBDIRS = Utils Instrumentation Scalar IPO + +lib_LIBRARIES = libLLVMTransforms.a +libexec_PROGRAMS = LLVMTransforms.o + +MYSOURCES = ExprTypeConvert.cpp LevelRaise.cpp TransformInternals.cpp + +libLLVMTransforms_a_SOURCES = $(MYSOURCES) +LLVMTransforms_o_SOURCES = $(MYSOURCES) +LIBS= diff --git a/lib/Transforms/Scalar/Makefile.am b/lib/Transforms/Scalar/Makefile.am new file mode 100644 index 00000000000..6271fde32e8 --- /dev/null +++ b/lib/Transforms/Scalar/Makefile.am @@ -0,0 +1,50 @@ +#===-- lib/Transforms/Scalar/Makefile.am -------------------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +lib_LIBRARIES = libLLVMScalarOpts.a +libexec_PROGRAMS = LLVMScalarOpts.o + +MYSOURCES = \ + ADCE.cpp \ + BasicBlockPlacement.cpp \ + ConstantProp.cpp \ + CorrelatedExprs.cpp \ + DCE.cpp \ + DeadStoreElimination.cpp \ + DecomposeMultiDimRefs.cpp \ + GCSE.cpp \ + IndVarSimplify.cpp \ + InstructionCombining.cpp \ + LICM.cpp \ + LoopSimplify.cpp \ + LoopUnroll.cpp \ + LoopUnswitch.cpp \ + LowerAllocations.cpp \ + LowerConstantExprs.cpp \ + LowerGC.cpp \ + LowerInvoke.cpp \ + LowerPacked.cpp \ + LowerSelect.cpp \ + LowerSwitch.cpp \ + Mem2Reg.cpp \ + PRE.cpp \ + Reassociate.cpp \ + ScalarReplAggregates.cpp \ + SCCP.cpp \ + SimplifyCFG.cpp \ + SymbolStripping.cpp \ + TailDuplication.cpp \ + TailRecursionElimination.cpp + +libLLVMScalarOpts_a_SOURCES = $(MYSOURCES) + +LLVMScalarOpts_o_SOURCES = $(MYSOURCES) +LIBS= diff --git a/lib/Transforms/Utils/Makefile.am b/lib/Transforms/Utils/Makefile.am new file mode 100644 index 00000000000..e5a2a667442 --- /dev/null +++ b/lib/Transforms/Utils/Makefile.am @@ -0,0 +1,32 @@ +#===-- lib/Transforms/Utils/Makefile.am --------------------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +lib_LIBRARIES = libLLVMTransformUtils.a +libexec_PROGRAMS = LLVMTransformUtils.o + +MYSOURCES = \ + BasicBlockUtils.cpp \ + BreakCriticalEdges.cpp \ + CloneFunction.cpp \ + CloneModule.cpp \ + CloneTrace.cpp \ + CodeExtractor.cpp \ + DemoteRegToStack.cpp \ + InlineFunction.cpp \ + Local.cpp \ + PromoteMemoryToRegister.cpp \ + SimplifyCFG.cpp \ + UnifyFunctionExitNodes.cpp \ + ValueMapper.cpp + +libLLVMTransformUtils_a_SOURCES = $(MYSOURCES) +LLVMTransformUtils_o_SOURCES = $(MYSOURCES) +LIBS= diff --git a/lib/VMCore/Makefile.am b/lib/VMCore/Makefile.am new file mode 100644 index 00000000000..f9efdf6106b --- /dev/null +++ b/lib/VMCore/Makefile.am @@ -0,0 +1,37 @@ +#===-- lib/VMCore/Makefile.am ------------------------------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by Reid Spencer and is distributed under the +# University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# + +include $(top_srcdir)/Makefile.rules.am + +libexec_PROGRAMS = LLVMCore.o + +LLVMCore_o_SOURCES = \ + AsmWriter.cpp \ + BasicBlock.cpp \ + ConstantFolding.cpp \ + ConstantRange.cpp \ + Constants.cpp \ + Dominators.cpp \ + Function.cpp \ + Globals.cpp \ + InstrTypes.cpp \ + Instruction.cpp \ + Instructions.cpp \ + LeakDetector.cpp \ + Linker.cpp \ + Mangler.cpp \ + Module.cpp \ + ModuleProvider.cpp \ + Pass.cpp \ + SymbolTable.cpp \ + Type.cpp \ + Value.cpp \ + Verifier.cpp + +LIBS= -- 2.34.1