aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-10-10 20:43:57 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-10-10 20:43:57 +0000
commit9f41a5fe8534ab5a76d2925f31a20782c135b7d2 (patch)
tree47b92c86e57da2eaacd7f83911678358d757ff2e
parent299b39d35634712993f98c732224078dba2bdac4 (diff)
downloadexternal_llvm-9f41a5fe8534ab5a76d2925f31a20782c135b7d2.zip
external_llvm-9f41a5fe8534ab5a76d2925f31a20782c135b7d2.tar.gz
external_llvm-9f41a5fe8534ab5a76d2925f31a20782c135b7d2.tar.bz2
Initial version of automake Makefile.am file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16885 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/DataStructure/Makefile.am30
-rw-r--r--lib/Analysis/IPA/Makefile.am21
-rw-r--r--lib/Analysis/Makefile.am35
-rw-r--r--lib/AsmParser/Makefile.am19
-rw-r--r--lib/Bytecode/Makefile.am12
-rw-r--r--lib/Bytecode/Reader/Makefile.am21
-rw-r--r--lib/Bytecode/Writer/Makefile.am15
-rw-r--r--lib/CodeGen/InstrSched/Makefile.am23
-rw-r--r--lib/CodeGen/Makefile.am38
-rw-r--r--lib/CodeGen/ModuloScheduling/Makefile.am19
-rw-r--r--lib/CodeGen/SelectionDAG/Makefile.am15
-rw-r--r--lib/Debugger/Makefile.am25
-rw-r--r--lib/ExecutionEngine/Interpreter/Makefile.am17
-rw-r--r--lib/ExecutionEngine/JIT/Makefile.am37
-rw-r--r--lib/ExecutionEngine/Makefile.am17
-rw-r--r--lib/Makefile.am13
-rw-r--r--lib/Support/Makefile.am29
-rw-r--r--lib/System/Makefile.am22
-rw-r--r--lib/Target/SparcV9/ModuloScheduling/Makefile.am19
-rw-r--r--utils/Burg/Makefile.am40
-rw-r--r--utils/TableGen/Makefile.am36
-rw-r--r--utils/fpcmp/Makefile.am16
22 files changed, 519 insertions, 0 deletions
diff --git a/lib/Analysis/DataStructure/Makefile.am b/lib/Analysis/DataStructure/Makefile.am
new file mode 100644
index 0000000..fcb3ffd
--- /dev/null
+++ b/lib/Analysis/DataStructure/Makefile.am
@@ -0,0 +1,30 @@
+#===-- lib/Analysis/DataStructure/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 = libLLVMDataStructure.a
+
+libLLVMDataStructure_a_SOURCES = \
+ BottomUpClosure.cpp\
+ CompleteBottomUp.cpp\
+ DataStructureAA.cpp\
+ DataStructure.cpp\
+ DataStructureOpt.cpp\
+ DataStructureStats.cpp\
+ DependenceGraph.cpp\
+ GraphChecker.cpp\
+ IPModRef.cpp\
+ Local.cpp\
+ MemoryDepAnalysis.cpp\
+ Parallelize.cpp\
+ PgmDependenceGraph.cpp\
+ Printer.cpp\
+ Steensgaard.cpp\
+ TopDownClosure.cpp
diff --git a/lib/Analysis/IPA/Makefile.am b/lib/Analysis/IPA/Makefile.am
new file mode 100644
index 0000000..ac7224f
--- /dev/null
+++ b/lib/Analysis/IPA/Makefile.am
@@ -0,0 +1,21 @@
+#===-- lib/Analysis/IPA/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 = libLLVMIPA.a
+
+libLLVMIPA_a_SOURCES = \
+ Andersens.cpp \
+ CallGraph.cpp \
+ CallGraphSCCPass.cpp \
+ FindUnsafePointerTypes.cpp \
+ FindUsedTypes.cpp \
+ GlobalsModRef.cpp \
+ PrintSCC.cpp
diff --git a/lib/Analysis/Makefile.am b/lib/Analysis/Makefile.am
new file mode 100644
index 0000000..d6e91fd
--- /dev/null
+++ b/lib/Analysis/Makefile.am
@@ -0,0 +1,35 @@
+#===-- lib/Analysis/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 = IPA DataStructure
+
+lib_LIBRARIES = libLLVMAnalysis.a
+
+libLLVMAnalysis_a_SOURCES = \
+ AliasAnalysisCounter.cpp \
+ AliasAnalysis.cpp \
+ AliasAnalysisEvaluator.cpp \
+ AliasSetTracker.cpp \
+ BasicAliasAnalysis.cpp \
+ CFGPrinter.cpp \
+ Expressions.cpp \
+ InstCount.cpp \
+ Interval.cpp \
+ IntervalPartition.cpp \
+ LoadValueNumbering.cpp \
+ LoopInfo.cpp \
+ PostDominators.cpp \
+ ProfileInfo.cpp \
+ ProfileInfoLoader.cpp \
+ ProfileInfoLoaderPass.cpp \
+ ScalarEvolution.cpp \
+ Trace.cpp \
+ ValueNumbering.cpp
diff --git a/lib/AsmParser/Makefile.am b/lib/AsmParser/Makefile.am
new file mode 100644
index 0000000..deedb97
--- /dev/null
+++ b/lib/AsmParser/Makefile.am
@@ -0,0 +1,19 @@
+#===-- lib/AsmParser/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 = LLVMAsmParser.o
+
+BUILT_SOURCES = llvmAsmParser.cpp Lexer.cpp llvmAsmParser.h
+
+LLVMAsmParser_o_SOURCES = Parser.cpp $(BUILT_SOURCES)
+LIBS=
+
+Lexer.o: llvmAsmParser.h
diff --git a/lib/Bytecode/Makefile.am b/lib/Bytecode/Makefile.am
new file mode 100644
index 0000000..0391000
--- /dev/null
+++ b/lib/Bytecode/Makefile.am
@@ -0,0 +1,12 @@
+#===-- lib/Bytecode/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 = Reader Writer
diff --git a/lib/Bytecode/Reader/Makefile.am b/lib/Bytecode/Reader/Makefile.am
new file mode 100644
index 0000000..0285ce9
--- /dev/null
+++ b/lib/Bytecode/Reader/Makefile.am
@@ -0,0 +1,21 @@
+#===-- lib/Bytecode/Reader/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 = LLVMBCReader.o
+
+LLVMBCReader_o_SOURCES = \
+ Analyzer.cpp \
+ ArchiveReader.cpp \
+ LibraryReader.cpp \
+ Reader.cpp \
+ ReaderWrappers.cpp
+
+LIBS=
diff --git a/lib/Bytecode/Writer/Makefile.am b/lib/Bytecode/Writer/Makefile.am
new file mode 100644
index 0000000..61b4ed8
--- /dev/null
+++ b/lib/Bytecode/Writer/Makefile.am
@@ -0,0 +1,15 @@
+#===-- lib/Bytecode/Writer/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 = LLVMBCWriter.o
+
+LLVMBCWriter_o_SOURCES = SlotCalculator.cpp Writer.cpp
+LIBS=
diff --git a/lib/CodeGen/InstrSched/Makefile.am b/lib/CodeGen/InstrSched/Makefile.am
new file mode 100644
index 0000000..f8c1433
--- /dev/null
+++ b/lib/CodeGen/InstrSched/Makefile.am
@@ -0,0 +1,23 @@
+#===-- lib/CodeGen/InstrSched/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 = libLLVMInstrSched.a
+libexec_PROGRAMS = LLVMInstrSched.o
+
+MYSOURCES = \
+ InstrScheduling.cpp \
+ SchedGraphCommon.cpp \
+ SchedGraph.cpp \
+ SchedPriorities.cpp
+
+libLLVMInstrSched_a_SOURCES = $(MYSOURCES)
+LLVMInstrSched_o_SOURCES = $(MYSOURCES)
+LIBS=
diff --git a/lib/CodeGen/Makefile.am b/lib/CodeGen/Makefile.am
new file mode 100644
index 0000000..94a4296
--- /dev/null
+++ b/lib/CodeGen/Makefile.am
@@ -0,0 +1,38 @@
+#===-- lib/CodeGen/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 = InstrSched ModuloScheduling SelectionDAG
+
+libexec_PROGRAMS = LLVMCodeGen.o
+
+LLVMCodeGen_o_SOURCES = \
+ AsmPrinter.cpp \
+ BranchFolding.cpp \
+ IntrinsicLowering.cpp \
+ LiveIntervalAnalysis.cpp \
+ LiveInterval.cpp \
+ LiveVariables.cpp \
+ MachineBasicBlock.cpp \
+ MachineCodeEmitter.cpp \
+ MachineFunction.cpp \
+ MachineInstr.cpp \
+ Passes.cpp \
+ PHIElimination.cpp \
+ PrologEpilogInserter.cpp \
+ RegAllocIterativeScan.cpp \
+ RegAllocLinearScan.cpp \
+ RegAllocLocal.cpp \
+ RegAllocSimple.cpp \
+ TwoAddressInstructionPass.cpp \
+ UnreachableBlockElim.cpp \
+ VirtRegMap.cpp
+
+LIBS=
diff --git a/lib/CodeGen/ModuloScheduling/Makefile.am b/lib/CodeGen/ModuloScheduling/Makefile.am
new file mode 100644
index 0000000..e1fd097
--- /dev/null
+++ b/lib/CodeGen/ModuloScheduling/Makefile.am
@@ -0,0 +1,19 @@
+#===-- lib/CodeGen/ModuloScheduling/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 = LLVMModuloScheduling.o
+
+LLVMModuloScheduling_o_SOURCES = \
+ ModuloScheduling.cpp \
+ MSchedGraph.cpp \
+ MSSchedule.cpp
+
+LIBS=
diff --git a/lib/CodeGen/SelectionDAG/Makefile.am b/lib/CodeGen/SelectionDAG/Makefile.am
new file mode 100644
index 0000000..d0dbf6d
--- /dev/null
+++ b/lib/CodeGen/SelectionDAG/Makefile.am
@@ -0,0 +1,15 @@
+#===-- lib/CodeGen/SelectionDAG/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 = LLVMSelectionDAG.o
+
+LLVMSelectionDAG_o_SOURCES = DAGBuilder.cpp SelectionDAG.cpp
+LIBS=
diff --git a/lib/Debugger/Makefile.am b/lib/Debugger/Makefile.am
new file mode 100644
index 0000000..8bd0e9a
--- /dev/null
+++ b/lib/Debugger/Makefile.am
@@ -0,0 +1,25 @@
+#===-- lib/Debugger/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 = LLVMDebugger.o
+
+LLVMDebugger_o_SOURCES = \
+ Debugger.cpp \
+ ProgramInfo.cpp \
+ RuntimeInfo.cpp \
+ SourceFile.cpp \
+ SourceLanguage-CFamily.cpp \
+ SourceLanguage-CPlusPlus.cpp \
+ SourceLanguage.cpp \
+ SourceLanguage-Unknown.cpp \
+ UnixLocalInferiorProcess.cpp
+
+LIBS=
diff --git a/lib/ExecutionEngine/Interpreter/Makefile.am b/lib/ExecutionEngine/Interpreter/Makefile.am
new file mode 100644
index 0000000..650807f
--- /dev/null
+++ b/lib/ExecutionEngine/Interpreter/Makefile.am
@@ -0,0 +1,17 @@
+#===-- lib/ExecutionEngine/Interpreter/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 = LLVMInterpreter.o
+
+LLVMInterpreter_o_SOURCES = \
+ Execution.cpp ExternalFunctions.cpp Interpreter.cpp
+
+LIBS=
diff --git a/lib/ExecutionEngine/JIT/Makefile.am b/lib/ExecutionEngine/JIT/Makefile.am
new file mode 100644
index 0000000..eb9c589
--- /dev/null
+++ b/lib/ExecutionEngine/JIT/Makefile.am
@@ -0,0 +1,37 @@
+#===-- lib/ExecutionEngine/JIT/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 = LLVMJIT.o
+
+LLVMJIT_o_SOURCES = Emitter.cpp Intercept.cpp JIT.cpp TargetSelect.cpp
+LIBS=
+
+# Enable the X86 JIT if compiling on X86
+if ARCH_X86
+ ENABLE_X86_JIT = 1
+endif
+
+# This flag can also be used on the command line to force inclusion
+# of the X86 JIT on non-X86 hosts
+ ifdef ENABLE_X86_JIT
+ CPPFLAGS += -DENABLE_X86_JIT
+ endif
+
+# Enable the Sparc JIT if compiling on Sparc
+if ARCH_SPARC
+ ENABLE_SPARC_JIT = 1
+endif
+
+# This flag can also be used on the command line to force inclusion
+# of the Sparc JIT on non-Sparc hosts
+ ifdef ENABLE_SPARC_JIT
+ CPPFLAGS += -DENABLE_SPARC_JIT
+ endif
diff --git a/lib/ExecutionEngine/Makefile.am b/lib/ExecutionEngine/Makefile.am
new file mode 100644
index 0000000..a4e2339
--- /dev/null
+++ b/lib/ExecutionEngine/Makefile.am
@@ -0,0 +1,17 @@
+#===-- lib/ExecutionEngine/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 = Interpreter JIT
+
+libexec_PROGRAMS = LLVMExecutionEngine.o
+
+LLVMExecutionEngine_o_SOURCES = ExecutionEngine.cpp
+LIBS=
diff --git a/lib/Makefile.am b/lib/Makefile.am
new file mode 100644
index 0000000..cd524c7
--- /dev/null
+++ b/lib/Makefile.am
@@ -0,0 +1,13 @@
+#===-- lib/Makefile.am -- Makefile For Libraries -----------*- 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 = Analysis AsmParser Bytecode CodeGen Debugger ExecutionEngine Target \
+ Transforms VMCore
diff --git a/lib/Support/Makefile.am b/lib/Support/Makefile.am
new file mode 100644
index 0000000..dce817c
--- /dev/null
+++ b/lib/Support/Makefile.am
@@ -0,0 +1,29 @@
+#===-- lib/Support/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 = libLLVMSupport.a
+
+libLLVMSupport_a_SOURCES = \
+ Annotation.cpp \
+ CommandLine.cpp \
+ Compressor.cpp \
+ Debug.cpp \
+ DynamicLinker.cpp \
+ FileUtilities.cpp \
+ IsInf.cpp \
+ IsNAN.cpp \
+ PluginLoader.cpp \
+ SlowOperationInformer.cpp \
+ Statistic.cpp \
+ StringExtras.cpp \
+ SystemUtils.cpp \
+ Timer.cpp \
+ ToolRunner.cpp
diff --git a/lib/System/Makefile.am b/lib/System/Makefile.am
new file mode 100644
index 0000000..c54ec0c
--- /dev/null
+++ b/lib/System/Makefile.am
@@ -0,0 +1,22 @@
+#===-- lib/System/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 = libLLVMSystem.a
+
+libLLVMSystem_a_SOURCES = \
+ MappedFile.cpp \
+ Memory.cpp \
+ Path.cpp \
+ Process.cpp \
+ Program.cpp \
+ Signals.cpp \
+ SysConfig.cpp \
+ TimeValue.cpp
diff --git a/lib/Target/SparcV9/ModuloScheduling/Makefile.am b/lib/Target/SparcV9/ModuloScheduling/Makefile.am
new file mode 100644
index 0000000..e1fd097
--- /dev/null
+++ b/lib/Target/SparcV9/ModuloScheduling/Makefile.am
@@ -0,0 +1,19 @@
+#===-- lib/CodeGen/ModuloScheduling/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 = LLVMModuloScheduling.o
+
+LLVMModuloScheduling_o_SOURCES = \
+ ModuloScheduling.cpp \
+ MSchedGraph.cpp \
+ MSSchedule.cpp
+
+LIBS=
diff --git a/utils/Burg/Makefile.am b/utils/Burg/Makefile.am
new file mode 100644
index 0000000..a5afb71
--- /dev/null
+++ b/utils/Burg/Makefile.am
@@ -0,0 +1,40 @@
+##===- utils/Burg/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
+
+bin_PROGRAMS = burg
+
+BUILT_SOURCES= gram.tab.c
+burg_SOURCES = be.c burs.c closure.c delta.c fe.c gram.yc item.c lex.c list.c \
+ main.c map.c nonterminal.c operator.c pattern.c plank.c queue.c \
+ rule.c sample.gr string.c symtab.c table.c trim.c zalloc.c \
+ $(BUILT_SOURCES)
+
+EXTRA_DIST = LICENSE.TXT
+
+lex.o: gram.tab.h
+
+gram.tab.c gram.tab.h: gram.yc
+ $(BISON) -o gram.tab.c -d $<
+
+clean::
+ $(VERB) $(RM) -rf gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
+
+doc.dvi: doc.tex
+ $(VERB) latex doc; latex doc
+
+test:: $(TOOLEXENAME_G) sample.gr
+ $(TOOLEXENAME_G) -I <sample.gr >sample.c && $(CC) $(CFLAGS) -o sample sample.c && ./sample
+ $(TOOLEXENAME_G) -I sample.gr >tmp && cmp tmp sample.c
+ $(TOOLEXENAME_G) -I <sample.gr -o tmp && cmp tmp sample.c
+ $(TOOLEXENAME_G) -I sample.gr -o tmp && cmp tmp sample.c
+ $(TOOLEXENAME_G) -I -O0 <sample.gr >tmp && cmp tmp sample.c
+ $(TOOLEXENAME_G) -I -= <sample.gr >tmp && cmp tmp sample.c
+ $(RM) -f tmp sample.c
diff --git a/utils/TableGen/Makefile.am b/utils/TableGen/Makefile.am
new file mode 100644
index 0000000..028f9ee
--- /dev/null
+++ b/utils/TableGen/Makefile.am
@@ -0,0 +1,36 @@
+##===- utils/TableGen/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
+
+bin_PROGRAMS = TableGen
+
+BUILT_SOURCES = FileLexer.cpp FileParser.cpp FileParser.h
+
+TableGen_SOURCES =AsmWriterEmitter.cpp \
+ CodeEmitterGen.cpp \
+ CodeEmitterGen.h \
+ CodeGenInstruction.h \
+ CodeGenRegisters.h \
+ CodeGenTarget.cpp \
+ CodeGenTarget.h \
+ InstrInfoEmitter.cpp \
+ InstrInfoEmitter.h \
+ InstrSelectorEmitter.cpp \
+ InstrSelectorEmitter.h \
+ Record.cpp \
+ Record.h \
+ RegisterInfoEmitter.cpp \
+ RegisterInfoEmitter.h \
+ TableGenBackend.cpp \
+ TableGenBackend.h \
+ TableGen.cpp \
+ $(BUILT_SOURCES)
+
+TableGen_LDADD = $(call GETLIBS,Support,System)
diff --git a/utils/fpcmp/Makefile.am b/utils/fpcmp/Makefile.am
new file mode 100644
index 0000000..a121446
--- /dev/null
+++ b/utils/fpcmp/Makefile.am
@@ -0,0 +1,16 @@
+##===- utils/fpcmp/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
+
+bin_PROGRAMS = fpcmp
+
+fpcmp_SOURCES= fpcmp.cpp
+
+fpcmp_LDADD = $(call GETLIBS,Support)