1 ##===- utils/Burg/Makefile ------------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
11 ExtraSource = gram.tab.c
13 include $(LEVEL)/Makefile.common
15 gram.tab.c gram.tab.h:: gram.yc
16 $(VERB) $(BISON) -o gram.tab.c -d $<
18 $(SourceDir)/lex.c: gram.tab.h
21 $(VERB) $(RM) -rf gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
23 #$(BUILD_OBJ_DIR)/Release/lex.o $(BUILD_OBJ_DIR)/Profile/lex.o $(BUILD_OBJ_DIR)/Debug/lex.o: gram.tab.h
26 $(VERB) latex doc; latex doc
29 test:: $(TOOLEXENAME_G) sample.gr
30 $(TOOLEXENAME_G) -I <sample.gr >sample.c && $(CC) $(CFLAGS) -o sample sample.c && ./sample
31 $(TOOLEXENAME_G) -I sample.gr >tmp && cmp tmp sample.c
32 $(TOOLEXENAME_G) -I <sample.gr -o tmp && cmp tmp sample.c
33 $(TOOLEXENAME_G) -I sample.gr -o tmp && cmp tmp sample.c
34 $(TOOLEXENAME_G) -I -O0 <sample.gr >tmp && cmp tmp sample.c
35 $(TOOLEXENAME_G) -I -= <sample.gr >tmp && cmp tmp sample.c