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

Subversion Repositories s6soc

[/] [s6soc/] [trunk/] [sw/] [host/] [Makefile] - Diff between revs 12 and 19

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

Rev 12 Rev 19
Line 37... Line 37...
##
##
################################################################################
################################################################################
##
##
##
##
all:
all:
PROGRAMS := wbregs readflash zipload buildsamples
PROGRAMS := wbregs readflash zipload buildsamples dumpuart
all: $(PROGRAMS)
all: $(PROGRAMS)
 
 
CXX := g++
CXX := g++
OBJDIR := obj-pc
OBJDIR := obj-pc
# BUSSRCS:= deppbus.cpp regdefs.cpp
# BUSSRCS:= deppbus.cpp regdefs.cpp
Line 72... Line 72...
        $(CXX) $(CFLAGS) $^ $(LIBS) -lelf -o $@
        $(CXX) $(CFLAGS) $^ $(LIBS) -lelf -o $@
 
 
buildsamples: buildsamples.cpp
buildsamples: buildsamples.cpp
        $(CXX) $(CFLAGS) $^ -o $@
        $(CXX) $(CFLAGS) $^ -o $@
 
 
 
dumpuart: dumpuart.cpp
 
        $(CXX) $(CFLAGS) $^ -o $@
 
 
define  build-depends
define  build-depends
        @echo "Building dependency file(s)"
        @echo "Building dependency file(s)"
        @$(CXX) $(CFLAGS) -MM $(SOURCES) $(BUSSRCS) > $(OBJDIR)/xdepends.txt
        @$(CXX) $(CFLAGS) -MM $(SOURCES) $(BUSSRCS) > $(OBJDIR)/xdepends.txt
        @sed -e 's/^.*.o: /$(OBJDIR)\/&/' < $(OBJDIR)/xdepends.txt > $(OBJDIR)/depends.txt
        @sed -e 's/^.*.o: /$(OBJDIR)\/&/' < $(OBJDIR)/xdepends.txt > $(OBJDIR)/depends.txt
        @rm $(OBJDIR)/xdepends.txt
        @rm $(OBJDIR)/xdepends.txt

powered by: WebSVN 2.1.0

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