source: doc/theses/thierry_delisle_PhD/code/readQ_example/thrdlib/Makefile@ 4e39f51

ADT arm-eh ast-experimental enum forall-pointer-decay jacob/cs343-translation new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since 4e39f51 was 4e39f51, checked in by Thierry Delisle <tdelisle@…>, 5 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.