-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
executable file
·72 lines (56 loc) · 1.68 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
#
# Makefile for Xilinx Virtex-7 FPGA XT Connectivity Targeted Reference Design
#
export ROOTDIR=$(shell pwd)
include $(ROOTDIR)/include.mk
LBITS := $(shell getconf LONG_BIT)
ifeq ($(LBITS),64)
export OS_TYPE=64
endif
ifeq ($(LBITS),32)
export OS_TYPE=32
endif
all::
ifeq ($(DRIVER_MODE),$(filter $(DRIVER_MODE),PERFORMANCE ))
@$(call compile_performance_driver)
endif
ifeq ($(DRIVER_MODE),$(filter $(DRIVER_MODE),RAWETHERNET ))
@$(call compile_rawethernet_driver)
endif
ifeq ($(DRIVER_MODE),$(filter $(DRIVER_MODE),ETHERNETAPP ))
@$(call compile_ethernet_driver)
endif
@echo "***** Driver Compiled *****"
clean::
ifeq ($(DRIVER_MODE),$(filter $(DRIVER_MODE),PERFORMANCE ))
@$(call clean_performance_driver)
endif
ifeq ($(DRIVER_MODE),$(filter $(DRIVER_MODE), RAWETHERNET ))
@$(call clean_rawethernet_driver)
endif
ifeq ($(DRIVER_MODE),$(filter $(DRIVER_MODE),ETHERNETAPP ))
@$(call clean_ethernet_driver)
endif
@echo "***** Driver Cleaned *****"
insert::
ifeq ($(DRIVER_MODE),$(filter $(DRIVER_MODE),PERFORMANCE ))
@$(call insert_performance_driver)
endif
ifeq ($(DRIVER_MODE),$(filter $(DRIVER_MODE),RAWETHERNET ))
@$(call insert_rawethernet_driver)
endif
ifeq ($(DRIVER_MODE),$(filter $(DRIVER_MODE),ETHERNETAPP ))
@$(call insert_ethernet_driver)
endif
@echo "***** Driver Loaded *****"
remove::
ifeq ($(DRIVER_MODE),$(filter $(DRIVER_MODE),PERFORMANCE))
@$(call remove_performance_driver)
endif
ifeq ($(DRIVER_MODE),$(filter $(DRIVER_MODE),RAWETHERNET ))
@$(call remove_rawethernet_driver)
endif
ifeq ($(DRIVER_MODE),$(filter $(DRIVER_MODE),ETHERNETAPP ))
@$(call remove_ethernet_driver)
endif
@echo "***** Driver Unloaded *****"