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 93

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 93 arniml
 
19 9 arniml
LIB_WORK  = ghdl-work
20
 
21 93 arniml
CLEAN     = ghdl --clean --std=87 --workdir=$(LIB_WORK); rm -f tb_*_c0 *.bb *.bbg *.da *.gcov
22 9 arniml
 
23 93 arniml
ANALYZE   = ghdl -a --std=87 --workdir=$(LIB_WORK) $(GCOV)
24 9 arniml
 
25 77 arniml
ELABORATE = ghdl -e --std=87 --workdir=$(LIB_WORK)
26 9 arniml
 
27
MAKE_LIB  = mkdir -p $(LIB_WORK)
28
 
29 11 arniml
 
30
##############################################################################
31
# The analyze targets
32
#
33 71 arniml
tb_t8039_behav_c0 = $(LIB_WORK)/tb_t8039-c.o
34
tb_t8039 = $(LIB_WORK)/tb_t8039.o
35 11 arniml
tb_t8048_behav_c0 = $(LIB_WORK)/tb_t8048-c.o
36
tb_t8048 = $(LIB_WORK)/tb_t8048.o
37
tb_behav_c0 = $(LIB_WORK)/tb-c.o
38
tb = $(LIB_WORK)/tb.o
39 79 arniml
if_timing_behav_c0 = $(LIB_WORK)/if_timing-c.o
40
if_timing = $(LIB_WORK)/if_timing.o
41 11 arniml
t8048_struct_c0 = $(LIB_WORK)/t8048-c.o
42
t8048 = $(LIB_WORK)/t8048.o
43 71 arniml
t8039_struct_c0 = $(LIB_WORK)/t8039-c.o
44
t8039 = $(LIB_WORK)/t8039.o
45 9 arniml
t48_tb_pack = $(LIB_WORK)/t48_tb_pack-p.o
46
t48_pack = $(LIB_WORK)/t48_pack-p.o
47
t48_core_struct_c0 = $(LIB_WORK)/t48_core-c.o
48
t48_core = $(LIB_WORK)/t48_core.o
49
t48_core_comp_pack = $(LIB_WORK)/t48_core_comp_pack-p.o
50
t48_comp_pack = $(LIB_WORK)/t48_comp_pack-p.o
51
syn_rom = $(LIB_WORK)/syn_rom-e.o
52
syn_rom-lpm-a = $(LIB_WORK)/syn_rom-lpm-a.o
53
syn_rom_lpm_c0 = $(LIB_WORK)/syn_rom-lpm-c.o
54
lpm_rom = $(LIB_WORK)/lpm_rom.o
55
syn_ram = $(LIB_WORK)/syn_ram-e.o
56
syn_ram-lpm-a = $(LIB_WORK)/syn_ram-lpm-a.o
57
syn_ram_lpm_c0 = $(LIB_WORK)/syn_ram-lpm-c.o
58
lpm_ram_dq = $(LIB_WORK)/lpm_ram_dq.o
59
psw_rtl_c0 = $(LIB_WORK)/psw-c.o
60
psw = $(LIB_WORK)/psw.o
61
pmem_ctrl_rtl_c0 = $(LIB_WORK)/pmem_ctrl-c.o
62
pmem_ctrl_pack = $(LIB_WORK)/pmem_ctrl_pack-p.o
63
pmem_ctrl = $(LIB_WORK)/pmem_ctrl.o
64
p2_rtl_c0 = $(LIB_WORK)/p2-c.o
65
p2 = $(LIB_WORK)/p2.o
66
p1_rtl_c0 = $(LIB_WORK)/p1-c.o
67
p1 = $(LIB_WORK)/p1.o
68
timer_rtl_c0 = $(LIB_WORK)/timer-c.o
69
timer = $(LIB_WORK)/timer.o
70
opc_table_rtl_c0 = $(LIB_WORK)/opc_table-c.o
71
opc_table = $(LIB_WORK)/opc_table.o
72
opc_decoder_rtl_c0 = $(LIB_WORK)/opc_decoder-c.o
73
opc_decoder = $(LIB_WORK)/opc_decoder.o
74
int_rtl_c0 = $(LIB_WORK)/int-c.o
75
int = $(LIB_WORK)/int.o
76
dmem_ctrl_rtl_c0 = $(LIB_WORK)/dmem_ctrl-c.o
77
dmem_ctrl_pack = $(LIB_WORK)/dmem_ctrl_pack-p.o
78
dmem_ctrl = $(LIB_WORK)/dmem_ctrl.o
79
decoder_rtl_c0 = $(LIB_WORK)/decoder-c.o
80
decoder_pack = $(LIB_WORK)/decoder_pack-p.o
81
decoder = $(LIB_WORK)/decoder.o
82
db_bus_rtl_c0 = $(LIB_WORK)/db_bus-c.o
83
db_bus = $(LIB_WORK)/db_bus.o
84
cond_branch_rtl_c0 = $(LIB_WORK)/cond_branch-c.o
85
cond_branch_pack = $(LIB_WORK)/cond_branch_pack-p.o
86
cond_branch = $(LIB_WORK)/cond_branch.o
87
clock_ctrl_rtl_c0 = $(LIB_WORK)/clock_ctrl-c.o
88
clock_ctrl = $(LIB_WORK)/clock_ctrl.o
89
bus_mux_rtl_c0 = $(LIB_WORK)/bus_mux-c.o
90
bus_mux = $(LIB_WORK)/bus_mux.o
91
alu_rtl_c0 = $(LIB_WORK)/alu-c.o
92
alu_pack = $(LIB_WORK)/alu_pack-p.o
93
alu = $(LIB_WORK)/alu.o
94 11 arniml
#
95
##############################################################################
96 9 arniml
 
97
 
98 11 arniml
##############################################################################
99 75 arniml
# The default target for elaboration
100
#
101
.PHONY: all
102
all: elaborate
103
#
104
##############################################################################
105
 
106
 
107
##############################################################################
108 11 arniml
# The elaboration targets
109
#
110 71 arniml
tb_elab       = tb_behav_c0
111
tb_t8048_elab = tb_t8048_behav_c0
112
tb_t8039_elab = tb_t8039_behav_c0
113 11 arniml
#
114
##############################################################################
115
 
116
 
117
##############################################################################
118
# Tool-specific elaboration rules
119
#
120 9 arniml
$(tb_elab) : $(tb_behav_c0)
121
        $(ELABORATE) tb_behav_c0; \
122
        strip tb_behav_c0
123
 
124
$(tb_t8048_elab) : $(tb_t8048_behav_c0)
125
        $(ELABORATE) tb_t8048_behav_c0; \
126
        strip tb_t8048_behav_c0
127
 
128 71 arniml
$(tb_t8039_elab) : $(tb_t8039_behav_c0)
129
        $(ELABORATE) tb_t8039_behav_c0; \
130
        strip tb_t8039_behav_c0
131
 
132 9 arniml
.PHONY: elaborate
133 71 arniml
elaborate: $(LIB_WORK) $(tb_elab) $(tb_t8048_elab) $(tb_t8039_elab)
134 11 arniml
#
135
##############################################################################
136 9 arniml
 
137 11 arniml
 
138 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.