-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
38 lines (29 loc) · 1.08 KB
/
Makefile
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
32
33
34
35
36
37
38
IP_AAGC = ip/agc_analogue/ip/component.xml
IP_DAGC = ip/agc_digital/ip/component.xml
Z2_LOOPBACK = boards/Pynq-Z2/bin/agc_loopback.bit
ZCU111_LOOPBACK = boards/ZCU111/bin/agc_loopback.bit
2x2_LOOPBACK = boards/RFSoC2x2/bin/agc_loopback.bit
4x2_LOOPBACK = boards/RFSoC4x2/bin/agc_loopback.bit
TARBALL = pynq_agc.tar.gz
all : $(TARBALL)
$(TARBALL): $(Z2_LOOPBACK) $(ZCU111_LOOPBACK) $(2x2_LOOPBACK) $(4x2_LOOPBACK)
tar -czf $(TARBALL) \
--exclude="boards/Pynq-Z2/prj_loopback" \
--exclude="boards/ZCU111/prj_loopback" \
--exclude="boards/RFSoC2x2/prj_loopback" \
--exclude="boards/RFSoC4x2/prj_loopback" \
*
$(IP_AAGC):
make -C ip/agc_analogue
$(IP_DAGC):
make -C ip/agc_digital
$(Z2_LOOPBACK): $(IP_DAGC)
make -C boards/Pynq-Z2
$(ZCU111_LOOPBACK): $(IP_DAGC)
make -C boards/ZCU111
$(2x2_LOOPBACK): $(IP_DAGC)
make -C boards/RFSoC2x2
$(4x2_LOOPBACK): $(IP_DAGC)
make -C boards/RFSoC4x2
clean:
rm $(TARBALL); make -C ip/agc_analogue clean; make -C ip/agc_digital clean; make -C boards/Pynq-Z2 clean; make -C boards/ZCU111 clean; make -C boards/RFSoC2x2 clean; make -C boards/RFSoC4x2 clean;