From 90a2adc8669e6a8529a09353bfcee116c998e4f1 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 10 Oct 2004 22:36:40 +0000 Subject: [PATCH] Initial version of automake Makefile.am file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16894 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/analyze/Makefile.am | 25 +++++++++++++++ tools/bugpoint/Makefile.am | 27 ++++++++++++++++ tools/extract/Makefile.am | 18 +++++++++++ tools/gccas/Makefile.am | 19 +++++++++++ tools/gccld/Makefile.am | 19 +++++++++++ tools/llc/Makefile.am | 23 ++++++++++++++ tools/llee/Makefile.am | 23 ++++++++++++++ tools/lli/Makefile.am | 53 +++++++++++++++++++++++++++++++ tools/llvm-ar/Makefile.am | 17 ++++++++++ tools/llvm-as/Makefile.am | 17 ++++++++++ tools/llvm-bcanalyzer/Makefile.am | 18 +++++++++++ tools/llvm-db/Makefile.am | 53 +++++++++++++++++++++++++++++++ tools/llvm-dis/Makefile.am | 17 ++++++++++ tools/llvm-ld/Makefile.am | 18 +++++++++++ tools/llvm-link/Makefile.am | 17 ++++++++++ tools/llvm-nm/Makefile.am | 17 ++++++++++ tools/llvm-prof/Makefile.am | 18 +++++++++++ tools/llvm-stub/Makefile.am | 14 ++++++++ tools/llvmc/Makefile.am | 21 ++++++++++++ tools/opt/Makefile.am | 21 ++++++++++++ 20 files changed, 455 insertions(+) create mode 100644 tools/analyze/Makefile.am create mode 100644 tools/bugpoint/Makefile.am create mode 100644 tools/extract/Makefile.am create mode 100644 tools/gccas/Makefile.am create mode 100644 tools/gccld/Makefile.am create mode 100644 tools/llc/Makefile.am create mode 100644 tools/llee/Makefile.am create mode 100644 tools/lli/Makefile.am create mode 100644 tools/llvm-ar/Makefile.am create mode 100644 tools/llvm-as/Makefile.am create mode 100644 tools/llvm-bcanalyzer/Makefile.am create mode 100644 tools/llvm-db/Makefile.am create mode 100644 tools/llvm-dis/Makefile.am create mode 100644 tools/llvm-ld/Makefile.am create mode 100644 tools/llvm-link/Makefile.am create mode 100644 tools/llvm-nm/Makefile.am create mode 100644 tools/llvm-prof/Makefile.am create mode 100644 tools/llvm-stub/Makefile.am create mode 100644 tools/llvmc/Makefile.am create mode 100644 tools/opt/Makefile.am diff --git a/tools/analyze/Makefile.am b/tools/analyze/Makefile.am new file mode 100644 index 00000000000..7bad54c0011 --- /dev/null +++ b/tools/analyze/Makefile.am @@ -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 index 00000000000..312d4917d4f --- /dev/null +++ b/tools/bugpoint/Makefile.am @@ -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 index 00000000000..56977c15b73 --- /dev/null +++ b/tools/extract/Makefile.am @@ -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 index 00000000000..b6b6d0b834b --- /dev/null +++ b/tools/gccas/Makefile.am @@ -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 index 00000000000..e88b9abfed3 --- /dev/null +++ b/tools/gccld/Makefile.am @@ -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 index 00000000000..8e19a2212b8 --- /dev/null +++ b/tools/llc/Makefile.am @@ -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 index 00000000000..36700ff50de --- /dev/null +++ b/tools/llee/Makefile.am @@ -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 index 00000000000..9fa36eeb7c3 --- /dev/null +++ b/tools/lli/Makefile.am @@ -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 index 00000000000..abc639911c1 --- /dev/null +++ b/tools/llvm-ar/Makefile.am @@ -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 index 00000000000..52831f44991 --- /dev/null +++ b/tools/llvm-as/Makefile.am @@ -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 index 00000000000..a898f7eefa0 --- /dev/null +++ b/tools/llvm-bcanalyzer/Makefile.am @@ -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 index 00000000000..a7a5ed8162a --- /dev/null +++ b/tools/llvm-db/Makefile.am @@ -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 index 00000000000..e379c1c86a2 --- /dev/null +++ b/tools/llvm-dis/Makefile.am @@ -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 index 00000000000..678c064733e --- /dev/null +++ b/tools/llvm-ld/Makefile.am @@ -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 index 00000000000..575ff28a20b --- /dev/null +++ b/tools/llvm-link/Makefile.am @@ -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 index 00000000000..57f7650314e --- /dev/null +++ b/tools/llvm-nm/Makefile.am @@ -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 index 00000000000..1e942d37bd2 --- /dev/null +++ b/tools/llvm-prof/Makefile.am @@ -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 index 00000000000..e4c867d014f --- /dev/null +++ b/tools/llvm-stub/Makefile.am @@ -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 index 00000000000..ac1b398fff0 --- /dev/null +++ b/tools/llvmc/Makefile.am @@ -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 index 00000000000..14cbaade0ef --- /dev/null +++ b/tools/opt/Makefile.am @@ -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) -- 2.34.1