-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (30 loc) · 1.06 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
CPP=g++ -std=c++11
CPPFLAGS=-O9 -Wall -DVERBOSE
INCLUDES=-I/home/hferrada/include/ -I/home/hferrada/drf/dir64/DRF_Utils64/includes/
LIB=/home/hferrada/lib/libsdsl.a /home/hferrada/lib/libdivsufsort.a /home/hferrada/lib/libdivsufsort64.a /home/hferrada/drf/dir64/DRF_Utils64/drflib64.a
OBJECTS=SadaDocList64.o
BINS=build_index
%.o: %.cpp
@echo " [C++] Compiling $<"
@$(CPP) $(CPPFLAGS) $(INCLUDES) -c $< -o $@
all: clean stats $(OBJECTS) $(BINS)
stats:
@echo
@echo " COMPILING SadaDL.a"
@echo " ###################"
@echo " * Compiler flags: $(CPPFLAGS)"
@echo " * Include dirs: $(INCLUDES)"
@echo " * Lib dirs: $(LIB)"
@echo
clean:
@echo " [CLN] Removing object files"
@rm -f $(OBJECTS) $(BINS)
build_index:
@echo " [BLD] Building build_index"
ar -rvcs SadaDL.a $(OBJECTS) $(LIB)
build_binary:
@echo " [BLD] Building binary buildDL_Sada"
@$(CPP) $(CPPFLAGS) $(INCLUDES) -o buildDL_Sada buildDL_Sada.cpp $(OBJECTS) $(LIB)
load_binary:
@echo " [BLD] Building binary loadDL_Sada"
@$(CPP) $(CPPFLAGS) $(INCLUDES) -o loadDL_Sada loadDL_Sada.cpp $(OBJECTS) $(LIB)