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

Subversion Repositories System09

[/] [System09/] [branches/] [mkfiles_rev1/] [src/] [Flex9/] [Makefile] - Blame information for rev 44

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

Line No. Rev Author Line
1 28 davidgb
#-----------------------------------------------------------------
2
# File:    Makefile
3
# Author:  David Burnette
4
# Date:    April 7, 2008
5
#
6
# Description:
7
#  This makefile generates a VHDL file from assembler source.
8
#  A translate rule in mktargets.mk handles compiling the .asm
9
#  into a S19 record file (.S19) and then running s19tovhd to
10
#  generate a VHDL file with SPARTAN3 block rams with INIT generics
11
#  containing the binary data.
12
#
13
#  This particular makefile handles generating FLEX9 code.
14
#
15
# Usage:
16
#  This make file is called recursively by the board-specific
17
#  makefiles in the 'rtl' directory. The targets generated by
18
#  this makefile are:
19
#
20
#    make                     - makes all variants
21
#    make all                 - makes all variants
22
#    make flex9ide.vhd        - for IDE disk (Xess board)
23
#    make flex9cf8.vhd        - for CompactFlash (Burched boards)
24
#    make flex9ram.vhd        - for RAM disk (Spartan3 starter)
25
#    make flex9ads.vhd        -
26
#
27
# Target Descriptions:
28
#  The first file listed is the source file passed to assembler.
29
#  Remaining files are the dependencies. The option variables
30
#  ADDRS, ENTITY and TOP_RAM are used by the s19tovhd utility
31
#  to generate the VHDL file.
32
#
33
# Dependencies:
34
#  This makefile depends on def_rules.mk and the top-level
35
#  ram model file flex_ram_vhd.
36
#
37
# Revision History:
38
#   dgb 2008-04-07   Original version
39
#
40
#-----------------------------------------------------------------
41
 
42
ifeq "$(MKFRAGS)" ""
43
MKFRAGS := ../../mkfiles
44
endif
45
 
46
include $(MKFRAGS)/def_rules.mk
47
 
48
BASE_FLEX_FILES := \
49 44 davidgb
  f9-moneq.asm \
50
  f9-equ.asm \
51
  f9-spool.asm \
52
  f9-sfcb.asm \
53
  f9-init.asm \
54
  f9-var.asm \
55
  f9-data.asm \
56
  f9-cli.asm \
57
  f9-monio.asm \
58
  f9-fms.asm
59 28 davidgb
 
60
all: flex9ide.vhd flex9cf8.vhd flex9ram.vhd flex9ads.vhd
61
 
62 44 davidgb
flex9ide.vhd: flex9ide.asm $(BASE_FLEX_FILES) f9-dkide.asm
63 28 davidgb
flex9ide.vhd: ADDRS=C000 C800 D000 D800
64
flex9ide.vhd: ENTITY=FLEX9
65
flex9ide.vhd: TOP_RAM=flex_ram_vhd
66
 
67 44 davidgb
flex9cf8.vhd: flex9cf8.asm $(BASE_FLEX_FILES) f9-dkcf8.asm
68 28 davidgb
flex9cf8.vhd: ADDRS=C000 C800 D000 D800
69
flex9cf8.vhd: ENTITY=FLEX9
70
flex9cf8.vhd: TOP_RAM=flex_ram_vhd
71
 
72 44 davidgb
flex9ram.vhd: flex9ram.asm $(BASE_FLEX_FILES) f9-dkram.asm
73 28 davidgb
flex9ram.vhd: ADDRS=C000 C800 D000 D800
74
flex9ram.vhd: ENTITY=FLEX9
75
flex9ram.vhd: TOP_RAM=flex_ram_vhd
76
 
77 44 davidgb
flex9ads.vhd: flex9ads.asm $(BASE_FLEX_FILES) f9-dkfdc.asm
78 28 davidgb
flex9ads.vhd: ADDRS=C000 C800 D000 D800
79
flex9ads.vhd: ENTITY=FLEX9
80
flex9ads.vhd: TOP_RAM=flex_ram_vhd
81
 
82
.PHONY: clean
83
clean:
84
        -$(RM) *.S19
85
        -$(RM) *.lst
86
        -$(RM) *.vhd

powered by: WebSVN 2.1.0

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