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

Subversion Repositories t48

[/] [t48/] [tags/] [rel_1_0/] [sim/] [rtl_sim/] [Makefile.ghdl] - Blame information for rev 232

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

Line No. Rev Author Line
1 16 arniml
##############################################################################
2 11 arniml
#
3
# Tool-specific Makefile for the GHDL compiler.
4
#
5 16 arniml
# It sets all variables needed for VHDL code compilation with Makefile.hier.
6 11 arniml
#
7
#
8 218 arniml
# Copyright (c) 2004-2006 Arnim Laeuger (arniml@opencores.org)
9 11 arniml
#
10
# All rights reserved
11
#
12
##############################################################################
13
 
14 93 arniml
# Generate diagnosis files for line coverage
15
#GCOV = -Wc,-ftest-coverage -Wc,-fprofile-arcs
16
GCOV =
17 11 arniml
 
18 116 arniml
# In case elaborating/linking throws error messages about undefined references
19
#GCOV_LINK = -Wl,-lgcov
20
GCOV_LINK =
21 93 arniml
 
22 9 arniml
LIB_WORK  = ghdl-work
23
 
24 116 arniml
CLEAN     = ghdl --clean --std=87 --workdir=$(LIB_WORK); \
25 232 arniml
            rm -f tb_*_c0 *.gcno *.gcda *.gcov *.hex UNUSED
26 9 arniml
 
27 93 arniml
ANALYZE   = ghdl -a --std=87 --workdir=$(LIB_WORK) $(GCOV)
28 9 arniml
 
29 218 arniml
ELABORATE = ghdl -e -Wl,-s --std=87 --workdir=$(LIB_WORK) $(GCOV_LINK)
30 9 arniml
 
31
MAKE_LIB  = mkdir -p $(LIB_WORK)
32
 
33 11 arniml
 
