source: doc/theses/thierry_delisle_PhD/code/readQ_example/thrdlib/Makefile @ d4da6886

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since d4da6886 was 4e39f51, checked in by Thierry Delisle <tdelisle@…>, 3 years ago

More work towards dynamically picking a framework, however initial-exec tls is not working correctly

  • Property mode set to 100644
File size: 593 bytes
Line 
1all: fibre.so pthread.so cforall.so
2
3clean:
4        rm -rf fibre.so pthread.so
5
6CXXFLAGS=-Wall -Wextra -O3 -g -fpic -std=c++17 -pthread -ftls-model=initial-exec
7
8pthread.so: pthread.cpp Makefile
9        $(CXX) $(CXXFLAGS) -shared -o ${@} ${<}
10
11fibre.so: fibre.cpp Makefile
12        $(CXX) $(CXXFLAGS) -shared -o ${@} ${<} -lfibre
13
14CFAINC=${HOME}/local/include/cfa-dev
15CFALIB=${HOME}/local/lib/cfa-dev/x64-debug
16CFAFLAGS=-z execstack -I${CFAINC} -I${CFAINC}/concurrency -L${CFALIB} -Wl,-rpath,${CFALIB}
17
18cforall.so: cforall.cpp Makefile
19        $(CXX) $(CXXFLAGS) $(CFAFLAGS) -shared -o ${@} ${<} -lcfathread -lcfa -ldl -lm
Note: See TracBrowser for help on using the repository browser.