-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·33 lines (30 loc) · 780 Bytes
/
Copy pathmakefile
File metadata and controls
executable file
·33 lines (30 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
export LD_LIBRARY_PATH :=/usr/local/lib/
pool: src/main.o
g++ src/main.o -o bin/pool -L$(LD_LIBRARY_PATH) -lboost_thread -lboost_system
main.o: main.cpp
g++ -c src/main.cpp
tests: test/tests.o test/test_framework.o
g++ test/tests.o test/test_framework.o -o bin/tests -L$(LD_LIBRARY_PATH) -lboost_thread -lboost_system
#lazy to build lib %)
test_framework.o: test_framework.cpp
g++ -c test/test_framework.o
tests.o:
g++ -c test/tests.cpp
clean:
find . -type f ! -name 'test_framework.o' -name '*.o' -delete
find . -type f -name 'pool' -delete
find . -type f -name 'tests' -delete
recompill-and-run:
make clean
make pool
./bin/pool
recompill-and-run-tests:
make clean
make tests
./bin/tests
run:
./bin/pool
love:
@echo "<3"
war:
@echo make love, not war!