Skip to content

Commit e996211

Browse files
author
Antony MECHIN
committed
examples.Makefile: Add constant ELLE, representing Elle's install path.
1 parent 5df19ef commit e996211

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

examples/Makefile.tmpl

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,100 @@
11
all: bin/demo/google_maps bin/demo/elle/reactor/echo_server bin/samples/elle/serialization bin/samples/elle/log bin/samples/http_get_signed_json bin/samples/elle/cryptography/sample bin/samples/elle/printable bin/samples/elle/das/das bin/samples/elle/buffer bin/samples/get_wikipedia bin/samples/elle/attributes bin/demo/elle/cryptography/crypt
22

33
SOURCE_DIR=../examples
4+
ELLE=${prefix}
45

56
bin/demo/google_maps: src/demo/google_maps.o
67
@mkdir -p bin/demo
7-
g++ -pthread -Wl,-rpath,${prefix}/lib -L ${prefix}/lib src/demo/google_maps.o -o bin/demo/google_maps -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
8+
g++ -pthread -Wl,-rpath,$(ELLE)/lib -L $(ELLE)/lib src/demo/google_maps.o -o bin/demo/google_maps -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
89

910
src/demo/google_maps.o:
1011
@mkdir -p src/demo
11-
g++ -isystem ${prefix}/include -isystem ${prefix}/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/demo/google_maps.cc -o src/demo/google_maps.o
12+
g++ -isystem $(ELLE)/include -isystem $(ELLE)/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/demo/google_maps.cc -o src/demo/google_maps.o
1213

1314
bin/demo/elle/reactor/echo_server: src/demo/elle/reactor/echo_server.o
1415
@mkdir -p bin/demo/elle/reactor
15-
g++ -pthread -Wl,-rpath,${prefix}/lib -L ${prefix}/lib src/demo/elle/reactor/echo_server.o -o bin/demo/elle/reactor/echo_server -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
16+
g++ -pthread -Wl,-rpath,$(ELLE)/lib -L $(ELLE)/lib src/demo/elle/reactor/echo_server.o -o bin/demo/elle/reactor/echo_server -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
1617

1718
src/demo/elle/reactor/echo_server.o:
1819
@mkdir -p src/demo/elle/reactor
19-
g++ -isystem ${prefix}/include -isystem ${prefix}/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/demo/elle/reactor/echo_server.cc -o src/demo/elle/reactor/echo_server.o
20+
g++ -isystem $(ELLE)/include -isystem $(ELLE)/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/demo/elle/reactor/echo_server.cc -o src/demo/elle/reactor/echo_server.o
2021

2122
bin/samples/elle/serialization: src/samples/elle/serialization.o
2223
@mkdir -p bin/samples/elle
23-
g++ -pthread -Wl,-rpath,${prefix}/lib -L ${prefix}/lib src/samples/elle/serialization.o -o bin/samples/elle/serialization -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
24+
g++ -pthread -Wl,-rpath,$(ELLE)/lib -L $(ELLE)/lib src/samples/elle/serialization.o -o bin/samples/elle/serialization -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
2425

2526
src/samples/elle/serialization.o:
2627
@mkdir -p src/samples/elle
27-
g++ -isystem ${prefix}/include -isystem ${prefix}/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/elle/serialization.cc -o src/samples/elle/serialization.o
28+
g++ -isystem $(ELLE)/include -isystem $(ELLE)/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/elle/serialization.cc -o src/samples/elle/serialization.o
2829

2930
bin/samples/elle/log: src/samples/elle/log.o
3031
@mkdir -p bin/samples/elle
31-
g++ -pthread -Wl,-rpath,${prefix}/lib -L ${prefix}/lib src/samples/elle/log.o -o bin/samples/elle/log -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
32+
g++ -pthread -Wl,-rpath,$(ELLE)/lib -L $(ELLE)/lib src/samples/elle/log.o -o bin/samples/elle/log -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
3233

