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

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [prj/] [Makefile] - Blame information for rev 107

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

Line No. Rev Author Line
1 104 rfajardo
VERILOG_PROJECTS = minsoc_bench.prj minsoc_top.prj or1200_top.prj adbg_top.prj jtag_top.prj uart_top.prj ethmac.prj
2
VHDL_PROJECTS = altera_virtual_jtag.prj
3 85 rfajardo
 
4 104 rfajardo
PROJECTS = $(VERILOG_PROJECTS) $(VHDL_PROJECTS)
5 85 rfajardo
SRC_DIR = src
6
SCRIPTS_DIR = scripts
7
 
8
SIMULATION_DIR = sim
9
XILINX_DIR = xilinx
10
ALTERA_DIR = altera
11
 
12 104 rfajardo
SIM_VERILOG_FILES = $(addprefix $(SIMULATION_DIR)/, $(addsuffix .verilog, $(basename $(VERILOG_PROJECTS))))
13
SIM_VHDL_FILES = $(addprefix $(SIMULATION_DIR)/, $(addsuffix .vhdl, $(basename $(VHDL_PROJECTS))))
14 85 rfajardo
XILINX_PRJ_FILES = $(addprefix $(XILINX_DIR)/, $(addsuffix .prj, $(basename $(PROJECTS))))
15
XILINX_XST_FILES = $(addprefix $(XILINX_DIR)/, $(addsuffix .xst, $(basename $(PROJECTS))))
16 95 javieralso
ALTERA_PRJ_FILES = $(addprefix $(ALTERA_DIR)/, $(addsuffix .prj, $(basename $(PROJECTS))))
17 85 rfajardo
 
18 104 rfajardo
all: $(SIMULATION_DIR)/minsoc_verilog.src $(SIMULATION_DIR)/minsoc_vhdl.src $(XILINX_PRJ_FILES) $(XILINX_XST_FILES) $(ALTERA_PRJ_FILES)
19 85 rfajardo
 
20
clean:
21 104 rfajardo
        rm -rf $(SIMULATION_DIR)/*.verilog $(SIMULATION_DIR)/*.vhdl $(SIMULATION_DIR)/*.src $(XILINX_DIR)/*.prj $(XILINX_DIR)/*.xst $(ALTERA_DIR)/*.prj
22 85 rfajardo
 
23
$(XILINX_DIR)/minsoc_top.xst: $(SRC_DIR)/minsoc_top.prj
24
        bash $(SCRIPTS_DIR)/xilinxxst.sh $^ $@ minsoc_top.prj minsoc_top topmodule
25
 
26
$(XILINX_DIR)/minsoc_top.prj: $(SRC_DIR)/minsoc_top.prj
27
        bash $(SCRIPTS_DIR)/xilinxprj.sh $^ $@ topmodule
28
 
29
$(XILINX_DIR)/%.xst: $(SRC_DIR)/%.prj
30
        bash $(SCRIPTS_DIR)/xilinxxst.sh $^ $@ $*.prj $*
31
 
32
$(XILINX_DIR)/%.prj: $(SRC_DIR)/%.prj
33
        bash $(SCRIPTS_DIR)/xilinxprj.sh $^ $@
34
 
35 95 javieralso
$(ALTERA_DIR)/%.prj: $(SRC_DIR)/%.prj
36
        bash $(SCRIPTS_DIR)/altprj.sh $^ $@
37
 
38 104 rfajardo
$(SIMULATION_DIR)/minsoc_verilog.src: $(SIM_VERILOG_FILES)
39
        cat $(SIM_VERILOG_FILES) > $(SIMULATION_DIR)/minsoc_verilog.src
40 85 rfajardo
 
41 104 rfajardo
$(SIMULATION_DIR)/minsoc_vhdl.src: $(SIM_VHDL_FILES)
42
        cat $(SIM_VHDL_FILES) > $(SIMULATION_DIR)/minsoc_vhdl.src
43 85 rfajardo
 
44 104 rfajardo
$(SIMULATION_DIR)/%.verilog: $(SRC_DIR)/%.prj
45
        bash $(SCRIPTS_DIR)/simverilog.sh $^ $@
46
 
47
$(SIMULATION_DIR)/%.vhdl: $(SRC_DIR)/%.prj
48
        bash $(SCRIPTS_DIR)/simvhdl.sh $^ $@
49
 

powered by: WebSVN 2.1.0

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