-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (45 loc) · 1.21 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
# Copyright 2014 Nico Reißmann <[email protected]>
# See COPYING for terms of redistribution.
define HELP_TEXT
clear
echo "Makefile for the JLM compiler"
echo "Version 1.1 - 2019-11-26"
endef
.PHONY: help
help:
@$(HELP_TEXT)
@$(HELP_TEXT_JLM)
@echo ""
@echo "all Compile jlm in release mode, and run unit and C tests"
@echo "release Alias for jlm-release"
@echo "debug Alias for jlm-debug and check"
@echo "docs Generate doxygen documentation."
@echo "clean Alias for jlm-clean"
@$(HELP_TEXT_JIVE)
JLM_ROOT ?= .
include $(JLM_ROOT)/Makefile.sub
# LLVM related variables
CLANG_BIN=$(shell $(LLVMCONFIG) --bindir)
CC=$(CLANG)
CXX=$(CLANG_BIN)/clang++
.PHONY: all
all: jlm-release check
.PHONY: release
release: jlm-release
.PHONY: debug
debug: jlm-debug check
.PHONY: check
check: jlm-check
.PHONY: check-ctets
check-ctests: jlm-check-ctests
.PHONY: check-utets
check-utests: jlm-check-utests
.PHONY: valgrind-check
valgrind-check: jlm-valgrind-check
.PHONY: docs
docs: jlm-docs-build
.PHONY: clean
clean: jlm-clean
ifeq ($(shell if [ -e .Makefile.override ] ; then echo yes ; fi),yes)
include .Makefile.override
endif