forked from pulp-platform/gvsoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (24 loc) · 803 Bytes
/
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
export VP_ROOT_DIR = $(CURDIR)
define declareInstallFile
$(INSTALL_DIR)/$(1): $(1)
install -D $(1) $$@
TARGETS += $(INSTALL_DIR)/$(1)
endef
INSTALL_FILES += bin/pulp-pc-info
INSTALL_FILES += bin/pulp-trace-extend
$(foreach file, $(INSTALL_FILES), $(eval $(call declareInstallFile,$(file))))
clean:
make -C engine clean
make -C launcher clean
make -C models clean
build: $(TARGETS)
install -D vp_models.mk $(INSTALL_DIR)/rules/vp_models.mk
ifdef VP_USE_SYSTEMC_DRAMSYS
mkdir -p models/memory/dram.sys/build && cd models/memory/dram.sys/build && qmake ../DRAMSys/DRAMSys.pro && make
endif # VP_USE_SYSTEMC_DRAMSYS
make -C engine build
make -C launcher build
make -C models props ARCHI_DIR=$(ARCHI_DIR)
make -C models build ARCHI_DIR=$(ARCHI_DIR)
checkout:
git submodule update --init