-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
44 lines (28 loc) · 1.27 KB
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
CC=g++
CCFLAGS = -pedantic -Wall -Werror -g -O3
MYSQL = -L/usr/local/zend/mysql/lib -L/Users/eric/Dropbox/sources/mysql-connector-c++-1.1.2/cppconn -L/Users/eric/Dropbox/sources/mysql-connector-c++-1.1.2/driver /Users/eric/Dropbox/sources/mysql-connector-c++-1.1.2/driver/libmysqlcppconn-static.a -lmysqlclient_r -lpthread
BOOST = -lboost_regex-mt -lboost_thread-mt -lboost_system-mt
all: lda data
data: database.o utils.o strtokenizer.o data.cpp
$(CC) $(CCFLAGS) -o data data.cpp database.o utils.o strtokenizer.o $(MYSQL) $(BOOST) -lm
strip data
lda: dataset.o strtokenizer.o utils.o model.o database.o transmit.o socket.o lda.cpp
$(CC) $(CCFLAGS) -o lda lda.cpp dataset.o strtokenizer.o utils.o model.o database.o transmit.o socket.o $(MYSQL) $(BOOST) -lm
strip lda
strtokenizer.o: strtokenizer.h strtokenizer.cpp
$(CC) $(CCFLAGS) -c strtokenizer.cpp
dataset.o: dataset.h dataset.cpp
$(CC) $(CCFLAGS) -c dataset.cpp
utils.o: utils.h utils.cpp
$(CC) $(CCFLAGS) -c utils.cpp
model.o: model.h model.cpp
$(CC) $(CCFLAGS) -c model.cpp
database.o: database.h database.cpp
$(CC) $(CCFLAGS) -c database.cpp
transmit.o: transmit.h transmit.cpp
$(CC) $(CCFLAGS) -c transmit.cpp
socket.o: socket.h socket.cpp
$(CC) $(CCFLAGS) -c socket.cpp
test:
clean:
rm -rf *.o *~ lda data