forked from open-power/capi2-bsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
72 lines (58 loc) · 2.48 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
# Copyright 2019 International Business Machines
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
SHELL=/bin/bash
export ROOT_DIR ?= $(abspath .)
export CARDS += AD9H3 AD9H7 AD9V3 N250SP RCXVUP FX609 S241 U200 U50
include $(ROOT_DIR)/capi_bsp_env.mk
.PHONY: help $(CARDS) clean
help:
@echo "Main targets for the capi_board_support project make process:";
@echo "=============================================================";
@echo "* AD9V3 Creates capi_bsp ip for AlphaData 9V3 card";
@echo "* AD9H3 Creates capi_bsp ip for AlphaData 9H3 card";
@echo "* AD9H7 Creates capi_bsp ip for AlphaData 9H7 card";
@echo "* N250SP Creates capi_bsp ip for Nallatech 250S+ card";
@echo "* RCXVUP Creates capi_bsp ip for XpressVUP-LP9PT card";
@echo "* FX609 Creates capi_bsp ip for Flyslice-FX609QL card";
@echo "* S241 Creates capi_bsp ip for Semptian S241 card";
@echo "* U200 Creates capi_bsp ip for Xilinx U200 card";
@echo "* U50 Creates capi_bsp ip for Xilinx U50 card";
@echo "* clean Removes all files generated in make process";
@echo "* help Prints this message";
@echo "* Example : make AD9V3";
all: $(CARDS)
# Disabling implicit rule for shell scripts
%: %.sh
$(CARDS):
@if [ -d $@ ]; then \
$(MAKE) -sC $@ create_ip || exit -1; \
else \
echo "ERROR: Directory $@ doesn't exist. Terminating."; \
exit -1; \
fi
clean:
@echo "[CLEANING............] start "`date +"%T %a %b %d %Y"`
@for dir in $(CARDS); do \
if [ -d $$dir ]; then \
$(MAKE) -s -C $$dir $@ || exit 1; \
fi \
done
@$(RM) *~
@$(RM) -r vivado*
@$(RM) -r .Xil
@$(RM) -r psl/.psl_*
@$(RM) -r psl/build_*
@echo "[CLEANING............] done "`date +"%T %a %b %d %Y"`