Makefile 791 Bytes
Newer Older
1
2
include mk/subdir_pre.mk
include mk/recipes.mk
3

4
5
6
7
8
9
10
11
12
13
14
15
16
base_dir := $(d)./

CFLAGS += -Wall -Wextra -Wno-unused-parameter -O3 -fPIC
CXXFLAGS += -Wall -Wextra -Wno-unused-parameter -O3 -fPIC

VERILATOR = verilator
VFLAGS = +1364-2005ext+v \
    -Wno-WIDTH -Wno-PINMISSING -Wno-LITENDIAN -Wno-IMPLICIT -Wno-SELRANGE \
    -Wno-CASEINCOMPLETE -Wno-UNSIGNED

$(eval $(call subdir,lib))
$(eval $(call subdir,sims))
$(eval $(call subdir,images))
17

18

19
20
21
22
23
24
25
help:
	@echo "Targets:"
	@echo "  all: builds all the tools directly in this repo"
	@echo "  clean: cleans all the tool folders in this repo"
	@echo "  build-images: prepare prereqs for VMs (images directory)"
	@echo "  external: clone and build our tools in external repos "
	@echo "            (qemu, gem5, ns-3)"
26

27
.PHONY: help
28

29
include mk/subdir_post.mk