forked from jrk/llvmptxbackend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.common.in
46 lines (33 loc) · 1.18 KB
/
Makefile.common.in
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
# Set the name of the project here
PROJECT_NAME := sample
PROJ_VERSION := 0.9
# Set this variable to the top of the LLVM source tree.
LLVM_SRC_ROOT = @LLVM_SRC@
# Set this variable to the top level directory where LLVM was built
# (this is *not* the same as OBJ_ROOT as defined in LLVM's Makefile.config).
LLVM_OBJ_ROOT = @LLVM_OBJ@
# Set the directory root of this project's source files
PROJ_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
# Set the root directory of this project's object files
PROJ_OBJ_ROOT := $(subst //,/,@abs_top_objdir@)
# Set the root directory of this project's install prefix
PROJ_INSTALL_ROOT := @prefix@
WARNINGS :=-pedantic \
-Wall \
-Wextra \
-Winit-self \
-Wcast-qual \
-Winline
# -Wmissing-include-dirs
# -Wconversion
CWARNINGS :=-Wstrict-prototypes \
-Wc++-compat \
-Winline
CXXWARNINGS :=-Wno-variadic-macros
# -Weffc++
# -Wshadow
#LOADABLE_MODULE := 1 <- Could this be popular?
CXXFLAGS := ${CXXFLAGS} -std=c++98 ${WARNINGS} ${CXXWARNINGS} -fPIC
CFLAGS := ${CFLAGS} -std=c99 ${WARNINGS} ${CWARNINGS} -fPIC
# Include LLVM's Master Makefile.
include $(LLVM_OBJ_ROOT)/Makefile.common