source: doc/theses/thierry_delisle_PhD/code/readQ_example/thrdlib/Makefile @ 0dffe91

Last change on this file since 0dffe91 was 72b1800, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Some previous in progress work.
Commited only so it stops showing in my git status.

  • Property mode set to 100644
File size: 765 bytes
Line 
1all: fibre.so libthrd-pthread.so.so cforall.so
2
3clean:
4        rm -rf fibre.so libthrd-pthread.so.so cforall.so
5
6CXXFLAGS=-Wall -Wextra -O3 -g -fpic -std=c++17 -pthread -ftls-model=initial-exec
7
8libthrd-pthread.so: thread.cpp thread.hpp Makefile
9        $(CXX) $(CXXFLAGS) -shared -o $@ $< -DWITH_PTHREADS
10
11libthrd-fibre.so: thread.cpp thread.hpp Makefile
12        $(CXX) $(CXXFLAGS) -shared -o $@ $< -DWITH_LIBFIBRE -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
18libthrd-cforall.so: thread.cpp thread.hpp Makefile
19        $(CXX) $(CXXFLAGS) $(CFAFLAGS) -shared -o $@ $< -DWITH_CFORALL -Wl,--push-state,--no-as-needed -lcfathread -lcfa -ldl -lm -Wl,--pop-state
Note: See TracBrowser for help on using the repository browser.