-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 866 Bytes
/
Makefile
File metadata and controls
28 lines (21 loc) · 866 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
BIN=bin/client
# liste des fichiers sources
DIPWN=PatternSearchLib/DIPWM.cpp
LAM=PatternSearchLib/LAM.cpp
LAT=PatternSearchLib/LAT.cpp
AHO=PatternSearchLib/aho_corasick.hpp
CLIENT=PatternSearchClient/PatternSearchClient.cpp
SDSL=PatternSearchLib/SDSL.cpp
default: $(BIN)
########################################
#~ regles pour l'executable
########################################
obj/%.o: %.cpp
$(DIR_GUARD)
$(CC) $(CFLAGS) -c $< -o $@
SDSL.o: PatternSearchLib/SDSL.cpp
g++ -Wall -std=c++11 -O3 -DNDEBUG -I ~/include -L ~/lib PatternSearchLib/SDSL.cpp -c -lsdsl -ldivsufsort -ldivsufsort64
bin/client: $(CLIENT:%.c=obj/%.o) $(DIPWN:%.c=obj/%.o) $(LAM:%.c=obj/%.o) $(LAT:%.c=obj/%.o) $(AHO:%.c=obj/%.o) SDSL.o
g++ -Wall -std=c++11 -O3 -DNDEBUG -I ~/include -L ~/lib -o $@ $+ -lpthread -lsdsl -ldivsufsort -ldivsufsort64
clean:
rm -f $(BIN) obj/*.o *~