3334
src/samples/elle/log.o:
3435
@mkdir -p src/samples/elle
35-
g++ -isystem ${prefix}/include -isystem ${prefix}/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/elle/log.cc -o src/samples/elle/log.o
36+
g++ -isystem $(ELLE)/include -isystem $(ELLE)/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/elle/log.cc -o src/samples/elle/log.o
3637

3738
bin/samples/http_get_signed_json: src/samples/http_get_signed_json.o
3839
@mkdir -p bin/samples
39-
g++ -pthread -Wl,-rpath,${prefix}/lib -L ${prefix}/lib src/samples/http_get_signed_json.o -o bin/samples/http_get_signed_json -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
40+
g++ -pthread -Wl,-rpath,$(ELLE)/lib -L $(ELLE)/lib src/samples/http_get_signed_json.o -o bin/samples/http_get_signed_json -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
4041

4142
src/samples/http_get_signed_json.o:
4243
@mkdir -p src/samples
43-
g++ -isystem ${prefix}/include -isystem ${prefix}/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/http_get_signed_json.cc -o src/samples/http_get_signed_json.o
44+
g++ -isystem $(ELLE)/include -isystem $(ELLE)/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/http_get_signed_json.cc -o src/samples/http_get_signed_json.o
4445

4546
bin/samples/elle/cryptography/sample: src/samples/elle/cryptography/sample.o
4647
@mkdir -p bin/samples/elle/cryptography
47-
g++ -pthread -Wl,-rpath,${prefix}/lib -L ${prefix}/lib src/samples/elle/cryptography/sample.o -o bin/samples/elle/cryptography/sample -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
48+
g++ -pthread -Wl,-rpath,$(ELLE)/lib -L $(ELLE)/lib src/samples/elle/cryptography/sample.o -o bin/samples/elle/cryptography/sample -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
4849

4950
src/samples/elle/cryptography/sample.o:
5051
@mkdir -p src/samples/elle/cryptography
51-
g++ -isystem ${prefix}/include -isystem ${prefix}/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/elle/cryptography/sample.cc -o src/samples/elle/cryptography/sample.o
52+
g++ -isystem $(ELLE)/include -isystem $(ELLE)/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/elle/cryptography/sample.cc -o src/samples/elle/cryptography/sample.o
5253

5354
bin/samples/elle/printable: src/samples/elle/printable.o
5455
@mkdir -p bin/samples/elle
55-
g++ -pthread -Wl,-rpath,${prefix}/lib -L ${prefix}/lib src/samples/elle/printable.o -o bin/samples/elle/printable -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
56+
g++ -pthread -Wl,-rpath,$(ELLE)/lib -L $(ELLE)/lib src/samples/elle/printable.o -o bin/samples/elle/printable -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
5657

5758
src/samples/elle/printable.o:
5859
@mkdir -p src/samples/elle
59-
g++ -isystem ${prefix}/include -isystem ${prefix}/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/elle/printable.cc -o src/samples/elle/printable.o
60+
g++ -isystem $(ELLE)/include -isystem $(ELLE)/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/elle/printable.cc -o src/samples/elle/printable.o
6061

6162
bin/samples/elle/das/das: src/samples/elle/das/das.o
6263
@mkdir -p bin/samples/elle/das
63-
g++ -pthread -Wl,-rpath,${prefix}/lib -L ${prefix}/lib src/samples/elle/das/das.o -o bin/samples/elle/das/das -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
64+
g++ -pthread -Wl,-rpath,$(ELLE)/lib -L $(ELLE)/lib src/samples/elle/das/das.o -o bin/samples/elle/das/das -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
6465

6566
src/samples/elle/das/das.o:
6667
@mkdir -p src/samples/elle/das
67-
g++ -isystem ${prefix}/include -isystem ${prefix}/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/elle/das/das.cc -o src/samples/elle/das/das.o
68+
g++ -isystem $(ELLE)/include -isystem $(ELLE)/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/elle/das/das.cc -o src/samples/elle/das/das.o
6869

