Initial version of automake Makefile.am file.
authorReid Spencer <rspencer@reidspencer.com>
Sun, 10 Oct 2004 22:36:40 +0000 (22:36 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 10 Oct 2004 22:36:40 +0000 (22:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16894 91177308-0d34-0410-b5e6-96231b3b80d8

20 files changed:
tools/analyze/Makefile.am [new file with mode: 0644]
tools/bugpoint/Makefile.am [new file with mode: 0644]
tools/extract/Makefile.am [new file with mode: 0644]
tools/gccas/Makefile.am [new file with mode: 0644]
tools/gccld/Makefile.am [new file with mode: 0644]
tools/llc/Makefile.am [new file with mode: 0644]
tools/llee/Makefile.am [new file with mode: 0644]
tools/lli/Makefile.am [new file with mode: 0644]
tools/llvm-ar/Makefile.am [new file with mode: 0644]
tools/llvm-as/Makefile.am [new file with mode: 0644]
tools/llvm-bcanalyzer/Makefile.am [new file with mode: 0644]
tools/llvm-db/Makefile.am [new file with mode: 0644]
tools/llvm-dis/Makefile.am [new file with mode: 0644]
tools/llvm-ld/Makefile.am [new file with mode: 0644]
tools/llvm-link/Makefile.am [new file with mode: 0644]
tools/llvm-nm/Makefile.am [new file with mode: 0644]
tools/llvm-prof/Makefile.am [new file with mode: 0644]
tools/llvm-stub/Makefile.am [new file with mode: 0644]
tools/llvmc/Makefile.am [new file with mode: 0644]
tools/opt/Makefile.am [new file with mode: 0644]

diff --git a/tools/analyze/Makefile.am b/tools/analyze/Makefile.am
new file mode 100644 (file)
index 0000000..7bad54c
--- /dev/null
@@ -0,0 +1,25 @@
+#===-- tools/analyze/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 = analyze
+
+analyze_SOURCES = \
+  AnalysisWrappers.cpp \
+  analyze.cpp \
+  GraphPrinters.cpp
+
+#USEDLIBS = asmparser bcreader analysis ipa datastructure scalaropts.a transforms.a \
+#           target.a scalaropts.a transformutils.a vmcore support LLVMsystem.a
+
+analyze_LDADD = \
+  $(call GETOBJS,AsmParser,BCReader,Core) \
+  $(call GETLIBS,Analysis,IPA,DataStructure,ScalarOpts,Transforms,Target) \
+  $(call GETLIBS,ScalarOpts,TransformUtils,Support,System)
diff --git a/tools/bugpoint/Makefile.am b/tools/bugpoint/Makefile.am
new file mode 100644 (file)
index 0000000..312d491
--- /dev/null
@@ -0,0 +1,27 @@
+#===-- tools/bugpoint/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 = bugpoint
+
+bugpoint_SOURCES = \
+  BugDriver.cpp \
+  bugpoint.cpp \
+  CrashDebugger.cpp \
+  ExecutionDriver.cpp \
+  ExtractFunction.cpp \
+  Miscompilation.cpp \
+  OptimizerDriver.cpp \
+  TestPasses.cpp
+
+bugpoint_LDADD = \
+  $(call GETOBJS,AsmParser,BCReader,BCWriter,Core,ProfilePaths) \
+  $(call GETLIBS,IPO,ScalarOpts,Analysis,Transforms,Instrument) \
+  $(call GETLIBS,DataStructure,IPA,Target,TransformUtils,Support,System)
diff --git a/tools/extract/Makefile.am b/tools/extract/Makefile.am
new file mode 100644 (file)
index 0000000..56977c1
--- /dev/null
@@ -0,0 +1,18 @@
+#===-- tools/extract/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 = extract
+
+extract_SOURCES = extract.cpp
+
+extract_LDADD = \
+  $(call GETOBJS,BCReader,BCWriter,Core) \
+  $(call GETLIBS,IPO,Target,Analysis,TransformUtils,IPA,Support,System)
diff --git a/tools/gccas/Makefile.am b/tools/gccas/Makefile.am
new file mode 100644 (file)
index 0000000..b6b6d0b
--- /dev/null
@@ -0,0 +1,19 @@
+#===-- tools/gccas/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 = gccas
+
+gccas_SOURCES = gccas.cpp
+
+gccas_LDADD = \
+  $(call GETOBJS,AsmParser,BCWriter,Core) \
+  $(call GETLIBS,Transforms,IPO,IPA,ScalarOpts,Analysis,Target,TransformUtils) \
+  $(call GETLIBS,,Support,System)
diff --git a/tools/gccld/Makefile.am b/tools/gccld/Makefile.am
new file mode 100644 (file)
index 0000000..e88b9ab
--- /dev/null
@@ -0,0 +1,19 @@
+#===-- tools/gccld/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 = gccld
+
+gccld_SOURCES = gccld.cpp GenerateCode.cpp Linker.cpp
+
+gccld_LDADD = \
+  $(call GETLIBS,IPO,Transforms,ScalarOpts,Analysis,IPA,TransformUtils,Target) \
+  $(call GETOBJS,BCReader,BCWriter,Core) \
+  $(call GETLIBS,Support,System)
diff --git a/tools/llc/Makefile.am b/tools/llc/Makefile.am
new file mode 100644 (file)
index 0000000..8e19a22
--- /dev/null
@@ -0,0 +1,23 @@
+#===-- tools/llc/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 = llc
+
+llc_SOURCES = llc.cpp
+
+llc_LDADD = \
+  $(call GETOBJS,CWriter,PowerPC,SparcV9,X86,Skeleton,SelectionDAG) \
+  $(call GETOBJS,SparcV9RegAlloc,SparcV9Sched,CodeGen) \
+  $(call GETLIBS,Target) \
+  $(call GETOBJS,SparcV9LiveVar) \
+  $(call GETLIBS,IPA,Transforms,ScalarOpts,Analysis,TransformUtils) \
+  $(call GETOBJS,BCReader,BCWriter,Core) \
+  $(call GETLIBS,Support,System)
diff --git a/tools/llee/Makefile.am b/tools/llee/Makefile.am
new file mode 100644 (file)
index 0000000..36700ff
--- /dev/null
@@ -0,0 +1,23 @@
+#===-- tools/llee/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 = libexecve.a
+
+libexecve_a_SOURCES = ExecveHandler.c StorageProxy.c SysUtils.c
+
+all: llee
+
+llee: Makefile
+       echo exec env LD_PRELOAD=$(DESTLIBCURRENT)/libexecve$(SHLIBEXT) $$\* > $@
+       chmod u+x $@
+
+clean:
+       rm -f /llee
diff --git a/tools/lli/Makefile.am b/tools/lli/Makefile.am
new file mode 100644 (file)
index 0000000..9fa36ee
--- /dev/null
@@ -0,0 +1,53 @@
+#===-- tools/lli/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 = lli
+
+lli_SOURCES = lli.cpp
+
+THEOBJS   = JIT CodeGen ExecutionEngine
+THELIBS   =
+
+# You can enable the X86 JIT on a non-X86 host by setting the flag
+# ENABLE_X86_JIT on the make command line. If not, it will still be
+# enabled automagically on an X86 host.
+if ARCH_X86
+  ENABLE_X86_JIT = 1
+endif
+
+# You can enable the Sparc JIT on a non-Sparc host by setting the flag
+# ENABLE_SPARC_JIT on the make command line. If not, it will still be
+# enabled automagically on an Sparc host.
+if ARCH_SPARC
+  ENABLE_SPARC_JIT = 1
+endif
+
+# What the X86 JIT requires
+ ifdef ENABLE_X86_JIT
+  CPPFLAGS += -DENABLE_X86_JIT
+  THEOBJS  += X86 SelectionDAG
+ endif
+
+# What the Sparc JIT requires
+ ifdef ENABLE_SPARC_JIT
+  CPPFLAGS += -DENABLE_SPARC_JIT
+  THEOBJS  += SparcV9 SparcV9InstrSched SparcV9LiveVar SparcV9RegAlloc 
+  THEOBJS  += ProfilePaths BCWriter
+  THELIBS  += Instrument Transforms IPO IPA DataStructure
+ endif
+
+lli_LDADD = \
+  $(call GETOBJS,Interpreter,$(THEOBJS)) \
+  $(call GETLIBS,$(THELIBS)) \
+  $(call GETOBJS,ScalarOpts) \
+  $(call GETLIBS,Analysis,TransformUtils,Target) \
+  $(call GETOBJS,BCReader,Core) \
+  $(call GETLIBS,Support,System)
diff --git a/tools/llvm-ar/Makefile.am b/tools/llvm-ar/Makefile.am
new file mode 100644 (file)
index 0000000..abc6399
--- /dev/null
@@ -0,0 +1,17 @@
+#===-- tools/llvm-ar/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 = llvm-ar
+
+llvm_ar_SOURCES = llvm-ar.cpp
+llvm_ar_LDADD = \
+  $(call GETOBJS,BCReader,Core) \
+  $(call GETLIBS,Support,System)
diff --git a/tools/llvm-as/Makefile.am b/tools/llvm-as/Makefile.am
new file mode 100644 (file)
index 0000000..52831f4
--- /dev/null
@@ -0,0 +1,17 @@
+#===-- tools/llvm-as/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 = llvm-as
+
+llvm_as_SOURCES = llvm-as.cpp
+llvm_as_LDADD = \
+  $(call GETOBJS,AsmParser,BCWriter,Core) \
+  $(call GETLIBS,Support,System)
diff --git a/tools/llvm-bcanalyzer/Makefile.am b/tools/llvm-bcanalyzer/Makefile.am
new file mode 100644 (file)
index 0000000..a898f7e
--- /dev/null
@@ -0,0 +1,18 @@
+#===-- tools/llvm-bcanalyzer/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 = llvm-bcanalyzer
+
+llvm_bcanalyzer_SOURCES = llvm-bcanalyzer.cpp
+
+llvm_bcanalyzer_LDADD = \
+  $(call GETOBJS,BCReader,Core) \
+  $(call GETLIBS,Support,System)
diff --git a/tools/llvm-db/Makefile.am b/tools/llvm-db/Makefile.am
new file mode 100644 (file)
index 0000000..a7a5ed8
--- /dev/null
@@ -0,0 +1,53 @@
+#===-- tools/llvm-db/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 = llvm-db
+
+llvm_db_SOURCES = CLIDebugger.cpp Commands.cpp llvm-db.cpp
+
+THEOBJS   = JIT CodeGen ExecutionEngine
+THELIBS   =
+
+# You can enable the X86 JIT on a non-X86 host by setting the flag
+# ENABLE_X86_JIT on the make command line. If not, it will still be
+# enabled automagically on an X86 host.
+if ARCH_X86
+  ENABLE_X86_JIT = 1
+endif
+
+# You can enable the Sparc JIT on a non-Sparc host by setting the flag
+# ENABLE_SPARC_JIT on the make command line. If not, it will still be
+# enabled automagically on an Sparc host.
+if ARCH_SPARC
+  ENABLE_SPARC_JIT = 1
+endif
+
+# What the X86 JIT requires
+ ifdef ENABLE_X86_JIT
+  CPPFLAGS += -DENABLE_X86_JIT
+  THEOBJS  += X86 SelectionDAG
+ endif
+
+# What the Sparc JIT requires
+ ifdef ENABLE_SPARC_JIT
+  CPPFLAGS += -DENABLE_SPARC_JIT
+  THEOBJS  += SparcV9 SparcV9InstrSched SparcV9LiveVar SparcV9RegAlloc
+  THEOBJS  += ProfilePaths BCWriter
+  THELIBS  += Instrument Transforms IPO IPA DataStructure
+ endif
+
+llvm_db_LDADD = \
+  $(call GETOBJS,Interpreter,$(THEOBJS)) \
+  $(call GETLIBS,$(THELIBS)) \
+  $(call GETOBJS,ScalarOpts) \
+  $(call GETLIBS,Analysis,TransformUtils,Target) \
+  $(call GETOBJS,Debugger,BCReader,Core) \
+  $(call GETLIBS,Support,Target,System)
diff --git a/tools/llvm-dis/Makefile.am b/tools/llvm-dis/Makefile.am
new file mode 100644 (file)
index 0000000..e379c1c
--- /dev/null
@@ -0,0 +1,17 @@
+#===-- tools/llvm-dis/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 = llvm-dis
+
+llvm_dis_SOURCES = llvm-dis.cpp
+llvm_dis_LDADD = \
+  $(call GETOBJS,BCReader,Core) \
+  $(call GETLIBS,Support,System)
diff --git a/tools/llvm-ld/Makefile.am b/tools/llvm-ld/Makefile.am
new file mode 100644 (file)
index 0000000..678c064
--- /dev/null
@@ -0,0 +1,18 @@
+#===-- tools/llvm-ld/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 = llvm-ld
+
+llvm_ld_SOURCES = GenerateCode.cpp Linker.cpp llvm-ld.cpp
+llvm_ld_LDADD = \
+  $(call GETLIBS,IPO,Transforms,ScalarOpts,Analysis,IPA,TransformUtils,Target) \
+  $(call GETOBJS,BCReader,BCWriter,Core) \
+  $(call GETLIBS,Support,System)
diff --git a/tools/llvm-link/Makefile.am b/tools/llvm-link/Makefile.am
new file mode 100644 (file)
index 0000000..575ff28
--- /dev/null
@@ -0,0 +1,17 @@
+#===-- tools/llvm-link/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 = llvm-link
+
+llvm_link_SOURCES = llvm-link.cpp
+llvm_link_LDADD = \
+  $(call GETOBJS,BCReader,BCWriter,Core) \
+  $(call GETLIBS,Support,System)
diff --git a/tools/llvm-nm/Makefile.am b/tools/llvm-nm/Makefile.am
new file mode 100644 (file)
index 0000000..57f7650
--- /dev/null
@@ -0,0 +1,17 @@
+#===-- tools/llvm-nm/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 = llvm-nm
+
+llvm_nm_SOURCES = llvm-nm.cpp
+llvm_nm_LDADD = \
+  $(call GETOBJS,BCReader,Core) \
+  $(call GETLIBS,Support,System)
diff --git a/tools/llvm-prof/Makefile.am b/tools/llvm-prof/Makefile.am
new file mode 100644 (file)
index 0000000..1e942d3
--- /dev/null
@@ -0,0 +1,18 @@
+#===-- tools/llvm-prof/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 = llvm-prof
+
+llvm_prof_SOURCES = llvm-prof.cpp
+llvm_prof_LDADD = \
+  $(call GETLIBS,Analysis) \
+  $(call GETOBJS,BCReader,Core) \
+  $(call GETLIBS,Support,System)
diff --git a/tools/llvm-stub/Makefile.am b/tools/llvm-stub/Makefile.am
new file mode 100644 (file)
index 0000000..e4c867d
--- /dev/null
@@ -0,0 +1,14 @@
+#===-- tools/llvm-stub/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 = llvm-stub
+
+llvm_stub_SOURCES = llvm-stub.c
diff --git a/tools/llvmc/Makefile.am b/tools/llvmc/Makefile.am
new file mode 100644 (file)
index 0000000..ac1b398
--- /dev/null
@@ -0,0 +1,21 @@
+#===-- tools/llvmc/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 = llvmc
+
+BUILT_SOURCES = ConfigLexer.cpp
+
+llvmc_SOURCES = CompilerDriver.cpp Configuration.cpp llvmc.cpp $(BUILT_SOURCES)
+
+#dist_EXTRA_llvmc_SOURCES = ConfigLexer.l
+
+llvmc_LDADD = $(call GETOBJS,BCReader,Core) \
+              $(call GETLIBS,Support,System)
diff --git a/tools/opt/Makefile.am b/tools/opt/Makefile.am
new file mode 100644 (file)
index 0000000..14cbaad
--- /dev/null
@@ -0,0 +1,21 @@
+#===-- tools/opt/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 = opt
+
+opt_SOURCES = opt.cpp
+
+opt_LDADD = \
+  $(call GETOBJS,BCReader,BCWriter,Instrument,ProfilePaths,ScalarOpts) \
+  $(call GETOBJS,IPO,IPA,DataStructure,Transforms) \
+  $(call GETLIBS,Target) \
+  $(call GETOBJS,Analysis,TransformUtils,Core) \
+  $(call GETLIBS,Support,System)