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

Subversion Repositories System09

[/] [System09/] [branches/] [mkfiles_rev1/] [src/] [Flex9/] [Makefile] - Rev 28

Go to most recent revision | Compare with Previous | Blame | View Log

#-----------------------------------------------------------------
# File:    Makefile
# Author:  David Burnette
# Date:    April 7, 2008
#
# Description:
#  This makefile generates a VHDL file from assembler source.
#  A translate rule in mktargets.mk handles compiling the .asm
#  into a S19 record file (.S19) and then running s19tovhd to
#  generate a VHDL file with SPARTAN3 block rams with INIT generics
#  containing the binary data.
#
#  This particular makefile handles generating FLEX9 code.
#
# Usage:
#  This make file is called recursively by the board-specific
#  makefiles in the 'rtl' directory. The targets generated by
#  this makefile are:
#
#    make                     - makes all variants
#    make all                 - makes all variants
#    make flex9ide.vhd        - for IDE disk (Xess board)
#    make flex9cf8.vhd        - for CompactFlash (Burched boards)
#    make flex9ram.vhd        - for RAM disk (Spartan3 starter)
#    make flex9ads.vhd        -
#
# Target Descriptions:
#  The first file listed is the source file passed to assembler.
#  Remaining files are the dependencies. The option variables
#  ADDRS, ENTITY and TOP_RAM are used by the s19tovhd utility
#  to generate the VHDL file.
#
# Dependencies:
#  This makefile depends on def_rules.mk and the top-level
#  ram model file flex_ram_vhd.
#
# Revision History:
#   dgb 2008-04-07   Original version
#
#-----------------------------------------------------------------

ifeq "$(MKFRAGS)" ""
MKFRAGS := ../../mkfiles
endif

include $(MKFRAGS)/def_rules.mk

BASE_FLEX_FILES := \
  f9-moneq.txt \
  f9-equ.txt \
  f9-spool.txt \
  f9-sfcb.txt \
  f9-init.txt \
  f9-var.txt \
  f9-data.txt \
  f9-cli.txt \
  f9-monio.txt \
  f9-fms.txt

all: flex9ide.vhd flex9cf8.vhd flex9ram.vhd flex9ads.vhd

flex9ide.vhd: flex9ide.asm $(BASE_FLEX_FILES) f9-dkide.txt
flex9ide.vhd: ADDRS=C000 C800 D000 D800
flex9ide.vhd: ENTITY=FLEX9
flex9ide.vhd: TOP_RAM=flex_ram_vhd

flex9cf8.vhd: flex9cf8.asm $(BASE_FLEX_FILES) f9-dkcf8.txt
flex9cf8.vhd: ADDRS=C000 C800 D000 D800
flex9cf8.vhd: ENTITY=FLEX9
flex9cf8.vhd: TOP_RAM=flex_ram_vhd

flex9ram.vhd: flex9ram.asm $(BASE_FLEX_FILES) f9-dkram.txt
flex9ram.vhd: ADDRS=C000 C800 D000 D800
flex9ram.vhd: ENTITY=FLEX9
flex9ram.vhd: TOP_RAM=flex_ram_vhd

flex9ads.vhd: flex9ads.asm $(BASE_FLEX_FILES) f9-dkfdc.txt
flex9ads.vhd: ADDRS=C000 C800 D000 D800
flex9ads.vhd: ENTITY=FLEX9
flex9ads.vhd: TOP_RAM=flex_ram_vhd

.PHONY: clean
clean:
        -$(RM) *.S19
        -$(RM) *.lst
        -$(RM) *.vhd

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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