URL
https://opencores.org/ocsvn/zipcpu/zipcpu/trunk
[/] [zipcpu/] [trunk/] [sw/] [zasm/] [Makefile] - Diff between revs 110 and 137
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 110 |
Rev 137 |
Line 51... |
Line 51... |
DBGFLAGS= -g -O0
|
DBGFLAGS= -g -O0
|
OPTFLAGS= -O3
|
OPTFLAGS= -O3
|
CCFLAGS= $(DBGFLAGS)
|
CCFLAGS= $(DBGFLAGS)
|
PROGRAMS= zasm zdump zpp
|
PROGRAMS= zasm zdump zpp
|
INSTALLD= ../install/cross-tools/bin
|
INSTALLD= ../install/cross-tools/bin
|
|
CFILES= asmdata.cpp twoc.cpp zdump.cpp zopcodes.cpp zparser.cpp
|
|
HFILES= asmdata.h twoc.h zopcodes.h zparser.h
|
|
|
.PHONY: programs
|
.PHONY: programs
|
all: $(OBJDIR)/ programs
|
all: $(OBJDIR)/ programs
|
|
|
install: zasm zdump zpp
|
install: zasm zdump zpp
|
Line 103... |
Line 105... |
dumpd.txt: z.out zdump
|
dumpd.txt: z.out zdump
|
./zdump z.out > dumpd.txt
|
./zdump z.out > dumpd.txt
|
|
|
define build-depends
|
define build-depends
|
@echo "Building dependency file(s)"
|
@echo "Building dependency file(s)"
|
@$(CXX) -I $(OBJDIR)/ $(CCFLAGS) -MM *.cpp > xd.txt
|
@$(CXX) -I $(OBJDIR)/ $(CCFLAGS) -MM $(CFILES) > xd.txt
|
@$(CXX) -I $(OBJDIR)/ -I. $(CCFLAGS) -MM $(OBJDIR)/zasm.tab.c >> xd.txt
|
@$(CXX) -I $(OBJDIR)/ -I. $(CCFLAGS) -MM $(OBJDIR)/zasm.tab.c >> xd.txt
|
@$(CXX) -I $(OBJDIR)/ -I. $(CCFLAGS) -MM $(OBJDIR)/zpp.cpp >> xd.txt
|
@$(CXX) -I $(OBJDIR)/ -I. $(CCFLAGS) -MM $(OBJDIR)/zpp.cpp >> xd.txt
|
@sed -e 's/^.*.o: /$(OBJDIR)\/&/' < xd.txt > $(OBJDIR)/depends.txt
|
@sed -e 's/^.*.o: /$(OBJDIR)\/&/' < xd.txt > $(OBJDIR)/depends.txt
|
@rm xd.txt
|
@rm xd.txt
|
endef
|
endef
|
|
|
tags: $(SOURCES) $(HEADERS)
|
tags: $(SOURCES) $(HEADERS)
|
@echo "Generating tags"
|
@echo "Generating tags"
|
@ctags *.cpp *.h # $(SOURCES) $(HEADERS)
|
@ctags $(CFILES) $(HFILES) # $(SOURCES) $(HEADERS)
|
|
|
.PHONY: depends
|
.PHONY: depends
|
depends: tags
|
depends: tags
|
$(build-depends)
|
$(build-depends)
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.