-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
35 lines (25 loc) · 942 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
.PHONY: all clean
# BDE_INCLUDES:=-I/opt/bb/include
# BDE_LIBS:=-L/opt/bb/lib64 -lbdl -lbsl
EXECUTABLES:= \
simplicity.gcc \
simplicity.clang \
libcpp_bug.gcc \
libcpp_bug.clang \
before_after.gcc \
before_after.clang
all: ${EXECUTABLES}
simplicity.gcc: simplicity.cpp
g++ -std=c++17 -I. ${BDE_INCLUDES} $< ${BDE_LIBS} -o $@
simplicity.clang: simplicity.cpp
clang++ -std=c++17 -stdlib=libc++ -I. ${BDE_INCLUDES} $< -lc++experimental ${BDE_LIBS} -o $@
libcpp_bug.gcc: libcpp_bug.cpp
g++ -std=c++17 -I. ${BDE_INCLUDES} $< ${BDE_LIBS} -o $@
libcpp_bug.clang: libcpp_bug.cpp
clang++ -std=c++17 -stdlib=libc++ -I. ${BDE_INCLUDES} $< -lc++experimental ${BDE_LIBS} -o $@
before_after.gcc: before_after.cpp
g++ -std=c++17 -I. ${BDE_INCLUDES} $< ${BDE_LIBS} -o $@
before_after.clang: before_after.cpp
clang++ -std=c++17 -stdlib=libc++ -I. ${BDE_INCLUDES} $< -lc++experimental ${BDE_LIBS} -o $@
clean:
$(RM) ${EXECUTABLES}