34
##############################################################################
35
# The analyze targets
36
#
37 71 arniml
tb_t8039_behav_c0 = $(LIB_WORK)/tb_t8039-c.o
38
tb_t8039 = $(LIB_WORK)/tb_t8039.o
39 11 arniml
tb_t8048_behav_c0 = $(LIB_WORK)/tb_t8048-c.o
40
tb_t8048 = $(LIB_WORK)/tb_t8048.o
41
tb_behav_c0 = $(LIB_WORK)/tb-c.o
42
tb = $(LIB_WORK)/tb.o
43 79 arniml
if_timing_behav_c0 = $(LIB_WORK)/if_timing-c.o
44
if_timing = $(LIB_WORK)/if_timing.o
45 11 arniml
t8048_struct_c0 = $(LIB_WORK)/t8048-c.o
46
t8048 = $(LIB_WORK)/t8048.o
47 71 arniml
t8039_struct_c0 = $(LIB_WORK)/t8039-c.o
48
t8039 = $(LIB_WORK)/t8039.o
49 151 arniml
t48_system_comp_pack = $(LIB_WORK)/t48_system_comp_pack-p.o
50 154 arniml
t8039_notri_struct_c0 = $(LIB_WORK)/t8039_notri-c.o
51
t8039_notri = $(LIB_WORK)/t8039_notri.o
52 151 arniml
t8048_notri_struct_c0 = $(LIB_WORK)/t8048_notri-c.o
53
t8048_notri = $(LIB_WORK)/t8048_notri.o
54 9 arniml
t48_tb_pack = $(LIB_WORK)/t48_tb_pack-p.o
55
t48_pack = $(LIB_WORK)/t48_pack-p.o
56
t48_core_struct_c0 = $(LIB_WORK)/t48_core-c.o
57
t48_core = $(LIB_WORK)/t48_core.o
58
t48_core_comp_pack = $(LIB_WORK)/t48_core_comp_pack-p.o
59
t48_comp_pack = $(LIB_WORK)/t48_comp_pack-p.o
60
lpm_rom = $(LIB_WORK)/lpm_rom.o
61 232 arniml
t48_rom = $(LIB_WORK)/t48_rom-e.o
62
t48_rom_lpm_a = $(LIB_WORK)/t48_rom-lpm-a.o
63
t48_rom_lpm_c0 = $(LIB_WORK)/t48_rom-lpm-c.o
64
t49_rom = $(LIB_WORK)/t49_rom-e.o
65
t49_rom_lpm_a = $(LIB_WORK)/t49_rom-lpm-a.o
66
t49_rom_lpm_c0 = $(LIB_WORK)/t49_rom-lpm-c.o
67
generic_ram_ena = $(LIB_WORK)/generic_ram_ena.o
68
generic_ram_ena_rtl_c0 = $(LIB_WORK)/generic_ram_ena-c.o
69 9 arniml
lpm_ram_dq = $(LIB_WORK)/lpm_ram_dq.o
70
psw_rtl_c0 = $(LIB_WORK)/psw-c.o
71
psw = $(LIB_WORK)/psw.o
72
pmem_ctrl_rtl_c0 = $(LIB_WORK)/pmem_ctrl-c.o
73
pmem_ctrl_pack = $(LIB_WORK)/pmem_ctrl_pack-p.o
74
pmem_ctrl = $(LIB_WORK)/pmem_ctrl.o
75
p2_rtl_c0 = $(LIB_WORK)/p2-c.o
76
p2 = $(LIB_WORK)/p2.o
77
p1_rtl_c0 = $(LIB_WORK)/p1-c.o
78
p1 = $(LIB_WORK)/p1.o
79
timer_rtl_c0 = $(LIB_WORK)/timer-c.o
80
timer = $(LIB_WORK)/timer.o
81
opc_table_rtl_c0 = $(LIB_WORK)/opc_table-c.o
82
opc_table = $(LIB_WORK)/opc_table.o
83
opc_decoder_rtl_c0 = $(LIB_WORK)/opc_decoder-c.o
84
opc_decoder = $(LIB_WORK)/opc_decoder.o
85
int_rtl_c0 = $(LIB_WORK)/int-c.o
86
int = $(LIB_WORK)/int.o
87
dmem_ctrl_rtl_c0 = $(LIB_WORK)/dmem_ctrl-c.o
88
dmem_ctrl_pack = $(LIB_WORK)/dmem_ctrl_pack-p.o
89
dmem_ctrl = $(LIB_WORK)/dmem_ctrl.o
90
decoder_rtl_c0 = $(LIB_WORK)/decoder-c.o
91
decoder_pack = $(LIB_WORK)/decoder_pack-p.o
92
decoder = $(LIB_WORK)/decoder.o
93
db_bus_rtl_c0 = $(LIB_WORK)/db_bus-c.o
94
db_bus = $(LIB_WORK)/db_bus.o
95
cond_branch_rtl_c0 = $(LIB_WORK)/cond_branch-c.o
96
cond_branch_pack = $(LIB_WORK)/cond_branch_pack-p.o
97
cond_branch = $(LIB_WORK)/cond_branch.o
98
clock_ctrl_rtl_c0 = $(LIB_WORK)/clock_ctrl-c.o
99
clock_ctrl = $(LIB_WORK)/clock_ctrl.o
100
bus_mux_rtl_c0 = $(LIB_WORK)/bus_mux-c.o
101
bus_mux = $(LIB_WORK)/bus_mux.o
102
alu_rtl_c0 = $(LIB_WORK)/alu-c.o
103
alu_pack = $(LIB_WORK)/alu_pack-p.o
104
alu = $(LIB_WORK)/alu.o
105 11 arniml
#
106
##############################################################################
107 9 arniml
 
108
 
109 11 arniml
##############################################################################
110 75 arniml
# The default target for elaboration
111
#
112
.PHONY: all
113
all: elaborate
114
#
115
##############################################################################
116
 
117
 
118
##############################################################################
119 11 arniml
# The elaboration targets
120
#
121 71 arniml
tb_elab       = tb_behav_c0
122
tb_t8048_elab = tb_t8048_behav_c0
123
tb_t8039_elab = tb_t8039_behav_c0
124 11 arniml
#
125
##############################################################################
126
 
127
 
128
##############################################################################
129
# Tool-specific elaboration rules
130
#
131 9 arniml
$(tb_elab) : $(tb_behav_c0)
132 218 arniml
        $(ELABORATE) tb_behav_c0
133 9 arniml
 
134
$(tb_t8048_elab) : $(tb_t8048_behav_c0)
135 218 arniml
        $(ELABORATE) tb_t8048_behav_c0
136 9 arniml
 
137 71 arniml
$(tb_t8039_elab) : $(tb_t8039_behav_c0)
138 218 arniml
        $(ELABORATE) tb_t8039_behav_c0
139 71 arniml
 
140 9 arniml
.PHONY: elaborate
141 71 arniml
elaborate: $(LIB_WORK) $(tb_elab) $(tb_t8048_elab) $(tb_t8039_elab)
142 11 arniml
#
143
##############################################################################
144 9 arniml
 
145 11 arniml
 
146 9 arniml
include Makefile.hier

powered by: WebSVN 2.1.0

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