source: doc/theses/thierry_delisle_PhD/code/readQ_example/Makefile @ 503c350

Last change on this file since 503c350 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: 752 bytes
Line 
1all: gui-proto-pthread gui-proto-fibre gui-proto-cforall
2
3PRECIOUS: thrdlib/libthrd-pthread.so thrdlib/libthrd-fibre.so thrdlib/libthrd-cforall.so
4
5CXXFLAGS = -fpic -g -O0 -I.
6
7thrdlib/libthrd-%.so:
8        +${MAKE} -C thrdlib libthrd-$*.so
9
10gui-proto-%: proto-gui/main.o thrdlib/libthrd-%.so Makefile
11        $(CXX) -Lthrdlib -Wl,--rpath,thrdlib -pthread -o $@ $< -lthrd-$*
12
13CFAINC=${HOME}/local/include/cfa-dev
14CFALIB=${HOME}/local/lib/cfa-dev/x64-debug
15CFAFLAGS=-z execstack -ftls-model=initial-exec -L${CFALIB} -Wl,-rpath,${CFALIB}
16
17gui-proto-cforall: proto-gui/main.o thrdlib/libthrd-cforall.so Makefile
18        $(CXX) -Lthrdlib -Wl,--rpath,thrdlib ${CFAFLAGS} -pthread -o $@ $< -lthrd-cforall -Wl,--push-state,--no-as-needed -lcfathread -lcfa -ldl -lm -Wl,--pop-state
Note: See TracBrowser for help on using the repository browser.