6970
bin/samples/elle/buffer: src/samples/elle/buffer.o
7071
@mkdir -p bin/samples/elle
71-
g++ -pthread -Wl,-rpath,${prefix}/lib -L ${prefix}/lib src/samples/elle/buffer.o -o bin/samples/elle/buffer -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
72+
g++ -pthread -Wl,-rpath,$(ELLE)/lib -L $(ELLE)/lib src/samples/elle/buffer.o -o bin/samples/elle/buffer -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
7273

7374
src/samples/elle/buffer.o:
7475
@mkdir -p src/samples/elle
75-
g++ -isystem ${prefix}/include -isystem ${prefix}/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/elle/buffer.cc -o src/samples/elle/buffer.o
76+
g++ -isystem $(ELLE)/include -isystem $(ELLE)/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/elle/buffer.cc -o src/samples/elle/buffer.o
7677

7778
bin/samples/get_wikipedia: src/samples/get_wikipedia.o
7879
@mkdir -p bin/samples
79-
g++ -pthread -Wl,-rpath,${prefix}/lib -L ${prefix}/lib src/samples/get_wikipedia.o -o bin/samples/get_wikipedia -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
80+
g++ -pthread -Wl,-rpath,$(ELLE)/lib -L $(ELLE)/lib src/samples/get_wikipedia.o -o bin/samples/get_wikipedia -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
8081

8182
src/samples/get_wikipedia.o:
8283
@mkdir -p src/samples
83-
g++ -isystem ${prefix}/include -isystem ${prefix}/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/get_wikipedia.cc -o src/samples/get_wikipedia.o
84+
g++ -isystem $(ELLE)/include -isystem $(ELLE)/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/get_wikipedia.cc -o src/samples/get_wikipedia.o
8485

8586
bin/samples/elle/attributes: src/samples/elle/attributes.o
8687
@mkdir -p bin/samples/elle
87-
g++ -pthread -Wl,-rpath,${prefix}/lib -L ${prefix}/lib src/samples/elle/attributes.o -o bin/samples/elle/attributes -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
88+
g++ -pthread -Wl,-rpath,$(ELLE)/lib -L $(ELLE)/lib src/samples/elle/attributes.o -o bin/samples/elle/attributes -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
8889

8990
src/samples/elle/attributes.o:
9091
@mkdir -p src/samples/elle
91-
g++ -isystem ${prefix}/include -isystem ${prefix}/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/elle/attributes.cc -o src/samples/elle/attributes.o
92+
g++ -isystem $(ELLE)/include -isystem $(ELLE)/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/samples/elle/attributes.cc -o src/samples/elle/attributes.o
9293

9394
bin/demo/elle/cryptography/crypt: src/demo/elle/cryptography/crypt.o
9495
@mkdir -p bin/demo/elle/cryptography
95-
g++ -pthread -Wl,-rpath,${prefix}/lib -L ${prefix}/lib src/demo/elle/cryptography/crypt.o -o bin/demo/elle/cryptography/crypt -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
96+
g++ -pthread -Wl,-rpath,$(ELLE)/lib -L $(ELLE)/lib src/demo/elle/cryptography/crypt.o -o bin/demo/elle/cryptography/crypt -lelle_core -lelle_reactor -lelle_protocol -lelle_cryptography -lelle_protocol -lssl -lcrypto -lcurl -lboost_system -lboost_thread -lboost_date_time
9697

9798
src/demo/elle/cryptography/crypt.o:
9899
@mkdir -p src/demo/elle/cryptography
99-
g++ -isystem ${prefix}/include -isystem ${prefix}/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/demo/elle/cryptography/crypt.cc -o src/demo/elle/cryptography/crypt.o
100+
g++ -isystem $(ELLE)/include -isystem $(ELLE)/include -O2 -std=c++14 -Wall -c $(SOURCE_DIR)/demo/elle/cryptography/crypt.cc -o src/demo/elle/cryptography/crypt.o

0 commit comments

Comments
 (0)