OpenCores
URL https://opencores.org/ocsvn/openarty/openarty/trunk

Subversion Repositories openarty

[/] [openarty/] [trunk/] [sw/] [host/] [Makefile] - Diff between revs 30 and 34

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 30 Rev 34
Line 37... Line 37...
##
##
##
##
.PHONY: all
.PHONY: all
PROGRAMS := wbregs netuart wbsettime dumpflash wbprogram netsetup manping zipload zipstate zipdbg
PROGRAMS := wbregs netuart wbsettime dumpflash wbprogram netsetup manping zipload zipstate zipdbg
SCOPES := eqspiscope etxscope erxscope cpuscope
SCOPES := eqspiscope etxscope erxscope cpuscope
all: $(PROGRAMS) $(SCOPES)
all: $(PROGRAMS) $(SCOPES) gps
CXX := g++
CXX := g++
OBJDIR := obj-pc
OBJDIR := obj-pc
BUSOBJS := $(OBJDIR)/ttybus.o $(OBJDIR)/llcomms.o $(OBJDIR)/regdefs.o
BUSOBJS := $(OBJDIR)/ttybus.o $(OBJDIR)/llcomms.o $(OBJDIR)/regdefs.o
SOURCES := wbregs.cpp wbprogram.cpp netuart.cpp wbsettime.cpp           \
SOURCES := wbregs.cpp wbprogram.cpp netuart.cpp wbsettime.cpp           \
        ttybus.cpp llcomms.cpp dumpflash.cpp eqspiscope.cpp flashdrvr.cpp \
        ttybus.cpp llcomms.cpp dumpflash.cpp eqspiscope.cpp flashdrvr.cpp \
Line 56... Line 56...
 
 
%.o: $(OBJDIR)/%.o
%.o: $(OBJDIR)/%.o
$(OBJDIR)/%.o: %.cpp
$(OBJDIR)/%.o: %.cpp
        $(CXX) -g -c $< -o $@
        $(CXX) -g -c $< -o $@
 
 
 
.PHONY: gps
 
gps: $(BUSOBJS) $(OBJDIR)/scopecls.o
 
        @bash -c "if [[ -e gps/Makefile ]]; then cd gps; make --no-print-directory; fi"
 
 
$(OBJDIR)/hsnetuart.o: netuart.cpp
$(OBJDIR)/hsnetuart.o: netuart.cpp
        $(CXX) -g -c -DHIGH_SPEED $< -o $@
        $(CXX) -g -c -DHIGH_SPEED $< -o $@
 
 
.PHONY: clean
.PHONY: clean
clean:
clean:
Line 71... Line 75...
 
 
netuart: $(OBJDIR)/netuart.o
netuart: $(OBJDIR)/netuart.o
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
hsnetuart: $(OBJDIR)/hsnetuart.o
hsnetuart: $(OBJDIR)/hsnetuart.o
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
 
#
 
# Some simple programs that just depend upon the ability to talk to the FPGA,
 
# and little more.
wbsettime: $(OBJDIR)/wbsettime.o $(BUSOBJS)
wbsettime: $(OBJDIR)/wbsettime.o $(BUSOBJS)
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
mtest: $(OBJDIR)/mtest.o $(BUSOBJS)
mtest: $(OBJDIR)/mtest.o $(BUSOBJS)
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
manping: $(OBJDIR)/manping.o $(BUSOBJS)
manping: $(OBJDIR)/manping.o $(BUSOBJS)
Line 85... Line 92...
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
netsetup: $(OBJDIR)/netsetup.o $(BUSOBJS)
netsetup: $(OBJDIR)/netsetup.o $(BUSOBJS)
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
dumpflash: $(OBJDIR)/dumpflash.o $(BUSOBJS)
dumpflash: $(OBJDIR)/dumpflash.o $(BUSOBJS)
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
eqspiscope: $(OBJDIR)/eqspiscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
 
        $(CXX) -g $^ -o $@
#
sdramscope: $(OBJDIR)/sdramscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
# Programs that depend upon not just the bus objects, but the flash driver
        $(CXX) -g $^ -o $@
# as well.
wbprogram: $(OBJDIR)/wbprogram.o $(OBJDIR)/flashdrvr.o $(BUSOBJS)
wbprogram: $(OBJDIR)/wbprogram.o $(OBJDIR)/flashdrvr.o $(BUSOBJS)
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
zipload: $(OBJDIR)/zipload.o $(OBJDIR)/flashdrvr.o $(BUSOBJS)
zipload: $(OBJDIR)/zipload.o $(OBJDIR)/flashdrvr.o $(BUSOBJS)
        $(CXX) -g $^ -lelf -o $@
        $(CXX) -g $^ -lelf -o $@
 
 
 
 
## SCOPES
## SCOPES
 
# These depend upon the scopecls.o, the bus objects, as well as their
 
# main file(s).
 
eqspiscope: $(OBJDIR)/eqspiscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
 
        $(CXX) -g $^ -o $@
 
sdramscope: $(OBJDIR)/sdramscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
 
        $(CXX) -g $^ -o $@
cfgscope: $(OBJDIR)/cfgscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
cfgscope: $(OBJDIR)/cfgscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
cpuscope: $(OBJDIR)/cpuscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
cpuscope: $(OBJDIR)/cpuscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
erxscope: $(OBJDIR)/erxscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
erxscope: $(OBJDIR)/erxscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
Line 109... Line 122...
mdioscope: $(OBJDIR)/mdioscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
mdioscope: $(OBJDIR)/mdioscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
wbuscope: $(OBJDIR)/wbuscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
wbuscope: $(OBJDIR)/wbuscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
 
 
 
#
 
# The ZipDebugger is a bit more difficult to build, as it wants to be able
 
# to disassemble opcodes given to it.  Hence, it depends upon the zparser.cpp,
 
# zopcodes.cpp, and twoc.cpp files from the ZipCPU build directory.
 
#
DBGRAW  := zparser.cpp zopcodes.cpp twoc.cpp
DBGRAW  := zparser.cpp zopcodes.cpp twoc.cpp
DBGSRCS := $(addprefix $(ZIPD)/,$(DBGRAW))
DBGSRCS := $(addprefix $(ZIPD)/,$(DBGRAW))
DBGOBJS := $(addprefix $(OBJDIR)/,$(subst .cpp,.o,$(DBGRAW)))
DBGOBJS := $(addprefix $(OBJDIR)/,$(subst .cpp,.o,$(DBGRAW)))
$(OBJDIR)/zipdbg.o: zipdbg.cpp
$(OBJDIR)/zipdbg.o: zipdbg.cpp
        $(CXX) -g -I$(ZIPD) -c $< -o $@
        $(CXX) -g -I$(ZIPD) -c $< -o $@

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.