Initial version of automake Makefile.am file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16894 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-10-10 22:36:40 +00:00
parent 81f76b324e
commit 90a2adc866
20 changed files with 455 additions and 0 deletions

25
tools/analyze/Makefile.am Normal file
View File

@ -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)

View File

@ -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)

18
tools/extract/Makefile.am Normal file
View File

@ -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)

19
tools/gccas/Makefile.am Normal file
View File

@ -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)

19
tools/gccld/Makefile.am Normal file
View File

@ -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)

23
tools/llc/Makefile.am Normal file
View File

@ -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)

23
tools/llee/Makefile.am Normal file
View File

@ -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

53
tools/lli/Makefile.am Normal file
View File

@ -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)

17
tools/llvm-ar/Makefile.am Normal file
View File

@ -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)

17
tools/llvm-as/Makefile.am Normal file
View File

@ -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)

View File

@ -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)

53
tools/llvm-db/Makefile.am Normal file
View File

@ -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)

View File

@ -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)

18
tools/llvm-ld/Makefile.am Normal file
View File

@ -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)

View File

@ -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)

17
tools/llvm-nm/Makefile.am Normal file
View File

@ -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)

View File

@ -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)

View File

@ -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

21
tools/llvmc/Makefile.am Normal file
View File

@ -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)

21
tools/opt/Makefile.am Normal file
View File

@ -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)