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

Subversion Repositories System09

[/] [System09/] [branches/] [mkfiles_rev1/] [src/] [sys09bug/] [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 SYS09BUG 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 sys09xes.vhd        - for Xess board
#    make sys09b5x.vhd        - for Burched boards
#    make sys09s3s.vhd        - for Digilent Spartan3 starter
#    make sys09s3e.vhd        - for Digilent Spartan3E starter
#    make sys09swt.vhd        - original ROM for SWTPc
#    make sys09ads.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 mon_rom_vhd.
#
# Revision History:
#   dgb 2008-04-07   Original version
#
#-----------------------------------------------------------------

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

include $(MKFRAGS)/def_rules.mk

all: sys09xes.vhd sys09b5x.vhd sys09s3s.vhd sys09s3e.vhd sys09swt.vhd sys09ads.vhd

sys09xes.vhd: sys09xes.asm opt_xes.txt sys09equ.txt sys09ide.txt sys09bug.txt
sys09xes.vhd: ADDRS=F000 F800
sys09xes.vhd: ENTITY=SYS09BUG
sys09xes.vhd: TOP_RAM=mon_rom_vhd

sys09b5x.vhd: sys09b5x.asm opt_b5x.txt sys09equ.txt sys09bug.txt
sys09b5x.vhd: ADDRS=F000 F800
sys09b5x.vhd: ENTITY=SYS09BUG
sys09b5x.vhd: TOP_RAM=mon_rom_vhd

sys09s3s.vhd: sys09s3s.asm opt_s3s.txt sys09equ.txt sys09bug.txt
sys09s3s.vhd: ADDRS=F000 F800
sys09s3s.vhd: ENTITY=SYS09BUG
sys09s3s.vhd: TOP_RAM=mon_rom_vhd

sys09s3e.vhd: sys09s3e.asm opt_s3e.txt sys09equ.txt sys09bug.txt
sys09s3e.vhd: ADDRS=F000 F800
sys09s3e.vhd: ENTITY=SYS09BUG
sys09s3e.vhd: TOP_RAM=mon_rom_vhd

sys09swt.vhd: sys09swt.asm opt_swt.txt sys09equ.txt sys09bug.txt
sys09swt.vhd: ADDRS=F000 F800
sys09swt.vhd: ENTITY=SYS09BUG
sys09swt.vhd: TOP_RAM=mon_rom_vhd

sys09ads.vhd: sys09ads.asm opt_ads.txt sys09equ.txt sys09bug.txt
sys09ads.vhd: ADDRS=F000 F800
sys09ads.vhd: ENTITY=SYS09BUG
sys09ads.vhd: TOP_RAM=mon_rom_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.