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

Subversion Repositories t48

[/] [t48/] [tags/] [rel_0_3_beta/] [sim/] [rtl_sim/] [Makefile.ghdl] - Blame information for rev 312

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
# Copyright (c) 2004, Arnim Laeuger (arniml@opencores.org)
9
#
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
            rm -f tb_*_c0 *.gcno *.gcda *.gcov UNUSED
26 9 arniml
 
27 93 arniml
ANALYZE   = ghdl -a --std=87 --workdir=$(LIB_WORK) $(GCOV)
28 9 arniml
 
29 116 arniml
ELABORATE = ghdl -e --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 9 arniml
t48_tb_pack = $(LIB_WORK)/t48_tb_pack-p.o
50
t48_pack = $(LIB_WORK)/t48_pack-p.o
51
t48_core_struct_c0 = $(LIB_WORK)/t48_core-c.o
52
t48_core = $(LIB_WORK)/t48_core.o
53
t48_core_comp_pack = $(LIB_WORK)/t48_core_comp_pack-p.o
54
t48_comp_pack = $(LIB_WORK)/t48_comp_pack-p.o
55
syn_rom = $(LIB_WORK)/syn_rom-e.o
56
syn_rom-lpm-a = $(LIB_WORK)/syn_rom-lpm-a.o
57
syn_rom_lpm_c0 = $(LIB_WORK)/syn_rom-lpm-c.o
58
lpm_rom = $(LIB_WORK)/lpm_rom.o
59
syn_ram = $(LIB_WORK)/syn_ram-e.o
60
syn_ram-lpm-a = $(LIB_WORK)/syn_ram-lpm-a.o
61
syn_ram_lpm_c0 = $(LIB_WORK)/syn_ram-lpm-c.o
62
lpm_ram_dq = $(LIB_WORK)/lpm_ram_dq.o
63
psw_rtl_c0 = $(LIB_WORK)/psw-c.o
64
psw = $(LIB_WORK)/psw.o
65
pmem_ctrl_rtl_c0 = $(LIB_WORK)/pmem_ctrl-c.o
66
pmem_ctrl_pack = $(LIB_WORK)/pmem_ctrl_pack-p.o
67
pmem_ctrl = $(LIB_WORK)/pmem_ctrl.o
68
p2_rtl_c0 = $(LIB_WORK)/p2-c.o
69
p2 = $(LIB_WORK)/p2.o
70
p1_rtl_c0 = $(LIB_WORK)/p1-c.o
71
p1 = $(LIB_WORK)/p1.o
72
timer_rtl_c0 = $(LIB_WORK)/timer-c.o
73
timer = $(LIB_WORK)/timer.o
74
opc_table_rtl_c0 = $(LIB_WORK)/opc_table-c.o
75
opc_table = $(LIB_WORK)/opc_table.o
76
opc_decoder_rtl_c0 = $(LIB_WORK)/opc_decoder-c.o
77
opc_decoder = $(LIB_WORK)/opc_decoder.o
78
int_rtl_c0 = $(LIB_WORK)/int-c.o
79
int = $(LIB_WORK)/int.o
80
dmem_ctrl_rtl_c0 = $(LIB_WORK)/dmem_ctrl-c.o
81
dmem_ctrl_pack = $(LIB_WORK)/dmem_ctrl_pack-p.o
82
dmem_ctrl = $(LIB_WORK)/dmem_ctrl.o
83
decoder_rtl_c0 = $(LIB_WORK)/decoder-c.o
84
decoder_pack = $(LIB_WORK)/decoder_pack-p.o
85
decoder = $(LIB_WORK)/decoder.o
86
db_bus_rtl_c0 = $(LIB_WORK)/db_bus-c.o
87
db_bus = $(LIB_WORK)/db_bus.o
88
cond_branch_rtl_c0 = $(LIB_WORK)/cond_branch-c.o
89
cond_branch_pack = $(LIB_WORK)/cond_branch_pack-p.o
90
cond_branch = $(LIB_WORK)/cond_branch.o
91
clock_ctrl_rtl_c0 = $(LIB_WORK)/clock_ctrl-c.o
92
clock_ctrl = $(LIB_WORK)/clock_ctrl.o
93
bus_mux_rtl_c0 = $(LIB_WORK)/bus_mux-c.o
94
bus_mux = $(LIB_WORK)/bus_mux.o
95
alu_rtl_c0 = $(LIB_WORK)/alu-c.o
96
alu_pack = $(LIB_WORK)/alu_pack-p.o
97
alu = $(LIB_WORK)/alu.o
98 11 arniml
#
99
##############################################################################
100 9 arniml
 
101
 
102 11 arniml
##############################################################################
103 75 arniml
# The default target for elaboration
104
#
105
.PHONY: all
106
all: elaborate
107
#
108
##############################################################################
109
 
110
 
111
##############################################################################
112 11 arniml
# The elaboration targets
113
#
114 71 arniml
tb_elab       = tb_behav_c0
115
tb_t8048_elab = tb_t8048_behav_c0
116
tb_t8039_elab = tb_t8039_behav_c0
117 11 arniml
#
118
##############################################################################
119
 
120
 
121
##############################################################################
122
# Tool-specific elaboration rules
123
#
124 9 arniml
$(tb_elab) : $(tb_behav_c0)
125
        $(ELABORATE) tb_behav_c0; \
126
        strip tb_behav_c0
127
 
128
$(tb_t8048_elab) : $(tb_t8048_behav_c0)
129
        $(ELABORATE) tb_t8048_behav_c0; \
130
        strip tb_t8048_behav_c0
131
 
132 71 arniml
$(tb_t8039_elab) : $(tb_t8039_behav_c0)
133
        $(ELABORATE) tb_t8039_behav_c0; \
134
        strip tb_t8039_behav_c0
135
 
136 9 arniml
.PHONY: elaborate
137 71 arniml
elaborate: $(LIB_WORK) $(tb_elab) $(tb_t8048_elab) $(tb_t8039_elab)
138 11 arniml
#
139
##############################################################################
140 9 arniml
 
141 11 arniml
 
142 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.