summaryrefslogtreecommitdiffstats
path: root/zpu/sw/emulation/Makefile
blob: 60e72d1df2ea2aba71b5bcc90d0adefd11d91402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# JTAG / shifter real life test bench code
# (c) 2005-2011, Martin Strubel <hackfin@section5.ch>
#

NETPP = $(HOME)/src/netpp
BFEMU = $(HOME)/src/blackfin/bfemu

XSL = tapreg.xsl
# TAP register definitions:
TAPDEF = $(HOME)/src/vhdl/tap/tap.xml

CFLAGS = -I$(BFEMU) -g -Wall

DUTIES = libzpuemu.a

all: $(DUTIES)

tap.h: $(TAPDEF) $(XSL)
	xsltproc -o $@ $(XSL) $<

zpu-tap.h: $(TAPDEF) $(XSL)
	xsltproc -o $@ --param selectDevice 2 $(XSL) $<

LIBOBJS = zpuemu.o

libzpuemu.a: $(LIBOBJS)
	$(AR) ruv $@ $(LIBOBJS)


clean:
	rm -f *.o $(DUTIES)
OpenPOWER on IntegriCloud