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

Subversion Repositories s6soc

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

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

Rev 11 Rev 12
Line 1... Line 1...
 
################################################################################
 
##
 
## Filename:    Makefile        (sw/host)
 
##
 
## Project:     CMod S6 System on a Chip, ZipCPU demonstration project
 
##
 
## Purpose:     Supports the building of the various host (i.e. PC) software
 
##              that will be used to support the Cmod S6 board.  None of this
 
##      software will actually run on the board, but it may be used for
 
##      communicating with and configuring the board.
 
##
 
## Creator:     Dan Gisselquist, Ph.D.
 
##              Gisselquist Technology, LLC
 
##
 
################################################################################
 
##
 
## Copyright (C) 2015-2016, Gisselquist Technology, LLC
 
##
 
## This program is free software (firmware): you can redistribute it and/or
 
## modify it under the terms of  the GNU General Public License as published
 
## by the Free Software Foundation, either version 3 of the License, or (at
 
## your option) any later version.
 
##
 
## This program is distributed in the hope that it will be useful, but WITHOUT
 
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
 
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 
## for more details.
 
##
 
## You should have received a copy of the GNU General Public License along
 
## with this program.  (It's in the $(ROOT)/doc directory, run make with no
 
## target there if the PDF file isn't present.)  If not, see
 
##  for a copy.
 
##
 
## License:     GPL, v3, as defined and found on www.gnu.org,
 
##              http://www.gnu.org/licenses/gpl.html
 
##
 
##
 
################################################################################
 
##
 
##
all:
all:
PROGRAMS := wbregs readflash zipload
PROGRAMS := wbregs readflash zipload buildsamples
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 29... Line 69...
        $(CXX) $(CFLAGS) $^ $(LIBS) -o $@
        $(CXX) $(CFLAGS) $^ $(LIBS) -o $@
 
 
zipload: $(OBJDIR)/zipload.o $(OBJDIR)/flashdrvr.o $(BUSOBJS)
zipload: $(OBJDIR)/zipload.o $(OBJDIR)/flashdrvr.o $(BUSOBJS)
        $(CXX) $(CFLAGS) $^ $(LIBS) -lelf -o $@
        $(CXX) $(CFLAGS) $^ $(LIBS) -lelf -o $@
 
 
 
buildsamples: buildsamples.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-2022 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.