URL
https://opencores.org/ocsvn/zipcpu/zipcpu/trunk
[/] [zipcpu/] [trunk/] [sw/] [zasm/] [Makefile] - Diff between revs 137 and 200
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 137 |
Rev 200 |
Line 58... |
Line 58... |
|
|
.PHONY: programs
|
.PHONY: programs
|
all: $(OBJDIR)/ programs
|
all: $(OBJDIR)/ programs
|
|
|
install: zasm zdump zpp
|
install: zasm zdump zpp
|
|
bash -c "if [[ ! -e $(INSTALLD) ]]; then mkdir -p $(INSTALLD); fi"
|
cp $^ $(INSTALLD)/
|
cp $^ $(INSTALLD)/
|
|
|
programs: $(PROGRAMS)
|
programs: $(PROGRAMS)
|
|
|
$(OBJDIR)/zpp.cpp: zpp.l
|
$(OBJDIR)/zpp.cpp: zpp.l
|
Line 69... |
Line 70... |
$(OBJDIR)/zpp.o: $(OBJDIR)/zpp.cpp
|
$(OBJDIR)/zpp.o: $(OBJDIR)/zpp.cpp
|
$(CXX) -c $(CCFLAGS) $(OBJDIR)/zpp.cpp -o $@
|
$(CXX) -c $(CCFLAGS) $(OBJDIR)/zpp.cpp -o $@
|
zpp: $(OBJDIR)/zpp.o
|
zpp: $(OBJDIR)/zpp.o
|
$(CXX) -o $@ $(CCFLAGS) $^
|
$(CXX) -o $@ $(CCFLAGS) $^
|
|
|
$(OBJDIR)/zasm.tab.h: zasm.y asmdata.h zparser.h
|
$(OBJDIR)/zasm.tab.h: $(OBJDIR)/ zasm.y asmdata.h zparser.h
|
$(YACC) -b $(OBJDIR)/zasm -d zasm.y
|
$(YACC) -b $(OBJDIR)/zasm -d zasm.y
|
|
$(OBJDIR)/zasm.tab.c: $(OBJDIR)/zasm.tab.h
|
|
$(OBJDIR)/zasm.tab.c: ;
|
zasm.output: zasm.y asmdata.h
|
zasm.output: zasm.y asmdata.h
|
$(YACC) -v -b $(OBJDIR)/zasm -d zasm.y
|
$(YACC) -v -b $(OBJDIR)/zasm -d zasm.y
|
$(OBJDIR)/zasm.lex.cpp: zasm.l $(OBJDIR)/zasm.tab.h
|
$(OBJDIR)/zasm.lex.cpp: zasm.l $(OBJDIR)/zasm.tab.h
|
$(LEX) -o $@ zasm.l
|
$(LEX) -o $@ zasm.l
|
$(OBJDIR)/zasm.lex.o: $(OBJDIR)/zasm.lex.cpp
|
$(OBJDIR)/zasm.lex.o: $(OBJDIR)/zasm.lex.cpp
|
Line 120... |
Line 123... |
|
|
.PHONY: depends
|
.PHONY: depends
|
depends: tags
|
depends: tags
|
$(build-depends)
|
$(build-depends)
|
|
|
$(OBJDIR)/depends.txt: $(SOURCES) $(HEADERS)
|
$(OBJDIR)/depends.txt: $(OBJDIR)/ $(SOURCES) $(HEADERS)
|
$(build-depends)
|
$(build-depends)
|
|
|
.PHONY: clean
|
.PHONY: clean
|
clean:
|
clean:
|
rm -rf $(OBJDIR) $(PROGRAMS) z.out dumpd.txt
|
rm -rf $(OBJDIR) $(PROGRAMS) z.out dumpd.txt
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.