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

Subversion Repositories gamepads

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 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 4 arniml
#
7
# Copyright (c) 2004, Arnim Laeuger (arniml@opencores.org)
8
#
9
# All rights reserved
10
#
11
##############################################################################
12 3 arniml
 
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/snespad_pack-p.o: $(RTL_DIR)/snespad_pack-p.vhd
30
        $(ANALYZE) $(RTL_DIR)/snespad_pack-p.vhd
31
 
32
work/snespad_ctrl.o: $(RTL_DIR)/snespad_ctrl.vhd \
33
                     work/snespad_pack-p.o
34
        $(ANALYZE) $(RTL_DIR)/snespad_ctrl.vhd
35
work/snespad_ctrl-c.o: $(RTL_DIR)/snespad_ctrl-c.vhd \
36
                       work/snespad_ctrl.o
37
        $(ANALYZE) $(RTL_DIR)/snespad_ctrl-c.vhd
38
 
39
work/snespad_pad.o: $(RTL_DIR)/snespad_pad.vhd \
40
                    work/snespad_pack-p.o
41
        $(ANALYZE) $(RTL_DIR)/snespad_pad.vhd
42
work/snespad_pad-c.o: $(RTL_DIR)/snespad_pad-c.vhd  \
43
                      work/snespad_pad.o
44
        $(ANALYZE) $(RTL_DIR)/snespad_pad-c.vhd
45
 
46
work/snespad.o: $(RTL_DIR)/snespad.vhd \
47
                work/snespad_pack-p.o  \
48
                work/snespad_ctrl.o    \
49
                work/snespad_pad.o
50
        $(ANALYZE) $(RTL_DIR)/snespad.vhd
51
work/snespad-c.o: $(RTL_DIR)/snespad-c.vhd \
52
                  work/snespad.o           \
53
                  work/snespad_ctrl-c.o    \
54
                  work/snespad_pad-c.o
55
        $(ANALYZE) $(RTL_DIR)/snespad-c.vhd
56
 
57 4 arniml
work/snespad_comp-pack.o: $(RTL_DIR)/snespad_comp-pack.vhd
58
        $(ANALYZE) $(RTL_DIR)/snespad_comp-pack.vhd
59
 
60
work/tb.o: $(BENCH_DIR)/tb.vhd      \
61
           work/snespad_comp-pack.o \
62 3 arniml
           work/snespad.o
63
        $(ANALYZE) $(BENCH_DIR)/tb.vhd
64
work/tb-c.o: $(BENCH_DIR)/tb-c.vhd \
65
             work/tb.o             \
66
             work/snespad-c.o
67
        $(ANALYZE) $(BENCH_DIR)/tb-c.vhd
68
 
69
 
70
.PHONY: elaborate
71
elaborate: tb_behav_c0
72
 
73
tb_behav_c0: analyze
74
        $(ELABORATE) tb_behav_c0; \
75
        strip tb_behav_c0
76
 
77
.PHONY: analyze
78
analyze: work/tb-c.o
79
 
80
.PHONY: clean
81
clean:
82
        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.