| 1 |
CC=clang++ -x c++ |
| 2 |
PLATFORM_CPPFLAGS=-DNSYNC_USE_CPP11_TIMEPOINT -DNSYNC_ATOMIC_CPP11 -I../../platform/c++11 -I../../platform/gcc -I../../platform/posix -pthread |
| 3 |
PLATFORM_CFLAGS=-std=c++11 -Werror -Wall -Wextra -pedantic |
| 4 |
PLATFORM_LDFLAGS=-pthread |
| 5 |
MKDEP=${CC} -M -std=c++11 |
| 6 |
# It's dangerous to use C++ class destructors if we can avoid it, because nsync |
| 7 |
# may be linked into the address space multiple times, so we use the posix |
| 8 |
# per_thread_waiter. |
| 9 |
PLATFORM_C=../../platform/c++11/src/nsync_semaphore_mutex.cc ../../platform/posix/src/per_thread_waiter.c ../../platform/c++11/src/yield.cc ../../platform/c++11/src/time_rep_timespec.cc ../../platform/c++11/src/nsync_panic.cc |
| 10 |
PLATFORM_OBJS=nsync_semaphore_mutex.o per_thread_waiter.o yield.o time_rep_timespec.o nsync_panic.o |
| 11 |
TEST_PLATFORM_C=../../platform/c++11/src/start_thread.cc |
| 12 |
TEST_PLATFORM_OBJS=start_thread.o |
| 13 |
|
| 14 |
include ../../platform/posix/make.common |
| 15 |
include dependfile |
| 16 |
|
| 17 |
LD=clang++ |
| 18 |
time_rep_timespec_test.o: ../../platform/c++11/src/time_rep_timespec_test.cc; ${CC} ${CFLAGS} -I../../testing -c ../../platform/c++11/src/time_rep_timespec_test.cc |
| 19 |
time_rep_timespec_test: time_rep_timespec_test.o ${TEST_LIB} ${LIB}; ${CC} ${LDFLAGS} -o $@ [email protected] ${TEST_LIB} ${LIB} ${PLATFORM_LIBS} |