forked from Hongweihuo-Lab/FM-Adaptive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
26 lines (19 loc) · 796 Bytes
/
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
CC=g++
CFLAGS= -O3 -Wall
my_fm:div main.o fm.a
g++ main.o fm.a -o my_fm
all: adaptive clean
#adaptive: div man.o fm.a
# g++ test.o fm.a $(CFLAGS) -o adaptive -lrt
fm.a:ABS_WT.o Balance_WT.o Huffman_WT.o Hutacker_WT.o FM.o BitMap.o UseCount.o WT_Handle.o InArray.o loadkit.o savekit.o divsufsort.o sssort.o trsort.o utils.o
ar rc fm.a ABS_WT.o Balance_WT.o Huffman_WT.o Hutacker_WT.o FM.o BitMap.o UseCount.o WT_Handle.o InArray.o loadkit.o savekit.o divsufsort.o sssort.o trsort.o utils.o
%.o:%.cpp *.h
$(CC) -c $(CFLAGS) $< -o $@
main.o:main.cpp FM.h
g++ -c main.cpp
test.o: test.cpp FM.h
g++ -c $(CFLAGS) test.cpp -lrt
clean:
rm *.a *.o ./divsufsort/*.a ./divsufsort/*.o
div:
make -C ./divsufsort/; cp divsufsort/libdivsufsort.a .;ar x libdivsufsort.a;rm libdivsufsort.a