mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 03:29:40 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3875 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
895 B
Makefile
29 lines
895 B
Makefile
# $Id$
|
|
LEVEL = ../..
|
|
TOOLNAME = burg
|
|
EXTRASOURCES = gram.tab.c
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
gram.tab.c gram.tab.h: gram.yc
|
|
$(VERB) $(BISON) -d $<
|
|
$(VERB) mv -f gram.tab.cc gram.tab.c
|
|
$(VERB) mv -f gram.tab.hc gram.tab.h
|
|
|
|
clean::
|
|
rm -ff gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
|
|
|
|
$(BUILD_ROOT)/Release/lex.o $(BUILD_ROOT)/Profile/lex.o $(BUILD_ROOT)/Debug/lex.o: gram.tab.h
|
|
|
|
doc.dvi: doc.tex
|
|
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
|