From 9f41a5fe8534ab5a76d2925f31a20782c135b7d2 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 10 Oct 2004 20:43:57 +0000 Subject: Initial version of automake Makefile.am file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16885 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/Burg/Makefile.am | 40 ++++++++++++++++++++++++++++++++++++++++ utils/TableGen/Makefile.am | 36 ++++++++++++++++++++++++++++++++++++ utils/fpcmp/Makefile.am | 16 ++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 utils/Burg/Makefile.am create mode 100644 utils/TableGen/Makefile.am create mode 100644 utils/fpcmp/Makefile.am (limited to 'utils') diff --git a/utils/Burg/Makefile.am b/utils/Burg/Makefile.am new file mode 100644 index 0000000000..a5afb71071 --- /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.c && $(CC) $(CFLAGS) -o sample sample.c && ./sample + $(TOOLEXENAME_G) -I sample.gr >tmp && cmp tmp sample.c + $(TOOLEXENAME_G) -I tmp && cmp tmp sample.c + $(TOOLEXENAME_G) -I -= 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 0000000000..028f9ee94b --- /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 0000000000..a1214465b2 --- /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) -- cgit v1.2.3