2004-10-08 01:10:52 +00:00
|
|
|
##===- utils/Burg/Makefile ---------------------------------*- Makefile -*-===##
|
2003-10-20 22:29:16 +00:00
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file was developed by the LLVM research group and is distributed under
|
|
|
|
# the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
2003-10-05 19:27:59 +00:00
|
|
|
LEVEL = ../..
|
2002-09-22 02:40:40 +00:00
|
|
|
TOOLNAME = burg
|
2004-10-22 21:02:08 +00:00
|
|
|
BUILT_SOURCES = gram.tab.c
|
2002-09-20 13:56:32 +00:00
|
|
|
|
2002-09-22 02:40:40 +00:00
|
|
|
include $(LEVEL)/Makefile.common
|
2002-09-17 23:03:30 +00:00
|
|
|
|
2004-10-22 23:05:46 +00:00
|
|
|
gram.tab.c gram.tab.h: gram.yc
|
2003-09-09 20:57:03 +00:00
|
|
|
$(VERB) $(BISON) -o gram.tab.c -d $<
|
2002-09-17 23:03:30 +00:00
|
|
|
|
2003-09-09 20:57:03 +00:00
|
|
|
$(SourceDir)/lex.c: gram.tab.h
|
2002-11-01 03:16:45 +00:00
|
|
|
|
2002-09-22 02:40:40 +00:00
|
|
|
clean::
|
2004-09-03 23:19:53 +00:00
|
|
|
$(VERB) $(RM) -rf gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
|
2002-09-17 23:03:30 +00:00
|
|
|
|
2003-09-09 20:57:03 +00:00
|
|
|
#$(BUILD_OBJ_DIR)/Release/lex.o $(BUILD_OBJ_DIR)/Profile/lex.o $(BUILD_OBJ_DIR)/Debug/lex.o: gram.tab.h
|
2002-09-17 23:03:30 +00:00
|
|
|
|
|
|
|
doc.dvi: doc.tex
|
2004-09-03 23:19:53 +00:00
|
|
|
$(VERB) latex doc; latex doc
|
2002-09-17 23:03:30 +00:00
|
|
|
|
2002-09-20 16:14:47 +00:00
|
|
|
|
2003-06-11 13:57:48 +00:00
|
|
|
test:: $(TOOLEXENAME_G) sample.gr
|
2002-09-22 02:40:40 +00:00
|
|
|
$(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
|
2003-06-30 21:59:07 +00:00
|
|
|
$(RM) -f tmp sample.c
|