-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile_xmingw
45 lines (28 loc) · 1.68 KB
/
Makefile_xmingw
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
44
45
## Makefile for cross-compiling with mingw under linux; creates windows executable
## 32-bit version uses this tool:
CXX=i686-w64-mingw32-g++
CC=i686-w64-mingw32-gcc
## 64-bit version uses this tool:
## CXX=x86_64-w64-mingw32-g++
##CPPFLAGS=-DFILTER_TAGS_DEBUG_2 -Wall -O3 -std=c++0x -ffast-math -ftree-vectorize -static-libgcc -static-libstdc++
CPPFLAGS=-Wall -O3 -std=c++0x -ffast-math -ftree-vectorize -static-libgcc -static-libstdc++
CCFLAGS=-Wall -O3 -ffast-math -ftree-vectorize -static-libgcc
SQLITECCFLAGS=-Wall -O3 -ftree-vectorize -static-libgcc
all: filter_tags
clean:
rm -f *.o filter_tags.exe
Freq_Setting.o: Freq_Setting.cpp Freq_Setting.hpp filter_tags_common.hpp
DFA_Node.o: DFA_Node.cpp DFA_Node.hpp filter_tags_common.hpp
DFA_Graph.o: DFA_Graph.cpp DFA_Graph.hpp filter_tags_common.hpp
Known_Tag.o: Known_Tag.cpp Known_Tag.hpp filter_tags_common.hpp
Tag_Database.o: Tag_Database.cpp Tag_Database.hpp filter_tags_common.hpp
Hit.o: Hit.cpp Hit.hpp filter_tags_common.hpp
Run_Candidate.o: Run_Candidate.hpp Run_Candidate.cpp Run_Finder.hpp filter_tags_common.hpp
Run_Finder.o: Run_Finder.hpp Run_Finder.cpp Run_Candidate.hpp filter_tags_common.hpp
Run_Foray.o: Run_Foray.hpp Run_Foray.cpp filter_tags_common.hpp
filter_tags.o: filter_tags.cpp filter_tags_common.hpp Freq_Setting.hpp DFA_Node.hpp DFA_Graph.hpp Known_Tag.hpp Tag_Database.hpp Hit.hpp Run_Candidate.hpp Run_Finder.hpp Run_Foray.hpp Hashed_String_Vector.hpp
sqlite3.o: sqlite3.c sqlite3.h
$(CC) -c $(SQLITECCFLAGS) -o $@ $<
filter_tags: Freq_Setting.o DFA_Node.o DFA_Graph.o Known_Tag.o Tag_Database.o Hit.o Run_Candidate.o Run_Finder.o filter_tags.o Run_Foray.o
$(CXX) $(CPPFLAGS) -o filter_tags.exe $^
strip filter_tags.exe