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

Subversion Repositories gamepads

[/] [gamepads/] [trunk/] [snespad/] [sim/] [rtl_sim/] [Makefile] - Blame information for rev 3

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

Line No. Rev Author Line
1 3 arniml
 
2
 
3
PROJECT_DIR = ../..
4
RTL_DIR     = $(PROJECT_DIR)/rtl/vhdl
5
BENCH_DIR   = $(PROJECT_DIR)/bench/vhdl
6
 
7
 
8
 
9
ANALYZE=ghdl -a --std=87 --workdir=work
10
ELABORATE=ghdl -e --std=87 --workdir=work
11
 
12
.PHONY: all
13
all: work elaborate
14
 
15
work:
16
        mkdir work
17
 
18
work/snespad_pack-p.o: $(RTL_DIR)/snespad_pack-p.vhd
19
        $(ANALYZE) $(RTL_DIR)/snespad_pack-p.vhd
20
 
21
work/snespad_ctrl.o: $(RTL_DIR)/snespad_ctrl.vhd \
22
                     work/snespad_pack-p.o
23
        $(ANALYZE) $(RTL_DIR)/snespad_ctrl.vhd
24
work/snespad_ctrl-c.o: $(RTL_DIR)/snespad_ctrl-c.vhd \
25
                       work/snespad_ctrl.o
26
        $(ANALYZE) $(RTL_DIR)/snespad_ctrl-c.vhd
27
 
28
work/snespad_pad.o: $(RTL_DIR)/snespad_pad.vhd \
29
                    work/snespad_pack-p.o
30
        $(ANALYZE) $(RTL_DIR)/snespad_pad.vhd
31
work/snespad_pad-c.o: $(RTL_DIR)/snespad_pad-c.vhd  \
32
                      work/snespad_pad.o
33
        $(ANALYZE) $(RTL_DIR)/snespad_pad-c.vhd
34
 
35
work/snespad.o: $(RTL_DIR)/snespad.vhd \
36
                work/snespad_pack-p.o  \
37
                work/snespad_ctrl.o    \
38
                work/snespad_pad.o
39
        $(ANALYZE) $(RTL_DIR)/snespad.vhd
40
work/snespad-c.o: $(RTL_DIR)/snespad-c.vhd \
41
                  work/snespad.o           \
42
                  work/snespad_ctrl-c.o    \
43
                  work/snespad_pad-c.o
44
        $(ANALYZE) $(RTL_DIR)/snespad-c.vhd
45
 
46
work/tb.o: $(BENCH_DIR)/tb.vhd \
47
           work/snespad.o
48
        $(ANALYZE) $(BENCH_DIR)/tb.vhd
49
work/tb-c.o: $(BENCH_DIR)/tb-c.vhd \
50
             work/tb.o             \
51
             work/snespad-c.o
52
        $(ANALYZE) $(BENCH_DIR)/tb-c.vhd
53
 
54
 
55
.PHONY: elaborate
56
elaborate: tb_behav_c0
57
 
58
tb_behav_c0: analyze
59
        $(ELABORATE) tb_behav_c0; \
60
        strip tb_behav_c0
61
 
62
.PHONY: analyze
63
analyze: work/tb-c.o
64
 
65
.PHONY: clean
66
clean:
67
        rm -rf work tb_behav_c0 *~

powered by: WebSVN 2.1.0

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