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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [boards/] [actel/] [ordb1a3pe1500/] [rtl/] [verilog/] [versatile_mem_ctrl/] [Makefile] - Blame information for rev 408

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 408 julius
REPOS_NAME=versatile_mem_ctrl
2
REPOS_ADR=http://opencores.org/ocsvn/$(REPOS_NAME)/$(REPOS_NAME)/trunk
3
# Resulting file we need
4
TOP_FILE=versatile_mem_ctrl.v
5
# Dir to checkout in the reposti
6
REPOS_DIR=rtl
7
REPOS_FILE_TO_MAKE_NAME=sdr_16.v
8
REPOS_MAKE_DIR=$(REPOS_DIR)/verilog
9
FILE_TO_MAKE=$(REPOS_MAKE_DIR)/$(REPOS_FILE_TO_MAKE_NAME)
10
REVISION= # could be -r 35, for example, to use a specific revision's version
11
 
12
SVN_GET_CMD=co # Could also be export, if we you want an unversioned copy
13
 
14
# Set V=1 when calling make to enable verbose output
15
# mainly for debugging purposes.
16
ifeq ($(V), 1)
17
Q=
18
QUIET=
19
else
20
Q ?=@
21
QUIET=-quiet
22
endif
23
 
24
ifeq ($(NO_CHECKOUT), 1)
25
OUR_DEPENDS=
26
else
27
OUR_DEPENDS=$(REPOS_DIR) $(FILE_TO_MAKE)
28
endif
29
 
30
all: $(TOP_FILE)
31
 
32
# Local copy of previous controller
33
#$(TOP_FILE): versatile_mem_ctrl_ip.v sdr_16_defines.v  versatile_mem_ctrl_defines.v TwoPortRAM_256x36.v
34
#       vppreproc +incdir+. versatile_mem_ctrl_ip.v > $@
35
 
36
# Memory controller from repos:
37
# This renames the top module,so it's exactly the same as the module folder name
38
$(TOP_FILE): $(OUR_DEPENDS)
39
        $(Q)touch $(FILE_TO_MAKE)
40
        $(Q)cat $(FILE_TO_MAKE) | sed 's/module\ versatile_mem_ctrl_top/module\ versatile_mem_ctrl/' > $@
41
 
42
# Force this guy to get at least a once over with make each time
43
.PHONY: $(FILE_TO_MAKE)
44
$(FILE_TO_MAKE):
45
        $(Q)$(MAKE) -C $(REPOS_MAKE_DIR) $(REPOS_FILE_TO_MAKE_NAME)
46
 
47
# Checkout the repository
48
$(REPOS_DIR):
49
        $(Q)if [ ! -d $@ ]; then \
50
                echo; \
51
                echo "\t### Checking out "$(REPOS_NAME)" from OpenCores ###"; \
52
                echo; \
53
                svn $(SVN_GET_CMD) $(REVISION) $(REPOS_ADR)/$@; \
54
        else \
55
                if [ $(SVN_GET_CMD) = "co" ]; then \
56
                        echo; \
57
                        echo "\t### Updating "$(REPOS_NAME)" from OpenCores repository ###"; \
58
                        echo; \
59
                        cd $(REPOS_DIR) && svn update; \
60
                fi; \
61
        fi
62
 
63
# Just remove the top file, causing it to be remade
64
clean: clean-repos
65
#       rm -f $(TOP_FILE)
66
 
67
# Clean the checked out repository
68
clean-repos:
69
        $(Q)echo;echo "\t### Cleaning "$(REPOS_NAME)" checkout ###"; echo
70
        $(Q)if [ -d $(REPOS_DIR) ]; then \
71
                $(MAKE) -C $(REPOS_MAKE_DIR) clean; \
72
        fi
73
 
74
# Remove the checked out repository
75
distclean:
76
#       $(Q)echo;echo "\t### Removing "$(REPOS_NAME)" checkout ###";echo
77
#       $(Q)rm -rf $(REPOS_DIR)

powered by: WebSVN 2.1.0

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