diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-10-10 20:43:57 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-10-10 20:43:57 +0000 |
commit | 9f41a5fe8534ab5a76d2925f31a20782c135b7d2 (patch) | |
tree | 47b92c86e57da2eaacd7f83911678358d757ff2e /utils/Burg | |
parent | 299b39d35634712993f98c732224078dba2bdac4 (diff) | |
download | external_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
Diffstat (limited to 'utils/Burg')
-rw-r--r-- | utils/Burg/Makefile.am | 40 |
1 files changed, 40 insertions, 0 deletions
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 |