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

Subversion Repositories minsoc

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

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

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

powered by: WebSVN 2.1.0

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