Makefile 1.56 KB
Newer Older
1 2 3 4 5 6
VERILOGDIR=   $(DESTDIR)/usr/local/verilog
INSTALLDIR=   $(DESTDIR)/usr/local/bin
DOCUMENTROOT= $(DESTDIR)/www/pages

SCRIPTPATH=   py393
COCOTB =      cocotb
7

8 9 10 11 12 13 14
LINK = ln
OWN = -o root -g root
#INSTALL = $(INSTALL)
INSTMODE   = 0755
DOCMODE    = 0644
PYTHON_EXE = $(SCRIPTPATH)/*.py \
             cocotb/socket_command.py
15

16 17 18 19 20
FPGA_BITFILES =   *.bit
VERILOG_HEADERS = system_defines.vh \
                  includes/x393_parameters.vh \
				  includes/x393_localparams.vh \
				  includes/x393_cur_params_target.vh
21

22 23
COMMAND_FILES =   py393/hargs \
				  py393/hargs-auto \
24 25
				  py393/hargs-after \
				  py393/hargs-eyesis \
26
				  py393/hargs-hispi \
27 28 29
				  py393/hargs-post-par12 \
				  py393/hargs-power_par12 \
				  py393/hargs-power-eyesis \
30 31 32 33 34 35 36 37 38 39 40 41 42
				  py393/includes \
				  py393/startup5 \
				  py393/startup14

all:
	@echo "make all in x393"
install:
	@echo "make install in x393"
	$(INSTALL) $(OWN) -d $(VERILOGDIR)
	$(INSTALL) $(OWN) -d $(DOCUMENTROOT)
	$(INSTALL) $(OWN) -d $(INSTALLDIR)

	$(INSTALL) $(OWN) -m $(INSTMODE) $(PYTHON_EXE)                          $(INSTALLDIR)
43

44 45 46 47 48 49 50 51 52 53 54
	$(INSTALL) $(OWN) -m $(DOCMODE) $(FPGA_BITFILES)                        $(VERILOGDIR)
	$(INSTALL) $(OWN) -m $(DOCMODE) $(VERILOG_HEADERS)                      $(VERILOGDIR)
	$(INSTALL) $(OWN) -m $(DOCMODE) $(COMMAND_FILES)                        $(VERILOGDIR)

	$(LINK) -s -r        $(INSTALLDIR)/imgsrv.py                            $(DOCUMENTROOT)
#	$(INSTALL) $(OWN) -m $(INSTMODE) $(SCRIPTPATH)/imgsrv.py                $(DOCUMENTROOT)
#unistall
#    rm $(SCRIPTPATH)/imgsrv.py

clean:
	@echo "make clean in x393"