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

Subversion Repositories dblclockfft

[/] [dblclockfft/] [trunk/] [sw/] [Makefile] - Diff between revs 36 and 37

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

Rev 36 Rev 37
Line 1... Line 1...
############################################################################/
################################################################################
##
##
## Filename:    Makefile
## Filename:    Makefile
##
##
## Project:     A Generic Pipelined FFT Implementation
## Project:     A General Purpose Pipelined FFT Implementation
##
##
## Purpose:     This is the main Makefile for the FFT core generator.
## Purpose:     This is the main Makefile for the FFT core generator.
##              It is very simple in its construction, the most complicated
##              It is very simple in its construction, the most complicated
##      parts being the building of the Verilator simulation--a step that may
##      parts being the building of the Verilator simulation--a step that may
##      not be required for your project.
##      not be required for your project.
Line 14... Line 14...
##      to read the usage() statement.
##      to read the usage() statement.
##
##
## Creator:     Dan Gisselquist, Ph.D.
## Creator:     Dan Gisselquist, Ph.D.
##              Gisselquist Technology, LLC
##              Gisselquist Technology, LLC
##
##
##########################################################################/
################################################################################
##
##
## Copyright (C) 2015,2018, Gisselquist Technology, LLC
## Copyright (C) 2015,2018, Gisselquist Technology, LLC
##
##
## This program is free software (firmware): you can redistribute it and/or
## 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
## modify it under the terms of  the GNU General Public License as published
Line 29... Line 29...
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
## for more details.
## for more details.
##
##
## You should have received a copy of the GNU General Public License along
## 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
## 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
## target there if the PDF file isn't present.)  If not, see
##  for a copy.
##  for a copy.
##
##
## License:     GPL, v3, as defined and found on www.gnu.org,
## License:     GPL, v3, as defined and found on www.gnu.org,
##              http:##www.gnu.org/licenses/gpl.html
##              http://www.gnu.org/licenses/gpl.html
##
##
##
##
##########################################################################/
################################################################################
##
##
##
##
# This is really simple ...
# This is really simple ...
all: fftgen
all: fftgen
CORED := ../rtl
CORED := ../rtl
Line 49... Line 49...
OBJDIR   := obj-pc
OBJDIR   := obj-pc
BENCHD  := ../bench/cpp
BENCHD  := ../bench/cpp
SOURCES := bitreverse.cpp bldstage.cpp butterfly.cpp fftgen.cpp fftlib.cpp \
SOURCES := bitreverse.cpp bldstage.cpp butterfly.cpp fftgen.cpp fftlib.cpp \
                legal.cpp rounding.cpp softmpy.cpp
                legal.cpp rounding.cpp softmpy.cpp
TESTSZ  := -f 2048
TESTSZ  := -f 2048
# CKPCE   := -k 1
CKPCE   := -1 -k 1
CKPCE   := -2
# CKPCE   := -2
MPYS    := -p 0
MPYS    := -p 0
IWID    := -n 15
IWID    := -n 15
FFTPARAMS := -d $(CORED) $(TESTSZ) $(CKPCE) $(MPYS) $(IWID)
FFTPARAMS := -d $(CORED) $(TESTSZ) $(CKPCE) $(MPYS) $(IWID)
OBJECTS := $(addprefix $(OBJDIR)/,$(subst .cpp,.o,$(SOURCES)))
OBJECTS := $(addprefix $(OBJDIR)/,$(subst .cpp,.o,$(SOURCES)))
HEADERS := $(wildcard *.h)
HEADERS := $(wildcard *.h)
Line 216... Line 216...
        cd $(VOBJDR)/; make -f Vfftstage.mk
        cd $(VOBJDR)/; make -f Vfftstage.mk
 
 
 
 
.PHONY: clean
.PHONY: clean
clean:
clean:
        rm fftgen fftgen.o
        rm -rf fft-core/
 
        rm -rf fftgen $(OBJDIR)/
        rm -rf $(CORED)/obj_dir
        rm -rf $(CORED)/obj_dir
        rm -rf $(CORED)/fftmain.v $(CORED)/fftstage.v
        rm -rf $(CORED)/fftmain.v $(CORED)/fftstage.v
 
        rm -rf $(CORED)/ifftmain.v $(CORED)/ifftstage.v
        rm -rf $(CORED)/qtrstage.v $(CORED)/laststage.v $(CORED)/bitreverse.v
        rm -rf $(CORED)/qtrstage.v $(CORED)/laststage.v $(CORED)/bitreverse.v
        rm -rf $(CORED)/butterfly.v $(CORED)/hwbfly.v
        rm -rf $(CORED)/butterfly.v $(CORED)/hwbfly.v
        rm -rf $(CORED)/longbimpy.v $(CORED)/bimpy.v
        rm -rf $(CORED)/longbimpy.v $(CORED)/bimpy.v
        rm -rf $(CORED)/convround.v
        rm -rf $(CORED)/convround.v
 
        rm -rf $(CORED)/*cmem_*.hex
 
 
#
#
# The "depends" target, to know what files things depend upon.  The depends
# The "depends" target, to know what files things depend upon.  The depends
# file itself is kept in $(OBJDIR)/depends.txt
# file itself is kept in $(OBJDIR)/depends.txt
#
#
Line 257... Line 260...
#
#
tags:   $(SOURCES) $(HEADERS)
tags:   $(SOURCES) $(HEADERS)
        @echo "Generating tags"
        @echo "Generating tags"
        @ctags $(SOURCES) $(HEADERS)
        @ctags $(SOURCES) $(HEADERS)
 
 
 
ifneq ($(MAKECMDGOALS),clean)
-include $(OBJDIR)/depends.txt
-include $(OBJDIR)/depends.txt
 
endif

powered by: WebSVN 2.1.0

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