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

Subversion Repositories gamepads

[/] [gamepads/] [trunk/] [gcpad/] [sim/] [rtl_sim/] [Makefile] - Blame information for rev 41

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 11 arniml
##############################################################################
2
#
3
# Tool-specific Makefile for the GHDL compiler.
4
#
5 41 arniml
# $Id: Makefile 41 2009-04-01 19:58:04Z arniml $
6 11 arniml
#
7
# Copyright (c) 2004, Arnim Laeuger (arniml@opencores.org)
8
#
9
# All rights reserved
10
#
11
##############################################################################
12
 
13
 
14
PROJECT_DIR = ../..
15
RTL_DIR     = $(PROJECT_DIR)/rtl/vhdl
16
BENCH_DIR   = $(PROJECT_DIR)/bench/vhdl
17
 
18
 
19
 
20
ANALYZE=ghdl -a --std=87 --workdir=work
21
ELABORATE=ghdl -e --std=87 --workdir=work
22
 
23
.PHONY: all
24
all: work elaborate
25
 
26
work:
27
        mkdir work
28
 
29
work/gcpad_pack-p.o: $(RTL_DIR)/gcpad_pack-p.vhd
30
        $(ANALYZE) $(RTL_DIR)/gcpad_pack-p.vhd
31
 
32 22 arniml
work/gcpad_sampler.o: $(RTL_DIR)/gcpad_sampler.vhd \
33
                      work/gcpad_pack-p.o
34
        $(ANALYZE) $(RTL_DIR)/gcpad_sampler.vhd
35
work/gcpad_sampler-c.o: $(RTL_DIR)/gcpad_sampler-c.vhd \
36
                        work/gcpad_sampler.o
37
        $(ANALYZE) $(RTL_DIR)/gcpad_sampler-c.vhd
38
 
39 11 arniml
work/gcpad_rx.o: $(RTL_DIR)/gcpad_rx.vhd \
40 22 arniml
                 work/gcpad_sampler.o    \
41 11 arniml
                 work/gcpad_pack-p.o
42
        $(ANALYZE) $(RTL_DIR)/gcpad_rx.vhd
43
work/gcpad_rx-c.o: $(RTL_DIR)/gcpad_rx-c.vhd \
44 22 arniml
                   work/gcpad_sampler-c.o    \
45
                   work/gcpad_rx.o
46 11 arniml
        $(ANALYZE) $(RTL_DIR)/gcpad_rx-c.vhd
47
 
48
work/gcpad_tx.o: $(RTL_DIR)/gcpad_tx.vhd \
49
                 work/gcpad_pack-p.o
50
        $(ANALYZE) $(RTL_DIR)/gcpad_tx.vhd
51
work/gcpad_tx-c.o: $(RTL_DIR)/gcpad_tx-c.vhd \
52
                 work/gcpad_tx.o
53
        $(ANALYZE) $(RTL_DIR)/gcpad_tx-c.vhd
54
 
55
work/gcpad_ctrl.o: $(RTL_DIR)/gcpad_ctrl.vhd \
56
                 work/gcpad_pack-p.o
57
        $(ANALYZE) $(RTL_DIR)/gcpad_ctrl.vhd
58
work/gcpad_ctrl-c.o: $(RTL_DIR)/gcpad_ctrl-c.vhd \
59
                 work/gcpad_ctrl.o
60
        $(ANALYZE) $(RTL_DIR)/gcpad_ctrl-c.vhd
61
 
62
work/gcpad_basic.o: $(RTL_DIR)/gcpad_basic.vhd \
63
              work/gcpad_pack-p.o              \
64
              work/gcpad_ctrl.o                \
65
              work/gcpad_tx.o                  \
66
              work/gcpad_rx.o
67
        $(ANALYZE) $(RTL_DIR)/gcpad_basic.vhd
68
work/gcpad_basic-c.o: $(RTL_DIR)/gcpad_basic-c.vhd \
69
              work/gcpad_basic.o                   \
70
              work/gcpad_ctrl-c.o                  \
71
              work/gcpad_tx-c.o                    \
72
              work/gcpad_rx-c.o
73
        $(ANALYZE) $(RTL_DIR)/gcpad_basic-c.vhd
74
 
75 27 arniml
work/gcpad_full.o: $(RTL_DIR)/gcpad_full.vhd \
76
              work/gcpad_pack-p.o            \
77
              work/gcpad_ctrl.o              \
78
              work/gcpad_tx.o                \
79
              work/gcpad_rx.o
80
        $(ANALYZE) $(RTL_DIR)/gcpad_full.vhd
81
work/gcpad_full-c.o: $(RTL_DIR)/gcpad_full-c.vhd \
82
              work/gcpad_full.o                  \
83
              work/gcpad_ctrl-c.o                \
84
              work/gcpad_tx-c.o                  \
85
              work/gcpad_rx-c.o
86
        $(ANALYZE) $(RTL_DIR)/gcpad_full-c.vhd
87
 
88
work/gcpad_comp-p.o: $(RTL_DIR)/gcpad_comp-p.vhd
89
        $(ANALYZE) $(RTL_DIR)/gcpad_comp-p.vhd
90
 
91
work/gcpad_mod.o: $(BENCH_DIR)/gcpad_mod.vhd
92
        $(ANALYZE) $(BENCH_DIR)/gcpad_mod.vhd
93
work/gcpad_mod-c.o: $(BENCH_DIR)/gcpad_mod-c.vhd \
94
                    work/gcpad_mod.o
95
        $(ANALYZE) $(BENCH_DIR)/gcpad_mod-c.vhd
96
 
97 11 arniml
work/tb.o: $(BENCH_DIR)/tb.vhd \
98
           work/gcpad_pack-p.o \
99 27 arniml
           work/gcpad_comp-p.o \
100
           work/gcpad_basic.o  \
101
           work/gcpad_full.o   \
102
           work/gcpad_mod.o
103 11 arniml
        $(ANALYZE) $(BENCH_DIR)/tb.vhd
104
work/tb-c.o: $(BENCH_DIR)/tb-c.vhd \
105
             work/tb.o             \
106 27 arniml
             work/gcpad_basic-c.o  \
107
             work/gcpad_full-c.o   \
108
             work/gcpad_mod-c.o
109 11 arniml
        $(ANALYZE) $(BENCH_DIR)/tb-c.vhd
110
 
111
 
112
.PHONY: elaborate
113
elaborate: tb_behav_c0
114
 
115
tb_behav_c0: analyze
116
        $(ELABORATE) tb_behav_c0; \
117
        strip tb_behav_c0
118
 
119
.PHONY: analyze
120
analyze: work/tb-c.o
121
 
122
.PHONY: clean
123
clean:
124
        rm -rf work tb_behav_c0 *~

powered by: WebSVN 2.1.0

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