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

Subversion Repositories openarty

[/] [openarty/] [trunk/] [sw/] [host/] [Makefile] - Diff between revs 6 and 14

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

Rev 6 Rev 14
Line 35... Line 35...
##
##
################################################################################
################################################################################
##
##
##
##
.PHONY: all
.PHONY: all
PROGRAMS := wbregs netuart wbsettime dumpflash # wbprogram
PROGRAMS := wbregs netuart wbsettime dumpflash wbprogram
all: $(PROGRAMS)
all: $(PROGRAMS)
CXX := g++
CXX := g++
OBJDIR := obj-pc
OBJDIR := obj-pc
# ZIPD := /home/dan/work/rnd/zipcpu/trunk/sw/zasm
 
BUSOBJS := $(OBJDIR)/ttybus.o $(OBJDIR)/llcomms.o $(OBJDIR)/regdefs.o
BUSOBJS := $(OBJDIR)/ttybus.o $(OBJDIR)/llcomms.o $(OBJDIR)/regdefs.o
# BUSOBJS := $(OBJDIR)/portbus.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
        ttybus.cpp llcomms.cpp dumpflash.cpp eqspiscope.cpp flashdrvr.cpp \
        # ziprun.cpp
        portbus.cpp regdefs.cpp scopecls.cpp sdramscope.cpp ttybus.cpp  \
        # dumpmem.cpp nmea.cpp display.cpp
        cfgscope.cpp
 
        # ziprun.cpp zipload.cpp
HEADERS := llcomms.h ttybus.h devbus.h
HEADERS := llcomms.h ttybus.h devbus.h
OBJECTS := $(addprefix $(OBJDIR)/,$(subst .cpp,.o,$(SOURCES)))
OBJECTS := $(addprefix $(OBJDIR)/,$(subst .cpp,.o,$(SOURCES)))
 
 
%.o: $(OBJDIR)/%.o
%.o: $(OBJDIR)/%.o
$(OBJDIR)/%.o: %.cpp
$(OBJDIR)/%.o: %.cpp
Line 60... Line 59...
 
 
.PHONY: clean
.PHONY: clean
clean:
clean:
        rm -rf $(OBJDIR)/*.o $(PROGRAMS)
        rm -rf $(OBJDIR)/*.o $(PROGRAMS)
 
 
# dumpflash: $(OBJDIR)/dumpflash.o $(BUSOBJS)
$(OBJDIR)/scopecls.o: scopecls.cpp scopecls.h
#       $(CXX) -g $^ -o $@
$(OBJDIR)/eqspiscope.o: eqspiscope.cpp scopecls.h
# wbprogram: $(OBJDIR)/wbprogram.o $(OBJDIR)/flashdrvr.o $(BUSOBJS)
$(OBJDIR)/dumpflash.o: dumpflash.cpp regdefs.h
#       $(CXX) -g $^ -o $@
 
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 $@
wbsettime: $(OBJDIR)/wbsettime.o $(BUSOBJS)
wbsettime: $(OBJDIR)/wbsettime.o $(BUSOBJS)
Line 80... Line 79...
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
eqspiscope: $(OBJDIR)/eqspiscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
eqspiscope: $(OBJDIR)/eqspiscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
sdramscope: $(OBJDIR)/sdramscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
sdramscope: $(OBJDIR)/sdramscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
        $(CXX) -g $^ -o $@
        $(CXX) -g $^ -o $@
 
cfgscope: $(OBJDIR)/cfgscope.o $(OBJDIR)/scopecls.o $(BUSOBJS)
 
        $(CXX) -g $^ -o $@
 
wbprogram: $(OBJDIR)/wbprogram.o $(OBJDIR)/flashdrvr.o $(BUSOBJS)
 
        $(CXX) -g $^ -o $@
# ziprun: $(OBJDIR)/ziprun.o $(OBJDIR)/flashdrvr.o $(BUSOBJS)
# ziprun: $(OBJDIR)/ziprun.o $(OBJDIR)/flashdrvr.o $(BUSOBJS)
#       $(CXX) -g $^ -lelf -o $@
#       $(CXX) -g $^ -lelf -o $@
# zipdbg: zipdbg.cpp $(ZIPD)/zparser.cpp $(ZIPD)/zopcodes.cpp $(ZIPD)/twoc.cpp $(BUSOBJS)
# zipdbg: zipdbg.cpp $(ZIPD)/zparser.cpp $(ZIPD)/zopcodes.cpp $(ZIPD)/twoc.cpp $(BUSOBJS)
#       $(CXX) -g -I../bench/cpp -I $(ZIPD)/ $^ -lncurses -o $@
#       $(CXX) -g -I../bench/cpp -I $(ZIPD)/ $^ -lncurses -o $@
# zipstate: zipstate.cpp $(BUSOBJS)
# zipstate: zipstate.cpp $(BUSOBJS)

powered by: WebSVN 2.1.0

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