source:
doc/theses/thierry_delisle_PhD/code/readQ_example/Makefile
@
20be782
Last change on this file since 20be782 was 72b1800, checked in by , 2 years ago | |
---|---|
|
|
File size: 752 bytes |
Line | |
---|---|
1 | all: gui-proto-pthread gui-proto-fibre gui-proto-cforall |
2 | |
3 | PRECIOUS: thrdlib/libthrd-pthread.so thrdlib/libthrd-fibre.so thrdlib/libthrd-cforall.so |
4 | |
5 | CXXFLAGS = -fpic -g -O0 -I. |
6 | |
7 | thrdlib/libthrd-%.so: |
8 | +${MAKE} -C thrdlib libthrd-$*.so |
9 | |
10 | gui-proto-%: proto-gui/main.o thrdlib/libthrd-%.so Makefile |
11 | $(CXX) -Lthrdlib -Wl,--rpath,thrdlib -pthread -o $@ $< -lthrd-$* |
12 | |
13 | CFAINC=${HOME}/local/include/cfa-dev |
14 | CFALIB=${HOME}/local/lib/cfa-dev/x64-debug |
15 | CFAFLAGS=-z execstack -ftls-model=initial-exec -L${CFALIB} -Wl,-rpath,${CFALIB} |
16 | |
17 | gui-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.