mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
3326305f42
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16830 91177308-0d34-0410-b5e6-96231b3b80d8
37 lines
1.3 KiB
Makefile
37 lines
1.3 KiB
Makefile
##===- utils/Burg/Makefile ---------------------------------*- Makefile -*-===##
|
|
#
|
|
# 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.
|
|
#
|
|
##===----------------------------------------------------------------------===##
|
|
LEVEL = ../..
|
|
TOOLNAME = burg
|
|
ExtraSource = gram.tab.c
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
gram.tab.c gram.tab.h:: gram.yc
|
|
$(VERB) $(BISON) -o gram.tab.c -d $<
|
|
|
|
$(SourceDir)/lex.c: gram.tab.h
|
|
|
|
clean::
|
|
$(VERB) $(RM) -rf gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
|
|
|
|
#$(BUILD_OBJ_DIR)/Release/lex.o $(BUILD_OBJ_DIR)/Profile/lex.o $(BUILD_OBJ_DIR)/Debug/lex.o: gram.tab.h
|
|
|
|
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
|