forked from siracusa-soc/pulp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (30 loc) · 880 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
35
36
37
38
39
40
41
42
43
44
# the MAGICK_ROOT variable can be used to pass an alternative installation
# prefix for the GraphicsMagick library.
ifdef MAGICK_ROOT
export MAGICK_ROOT := $(realpath $(MAGICK_ROOT))
endif
SHELL=bash
ifndef PULP_SDK_HOME
$(error Please source the proper configuration first)
endif
BUILD_DIR ?= $(CURDIR)/build
export BUILD_DIR
include rules/json-tools.mk
include rules/gap-configs.mk
include rules/pulp-debug-bridge.mk
include rules/pulpos.mk
CMAKE_FLAGS ?= -j 6
CMAKE ?= cmake
build:
$(CMAKE) -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=$(PULP_SDK_HOME)/install/workstation \
-DGVSOC_MODULES="$(GVSOC_MODULES)" \
-DGVSOC_TARGETS=${GVSOC_TARGETS}
$(CMAKE) --build build $(CMAKE_FLAGS)
$(CMAKE) --install build
clean:
rm -rf build install
checkout:
git submodule update --recursive --init
all: checkout build
.PHONY: build