mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-20 12:31:40 +00:00
410d1b5dea
much cleaner and easier. Labeled .td as a suffix for tblgen files in Makefile.rules. Modified build rules so that source files generated during the build are placed in the build directory and not the source directory (and not in a Debug directory). This makes the system cleaner and allows us to have a read-only source tree. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8424 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
892 B
Makefile
29 lines
892 B
Makefile
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::
|
|
rm -ff 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
|
|
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
|